Unverified Commit 24f5849e authored by Jonathan S. Katz's avatar Jonathan S. Katz
Browse files

Ensure additional info labels are not in Deployment selectors

Kustomize commonLabels are included even in the match selectors.
This adds some patching so that they are not including in the
match selectors for the PGO Deployment, as match selectors are
immutable and these labels are superfluous.

This adjusts for the behavior added in 4f123b22. If one is
affected by this, one can reinstall the PGO Deployment with

    kubectl delete -k kustomize/install/bases/manager
    kubectl apply -k kustomize/install
parent 538c3c30
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -14,3 +14,15 @@ images:
- name: postgres-operator
  newName: registry.developers.crunchydata.com/crunchydata/postgres-operator
  newTag: ubi8-5.0.4-0

patchesJson6902:
  - target:
      group: apps
      version: v1
      kind: Deployment
      name: pgo
    patch: |-
      - op: remove
        path: /spec/selector/matchLabels/app.kubernetes.io~1name
      - op: remove
        path: /spec/selector/matchLabels/app.kubernetes.io~1version