helm-controller icon indicating copy to clipboard operation
helm-controller copied to clipboard

Feature: Allow set default job image via env var

Open piotrminkina opened this issue 1 year ago • 4 comments

Hello,

I would like to use Helm Controller in an enterprise environment without open internet access. All Docker images used on the Kubernetes cluster come from our internal image registry and there is no way to deploy images from other sources. Currently, you allow the job image to be set using the spec.jobImage field in the HelmController resource, but in my case this forces us to overwrite it in every deployed resource of this type.

https://github.com/k3s-io/helm-controller/blob/32c2e08fa0265cbc36680d50ca766c5a73cecd85/pkg/controllers/chart/chart.go#L56

Please allow me to change the default image for Job by setting an environment variable on the HelmController container. Thank you in advance for this possibility.

Regards Piotr Minkina

piotrminkina avatar Nov 22 '23 12:11 piotrminkina

PR welcome!

brandond avatar Nov 22 '23 21:11 brandond

@brandond done :)

piotrminkina avatar Nov 29 '23 19:11 piotrminkina

@brandond The Docker image for version v0.15.5 has not yet been built. Shouldn't this happen automatically when the new version is released?

piotrminkina avatar Jan 04 '24 10:01 piotrminkina

Yes, but there was some maintenance to our CI infra that appears to have removed the GH API token. I've opened an issue and will re-run CI when it is resolved.

brandond avatar Jan 04 '24 21:01 brandond