fluxcd / flux2-kustomize-helm-example

A GitOps workflow example for multi-env deployments with Flux, Kustomize and Helm.
https://fluxcd.io
Apache License 2.0
990 stars 1.05k forks source link

Can flux kustomize file patch? #73

Closed cakriwut closed 2 years ago

cakriwut commented 2 years ago

Is there a way to load patches from file, similar like this kustomize

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
patchesStrategicMerge:
- patch-exclude.yaml

I find troublesome to use flux2-kustomize patch string.

Thanks for the tips.

stefanprodan commented 2 years ago

No this is not possible, the Flux Kustomization can't refer to files. If you have large patches use kustomization.yaml, if you just need to override the namespace or set container images, then Flux Kustomization is suitable.