@@ -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,6 @@ func TestReconcilePGAdminStatefulSet(t *testing.T) {
501501 assert .Assert (t , cmp .MarshalMatches (template .ObjectMeta , `
502502annotations:
503503 kubectl.kubernetes.io/default-container: pgadmin
504- creationTimestamp: null
505504labels:
506505 postgres-operator.crunchydata.com/cluster: test-cluster
507506 postgres-operator.crunchydata.com/data: pgadmin
@@ -615,7 +614,6 @@ terminationGracePeriodSeconds: 30
615614annotations:
616615 annotation1: annotationvalue
617616 kubectl.kubernetes.io/default-container: pgadmin
618- creationTimestamp: null
619617labels:
620618 label1: labelvalue
621619 postgres-operator.crunchydata.com/cluster: custom-cluster
0 commit comments