diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 23ba3f5df..7b7580d7a 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -1523,6 +1523,6 @@ func (c *Cluster) triggerMajorVersionUpgrade(newSpec *acidv1.PostgresSpec) (err } masterNamespacedName := spec.NamespacedName{Namespace: masterPod[0].Namespace, Name: masterPod[0].Name} - _, err = c.ExecCommand(&masterNamespacedName, "python3", "/scripts/inplace_upgrade.py ", fmt.Sprintf("%d", c.getNumberOfInstances(newSpec))) + _, err = c.ExecCommand(&masterNamespacedName, "python3", "/scripts/inplace_upgrade.py", fmt.Sprintf("%d", c.getNumberOfInstances(newSpec))) return err } diff --git a/pkg/cluster/k8sres_test.go b/pkg/cluster/k8sres_test.go index f44b071bb..a442a39b6 100644 --- a/pkg/cluster/k8sres_test.go +++ b/pkg/cluster/k8sres_test.go @@ -557,7 +557,7 @@ func TestExtractPgVersionFromBinPath(t *testing.T) { } } -func TestGetPgVersion(t *testing.T) { +func GetPgVersion(t *testing.T) { testName := "TestGetPgVersion" tests := []struct { subTest string