onechart
onechart copied to clipboard
imagePullSecrets in cronjob is not same onechart
value for onechart (version 0.66.0) is
imagePullSecrets:
- private-dockerhub-registry
but in cronjob (version 0.66.0) is
imagePullSecrets:
- name: private-dockerhub-registry
When I command helm upgrade got the error shown below:
helm upgrade --wait --reuse-values --set image.repository=${IMAGE_NAME} --set image.tag=${IMAGE_TAG} --set vars.COMMIT_SHA=${CI_COMMIT_SHORT_SHA} --namespace ${NAMESPACE} ${HELM_RELEASE} ${HELM_CHART_URL} --version ${HELM_CHART_VERSION}
Error: UPGRADE FAILED: failed to create resource: CronJob in version "v1" cannot be handled as a CronJob: json: cannot unmarshal string into Go struct field PodSpec.spec.jobTemplate.spec.template.spec.imagePullSecrets of type v1.LocalObjectReference
Good find. We are going to fix this!