Skip to content

Commit 8e89380

Browse files
committed
test update
1 parent ea35ac4 commit 8e89380

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/controller/postgrescluster/pgadmin_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ func TestReconcilePGAdminStatefulSet(t *testing.T) {
500500
template.Spec.Volumes = nil
501501

502502
assert.Assert(t, cmp.MarshalMatches(template.ObjectMeta, `
503+
annotations:
504+
kubectl.kubernetes.io/default-container: pgadmin
503505
creationTimestamp: null
504506
labels:
505507
postgres-operator.crunchydata.com/cluster: test-cluster
@@ -613,6 +615,7 @@ terminationGracePeriodSeconds: 30
613615
assert.Assert(t, cmp.MarshalMatches(template.ObjectMeta, `
614616
annotations:
615617
annotation1: annotationvalue
618+
kubectl.kubernetes.io/default-container: pgadmin
616619
creationTimestamp: null
617620
labels:
618621
label1: labelvalue

internal/controller/postgrescluster/pgbouncer_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ namespace: ns3
443443
// Annotations present in the pod template.
444444
assert.DeepEqual(t, deploy.Spec.Template.Annotations, map[string]string{
445445
"a": "v1",
446+
"kubectl.kubernetes.io/default-container": "pgbouncer",
446447
})
447448

448449
// Labels present in the pod template.

0 commit comments

Comments
 (0)