apiVersion: kustomize.config.k8s.io/v1alpha1 kind: Component namespace: flux-system resources: - namespace.yaml - ../manifests/policies.yaml - ../manifests/rbac.yaml - ../manifests/source-controller.yaml patches: - path: patches/autoscaler-safe-to-evict-annotation.yaml target: kind: Deployment patchesStrategicMerge: - patches/linkerd-admin-port.yaml 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 kustomize-controller's CPU request from '100m' to '50m' - patch: |- - op: remove path: /spec/template/spec/containers/0/args/4 target: name: source-controller namespace: flux-system kind: Deployment - patch: |- - op: remove path: /spec/template/spec/containers/0/args/0 target: name: source-controller namespace: flux-system kind: Deployment - patch: |- - op: remove path: /spec/template/spec/containers/0/args/4 target: name: kustomize-controller namespace: flux-system kind: Deployment - patch: |- - op: remove path: /spec/template/spec/containers/0/args/0 target: name: kustomize-controller namespace: flux-system kind: Deployment - patch: |- - op: replace path: /spec/template/spec/containers/0/resources/requests/cpu value: 50m target: name: kustomize-controller namespace: flux-system kind: Deployment