Skip to content

Commit 24f5849

Browse files
author
Jonathan S. Katz
committed
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 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
1 parent 538c3c3 commit 24f5849

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

kustomize/install/bases/kustomization.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,15 @@ images:
1414
- name: postgres-operator
1515
newName: registry.developers.crunchydata.com/crunchydata/postgres-operator
1616
newTag: ubi8-5.0.4-0
17+
18+
patchesJson6902:
19+
- target:
20+
group: apps
21+
version: v1
22+
kind: Deployment
23+
name: pgo
24+
patch: |-
25+
- op: remove
26+
path: /spec/selector/matchLabels/app.kubernetes.io~1name
27+
- op: remove
28+
path: /spec/selector/matchLabels/app.kubernetes.io~1version

0 commit comments

Comments
 (0)