apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../manifests/kustomize-controller.yaml - ../manifests/helm-controller.yaml components: - ../base patchesJson6902: # - remove the 5th argument "--enable-leader-election" since it may result in controller crash loops in sds clusters. # - remove the 1st argument "--events-addr" since the notification controller is not being used. # - lower helm-controller's CPU request from '100m' to '50m' - patch: |- - op: remove path: /spec/template/spec/containers/0/args/4 target: name: helm-controller namespace: flux-system kind: Deployment - patch: |- - op: remove path: /spec/template/spec/containers/0/args/0 target: name: helm-controller namespace: flux-system kind: Deployment - patch: |- - op: replace path: /spec/template/spec/containers/0/resources/requests/cpu value: 50m target: name: helm-controller namespace: flux-system kind: Deployment