Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminjb committed Nov 18, 2024
1 parent ea35ac4 commit 8e89380
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/controller/postgrescluster/pgadmin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions internal/controller/postgrescluster/pgbouncer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8e89380

Please sign in to comment.