Skip to content

Commit

Permalink
Ensure additional info labels are not in Deployment selectors
Browse files Browse the repository at this point in the history
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 4f123b2. 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
  • Loading branch information
Jonathan S. Katz committed Nov 26, 2021
1 parent 538c3c3 commit 24f5849
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kustomize/install/bases/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 24f5849

Please sign in to comment.