# The kustomize base: the CRD, the operator, and its webhook, with no # setting of any one cluster. An overlay may set the StorageClass of the # operator's volume. monitoring/ is a component that adds a PodMonitor # for a cluster that runs the prometheus-operator. apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - crds/browserprofiles.yaml - operator.yaml - rbac.yaml - webhook.yaml # CI builds the operator and the sidecar under one tag, and publishes # this directory as the OCI artifact gofer-deploy under that tag, with # newTag below set to it. The sidecar the operator injects takes its tag # from the operator's image here, so the artifact's tag pins both. images: - name: atcr.io/guid.foo/gofer newTag: dev replacements: - source: kind: Deployment name: gofer fieldPath: spec.template.spec.containers.[name=operator].image options: { delimiter: ":", index: 1 } targets: - select: { kind: Deployment, name: gofer } fieldPaths: - spec.template.spec.containers.[name=operator].env.[name=GOFER_SIDECAR_IMAGE].value options: { delimiter: ":", index: 1 }