netbox-community/netbox-chart

Ability to add imagePullSecrets to ServiceAccount

rossigee opened this issue · 3 comments

We pull our images to a local container registry and scan them before deploying them. Our local container registry uses authentication. We add the auth details to the service account for each application, but there's no option for this in the current ServiceAccount template.

Btw, I tried using the existing 'imagePullSecrets' chart value but it fails the Helm release for some reason...

json: cannot unmarshal string into Go struct field PodSpec.spec.jobTemplate.spec.template.spec.imagePullSecrets of type v1.LocalObjectReference

Although the YAML it generates looks OK to me. 🤷

bootc commented

Btw, I tried using the existing 'imagePullSecrets' chart value but it fails the Helm release for some reason...

json: cannot unmarshal string into Go struct field PodSpec.spec.jobTemplate.spec.template.spec.imagePullSecrets of type v1.LocalObjectReference

Although the YAML it generates looks OK to me. 🤷

The field is a list of references to secrets. If you had a Secret called my-pull-secret your field should look like:

imagePullSecrets:
- name: my-pull-secret