File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
internal/controller/postgrescluster Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff 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
503505creationTimestamp: null
504506labels:
505507 postgres-operator.crunchydata.com/cluster: test-cluster
@@ -613,6 +615,7 @@ terminationGracePeriodSeconds: 30
613615 assert .Assert (t , cmp .MarshalMatches (template .ObjectMeta , `
614616annotations:
615617 annotation1: annotationvalue
618+ kubectl.kubernetes.io/default-container: pgadmin
616619creationTimestamp: null
617620labels:
618621 label1: labelvalue
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments