mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-05 04:31:42 +02:00
fix typo for ownerReference
This commit is contained in:
@@ -778,7 +778,7 @@ func TestConnectionPoolerDeploymentSpec(t *testing.T) {
|
||||
},
|
||||
expected: nil,
|
||||
cluster: cluster,
|
||||
check: testDeploymentOwnwerReference,
|
||||
check: testDeploymentOwnerReference,
|
||||
},
|
||||
{
|
||||
subTest: "selector",
|
||||
@@ -931,7 +931,7 @@ func TestConnectionPoolerServiceSpec(t *testing.T) {
|
||||
ConnectionPooler: &acidv1.ConnectionPooler{},
|
||||
},
|
||||
cluster: cluster,
|
||||
check: testServiceOwnwerReference,
|
||||
check: testServiceOwnerReference,
|
||||
},
|
||||
{
|
||||
subTest: "selector",
|
||||
|
||||
@@ -873,7 +873,7 @@ func testCustomPodTemplate(cluster *Cluster, podSpec *v1.PodTemplateSpec) error
|
||||
return nil
|
||||
}
|
||||
|
||||
func testDeploymentOwnwerReference(cluster *Cluster, deployment *appsv1.Deployment) error {
|
||||
func testDeploymentOwnerReference(cluster *Cluster, deployment *appsv1.Deployment) error {
|
||||
owner := deployment.ObjectMeta.OwnerReferences[0]
|
||||
|
||||
if owner.Name != cluster.Statefulset.ObjectMeta.Name {
|
||||
@@ -884,7 +884,7 @@ func testDeploymentOwnwerReference(cluster *Cluster, deployment *appsv1.Deployme
|
||||
return nil
|
||||
}
|
||||
|
||||
func testServiceOwnwerReference(cluster *Cluster, service *v1.Service, role PostgresRole) error {
|
||||
func testServiceOwnerReference(cluster *Cluster, service *v1.Service, role PostgresRole) error {
|
||||
owner := service.ObjectMeta.OwnerReferences[0]
|
||||
|
||||
if owner.Name != cluster.Statefulset.ObjectMeta.Name {
|
||||
|
||||
Reference in New Issue
Block a user