onechart icon indicating copy to clipboard operation
onechart copied to clipboard

imagePullSecrets in cronjob is not same onechart

Open minkbear opened this issue 10 months ago • 1 comments

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

minkbear avatar Apr 10 '24 03:04 minkbear

Good find. We are going to fix this!

laszlocph avatar Apr 11 '24 10:04 laszlocph