Skip to content

Commit 28498e5

Browse files
committed
Add name and version Labels to CRDs
Adds the name and version labels to CRDs, as needed, to standardize CRD format across repositories and added comments to clarify where versions should match.
1 parent ac31483 commit 28498e5

File tree

8 files changed

+12
-2
lines changed

8 files changed

+12
-2
lines changed

helm/install/Chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ description: Installer for PGO, the open source Postgres Operator from Crunchy D
44

55
type: application
66
version: 0.3.2
7+
# The version below should match the version on the PostgresCluster CRD
78
appVersion: 5.1.2

helm/install/crds/postgres-operator.crunchydata.com_pgupgrades.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.8.0
66
creationTimestamp: null
7-
name: pgupgrades.postgres-operator.crunchydata.com
87
labels:
98
app.kubernetes.io/name: pgo
109
app.kubernetes.io/version: 5.1.2
10+
name: pgupgrades.postgres-operator.crunchydata.com
1111
spec:
1212
group: postgres-operator.crunchydata.com
1313
names:

helm/install/crds/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.8.0
66
creationTimestamp: null
7-
name: postgresclusters.postgres-operator.crunchydata.com
87
labels:
98
app.kubernetes.io/name: pgo
109
app.kubernetes.io/version: 5.1.2
10+
name: postgresclusters.postgres-operator.crunchydata.com
1111
spec:
1212
group: postgres-operator.crunchydata.com
1313
names:

helm/postgres/Chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ name: postgrescluster
33
description: A Helm chart for Kubernetes
44
type: application
55
version: 0.2.5
6+
# The version below should match the version on the PostgresCluster CRD
67
appVersion: 5.1.2

kustomize/install/crd/bases/postgres-operator.crunchydata.com_pgupgrades.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.8.0
66
creationTimestamp: null
7+
labels:
8+
app.kubernetes.io/name: pgo
9+
app.kubernetes.io/version: 5.1.2
710
name: pgupgrades.postgres-operator.crunchydata.com
811
spec:
912
group: postgres-operator.crunchydata.com

kustomize/install/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ metadata:
44
annotations:
55
controller-gen.kubebuilder.io/version: v0.8.0
66
creationTimestamp: null
7+
labels:
8+
app.kubernetes.io/name: pgo
9+
app.kubernetes.io/version: 5.1.2
710
name: postgresclusters.postgres-operator.crunchydata.com
811
spec:
912
group: postgres-operator.crunchydata.com

kustomize/install/default/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ namespace: postgres-operator
22

33
commonLabels:
44
app.kubernetes.io/name: pgo
5+
# The version below should match the version on the PostgresCluster CRD
56
app.kubernetes.io/version: 5.1.2
67

78
bases:

kustomize/install/singlenamespace/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ namespace: postgres-operator
22

33
commonLabels:
44
app.kubernetes.io/name: pgo
5+
# The version below should match the version on the PostgresCluster CRD
56
app.kubernetes.io/version: 5.1.2
67

78
bases:

0 commit comments

Comments
 (0)