fix typo for ownerReference

This commit is contained in:
Felix Kunde 2020-12-16 11:51:38 +01:00
parent e4757670a3
commit dbf1a7254b
2 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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 {