config/default/kustomization.yaml (40 lines of code) (raw):

# Adds namespace to all resources. namespace: amazon-cloudwatch # Value of this field is prepended to the # names of all resources, e.g. a deployment named # "wordpress" becomes "alices-wordpress". # Note that it should also match with the prefix (text before '-') of the namespace # field above. namePrefix: cloudwatch- # Labels to add to all resources and selectors. commonLabels: app.kubernetes.io/name: amazon-cloudwatch-agent-operator bases: - ../manager - ../rbac - ../crd - ../webhook - ../certmanager patchesStrategicMerge: - manager_webhook_patch.yaml - webhookcainjection_patch.yaml # the following config is for teaching kustomize how to do var substitution vars: - name: CERTIFICATE_NAMESPACE # namespace of the certificate CR objref: kind: Certificate group: cert-manager.io version: v1 name: serving-cert # this name should match the one in certificate.yaml fieldref: fieldpath: metadata.namespace - name: CERTIFICATE_NAME objref: kind: Certificate group: cert-manager.io version: v1 name: serving-cert # this name should match the one in certificate.yaml - name: SERVICE_NAMESPACE # namespace of the service objref: kind: Service version: v1 name: webhook-service fieldref: fieldpath: metadata.namespace - name: SERVICE_NAME objref: kind: Service version: v1 name: webhook-service