From 8e893805f2a9efa07a1ff957bced5df181b03acb Mon Sep 17 00:00:00 2001 From: Ben Blattberg Date: Mon, 18 Nov 2024 12:41:58 -0600 Subject: [PATCH] test update --- internal/controller/postgrescluster/pgadmin_test.go | 3 +++ internal/controller/postgrescluster/pgbouncer_test.go | 1 + 2 files changed, 4 insertions(+) diff --git a/internal/controller/postgrescluster/pgadmin_test.go b/internal/controller/postgrescluster/pgadmin_test.go index 92ec6f42f..359f56b0e 100644 --- a/internal/controller/postgrescluster/pgadmin_test.go +++ b/internal/controller/postgrescluster/pgadmin_test.go @@ -500,6 +500,8 @@ func TestReconcilePGAdminStatefulSet(t *testing.T) { template.Spec.Volumes = nil assert.Assert(t, cmp.MarshalMatches(template.ObjectMeta, ` +annotations: + kubectl.kubernetes.io/default-container: pgadmin creationTimestamp: null labels: postgres-operator.crunchydata.com/cluster: test-cluster @@ -613,6 +615,7 @@ terminationGracePeriodSeconds: 30 assert.Assert(t, cmp.MarshalMatches(template.ObjectMeta, ` annotations: annotation1: annotationvalue + kubectl.kubernetes.io/default-container: pgadmin creationTimestamp: null labels: label1: labelvalue diff --git a/internal/controller/postgrescluster/pgbouncer_test.go b/internal/controller/postgrescluster/pgbouncer_test.go index 9bbced524..100262a18 100644 --- a/internal/controller/postgrescluster/pgbouncer_test.go +++ b/internal/controller/postgrescluster/pgbouncer_test.go @@ -443,6 +443,7 @@ namespace: ns3 // Annotations present in the pod template. assert.DeepEqual(t, deploy.Spec.Template.Annotations, map[string]string{ "a": "v1", + "kubectl.kubernetes.io/default-container": "pgbouncer", }) // Labels present in the pod template.