Reputation: 23
I'm new to K8s, gitops and kustomize. Our gitops folder structure has "base" folder which contains base configuration files and also "envs" folder in which we keep kustomization.yaml files with patches for various environments.
The problem is, one of our environment configuration vary a lot from the base configuration, thus kustomization yaml file would have hundreds of lines of patches to base configuration. Apart from creaing a separate repository and apart from defining hundreds-line kustomization file patches, is there any other way to patch/replace base yaml files?
Tried patches, but the file would have hundreds of lines:
`patches:
- target:
kind: Ingress
name: gateway
patch: |-
- op: replace
...`
Upvotes: 0
Views: 53