HelmValuesTransformer is a Kustomize Plugin to transform values in HelmRelease
CustomResource.
It helps to manage a lot of HelmRelease's value in single transformer file.
Please take a look at the example
- kustomize v4.2.0
- go 1.16.15
- Replaced values of HelmRelease CustomResource using inline path
- Replaced Chart Source of HelmRelease CustomResource
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
name: prometheus
spec:
chart:
repository: https://prometheus-community.github.io/helm-charts
name: kube-prometheus-stack
version: 14.5.0
type: helmrepo
releaseName: prometheus
targetNamespace: lma
values:
conf:
ceph:
admin_keyring: TO_BE_FIXED
enabled: false
apiVersion: openinfradev.github.com/v1
kind: HelmValuesTransformer
metadata:
name: site
global:
docker_registry: registry.cicd.stg.taco
charts:
- name: prometheus
source:
repository: [email protected]:helm/charts
version: master
name: charts/stable/prometheus-operator
type: git
override:
conf.ceph.admin_keyring: abcde
conf.ceph.enabled: true
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
name: prometheus
spec:
chart:
repository: [email protected]:helm/charts
version: master
name: charts/stable/prometheus-operator
type: git
releaseName: prometheus
targetNamespace: lma
values:
conf:
ceph:
admin_keyring: abcde
enabled: true