Kustomize Integration¶
Kustomize can be extended to understand CRD objects through the use of transformer configs. Using transformer configs, kustomize can be "taught" about the structure of a Rollout object and leverage kustomize features such as ConfigMap/Secret generators, variable references, and common labels & annotations. To use Rollouts with kustomize:
-
Download
rollout-transform.yaml
into your kustomize directory. -
Include
rollout-transform.yaml
in your kustomizeconfigurations
section:
kind: Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
configurations:
- rollout-transform.yaml
configurations:
- https://argoproj.github.io/argo-rollouts/features/kustomize/rollout-transform.yaml
A example kustomize app demonstrating the ability to use transformers with Rollouts can be seen here.