awx-operator
awx-operator copied to clipboard
1301 parametrize image locations
SUMMARY
This allows users of private registries to use Values.yml to configure the operator and rbac proxy images and point at their images, while keeping the default behaviour same as on the current chart.
It removes the need to constantly rebuild the chart in-house and makes it reusable across organizations.
It also includes a separate commit with a minor yq fix - a missing -y
flag was causing it to error when testing the helm-chart
make target.
ISSUE TYPE
- New or Enhanced Feature
ADDITIONAL INFORMATION
Issue link: https://github.com/ansible/awx-operator/issues/1301
Comparison of the resulting charts - ../../awx-operator is an unpacked official chart for 2.11.0:
➜ awx-operator git:(1301-parametrize-image-locations) diff ../../awx-operator/ charts/awx-operator
diff --color ../../awx-operator/Chart.yaml charts/awx-operator/Chart.yaml
2c2
< appVersion: 2.11.0
---
> appVersion: 0.1.0
6c6
< version: 2.11.0
---
> version: 2.11.0-5-g165d099
Common subdirectories: ../../awx-operator/crds and charts/awx-operator/crds
Common subdirectories: ../../awx-operator/templates and charts/awx-operator/templates
diff --color ../../awx-operator/values.yaml charts/awx-operator/values.yaml
0a1,10
> # images for the operator itself, not the AWX deployment
> # For airgapped installs, modify both those and the AWX.spec - you can pass the
> # variables as defined in https://github.com/ansible/awx-operator/blob/devel/roles/installer/tasks/resources_configuration.yml
> operator_image: quay.io/ansible/awx-operator
> operator_version: latest
>
>
> rbac_proxy_image: gcr.io/kubebuilder/kube-rbac-proxy
> rbac_proxy_version: v0.15.0
For registries requiring authentication, this also needs a method to define imagePullSecrets.
I will update this PR when I get a moment to sort that.