@@ -67,7 +67,7 @@ apiVersion: v1
6767kind: ConfigMap
6868 ` ))
6969 assert .Assert (t , cmp .MarshalMatches (configmap .ObjectMeta , `
70- creationTimestamp: null
70+
7171labels:
7272 postgres-operator.crunchydata.com/cluster: pg1
7373 postgres-operator.crunchydata.com/role: pgadmin
@@ -135,7 +135,7 @@ func TestGeneratePGAdminService(t *testing.T) {
135135 assert .Assert (t , ! specified )
136136
137137 assert .Assert (t , cmp .MarshalMatches (service .ObjectMeta , `
138- creationTimestamp: null
138+
139139name: my-cluster-pgadmin
140140namespace: my-ns
141141 ` ))
@@ -152,7 +152,7 @@ apiVersion: v1
152152kind: Service
153153 ` ))
154154 assert .Assert (t , cmp .MarshalMatches (service .ObjectMeta , `
155- creationTimestamp: null
155+
156156labels:
157157 postgres-operator.crunchydata.com/cluster: my-cluster
158158 postgres-operator.crunchydata.com/role: pgadmin
@@ -501,7 +501,7 @@ func TestReconcilePGAdminStatefulSet(t *testing.T) {
501501 assert .Assert (t , cmp .MarshalMatches (template .ObjectMeta , `
502502annotations:
503503 kubectl.kubernetes.io/default-container: pgadmin
504- creationTimestamp: null
504+
505505labels:
506506 postgres-operator.crunchydata.com/cluster: test-cluster
507507 postgres-operator.crunchydata.com/data: pgadmin
@@ -615,7 +615,7 @@ terminationGracePeriodSeconds: 30
615615annotations:
616616 annotation1: annotationvalue
617617 kubectl.kubernetes.io/default-container: pgadmin
618- creationTimestamp: null
618+
619619labels:
620620 label1: labelvalue
621621 postgres-operator.crunchydata.com/cluster: custom-cluster
0 commit comments