Skip to content

Commit f20a032

Browse files
committed
Add application and version labels during deploy
This is easier to manage in one place and is the last modification we're making to CRDs as they are generated. A future commit is free to remove the Kutomiziations entirely. Issue: PGO-1046 Issue: PGO-1748
1 parent b4587dc commit f20a032

9 files changed

+10
-60
lines changed

build/crd/crunchybridgeclusters/kustomization.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,3 @@ resources:
55
- generated/postgres-operator.crunchydata.com_crunchybridgeclusters.yaml
66

77
patches:
8-
- target:
9-
group: apiextensions.k8s.io
10-
version: v1
11-
kind: CustomResourceDefinition
12-
name: crunchybridgeclusters.postgres-operator.crunchydata.com
13-
# The version below should match the version on the PostgresCluster CRD
14-
patch: |-
15-
- op: add
16-
path: "/metadata/labels"
17-
value:
18-
app.kubernetes.io/name: pgo
19-
app.kubernetes.io/version: latest

build/crd/pgadmins/kustomization.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,3 @@ resources:
55
- generated/postgres-operator.crunchydata.com_pgadmins.yaml
66

77
patches:
8-
- target:
9-
group: apiextensions.k8s.io
10-
version: v1
11-
kind: CustomResourceDefinition
12-
name: pgadmins.postgres-operator.crunchydata.com
13-
# The version below should match the version on the PostgresCluster CRD
14-
patch: |-
15-
- op: add
16-
path: "/metadata/labels"
17-
value:
18-
app.kubernetes.io/name: pgo
19-
app.kubernetes.io/version: latest

build/crd/pgupgrades/kustomization.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,3 @@ resources:
55
- generated/postgres-operator.crunchydata.com_pgupgrades.yaml
66

77
patches:
8-
- target:
9-
group: apiextensions.k8s.io
10-
version: v1
11-
kind: CustomResourceDefinition
12-
name: pgupgrades.postgres-operator.crunchydata.com
13-
# The version below should match the version on the PostgresCluster CRD
14-
patch: |-
15-
- op: add
16-
path: "/metadata/labels"
17-
value:
18-
app.kubernetes.io/name: pgo
19-
app.kubernetes.io/version: latest

build/crd/postgresclusters/kustomization.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,3 @@ resources:
55
- generated/postgres-operator.crunchydata.com_postgresclusters.yaml
66

77
patches:
8-
- target:
9-
group: apiextensions.k8s.io
10-
version: v1
11-
kind: CustomResourceDefinition
12-
name: postgresclusters.postgres-operator.crunchydata.com
13-
patch: |-
14-
- op: add
15-
path: "/metadata/labels"
16-
value:
17-
app.kubernetes.io/name: pgo
18-
app.kubernetes.io/version: latest

config/crd/bases/postgres-operator.crunchydata.com_crunchybridgeclusters.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ kind: CustomResourceDefinition
33
metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.16.4
6-
labels:
7-
app.kubernetes.io/name: pgo
8-
app.kubernetes.io/version: latest
96
name: crunchybridgeclusters.postgres-operator.crunchydata.com
107
spec:
118
group: postgres-operator.crunchydata.com

config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ kind: CustomResourceDefinition
33
metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.16.4
6-
labels:
7-
app.kubernetes.io/name: pgo
8-
app.kubernetes.io/version: latest
96
name: pgadmins.postgres-operator.crunchydata.com
107
spec:
118
group: postgres-operator.crunchydata.com

config/crd/bases/postgres-operator.crunchydata.com_pgupgrades.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ kind: CustomResourceDefinition
33
metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.16.4
6-
labels:
7-
app.kubernetes.io/name: pgo
8-
app.kubernetes.io/version: latest
96
name: pgupgrades.postgres-operator.crunchydata.com
107
spec:
118
group: postgres-operator.crunchydata.com

config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ kind: CustomResourceDefinition
33
metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.16.4
6-
labels:
7-
app.kubernetes.io/name: pgo
8-
app.kubernetes.io/version: latest
96
name: postgresclusters.postgres-operator.crunchydata.com
107
spec:
118
group: postgres-operator.crunchydata.com

config/crd/kustomization.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
apiVersion: kustomize.config.k8s.io/v1beta1
21
kind: Kustomization
32

43
resources:
54
- bases/postgres-operator.crunchydata.com_crunchybridgeclusters.yaml
65
- bases/postgres-operator.crunchydata.com_postgresclusters.yaml
76
- bases/postgres-operator.crunchydata.com_pgupgrades.yaml
87
- bases/postgres-operator.crunchydata.com_pgadmins.yaml
8+
9+
patches:
10+
- target:
11+
kind: CustomResourceDefinition
12+
patch: |-
13+
- op: add
14+
path: /metadata/labels
15+
value:
16+
app.kubernetes.io/name: pgo
17+
app.kubernetes.io/version: latest

0 commit comments

Comments
 (0)