mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 00:33:23 +02:00
bump to v1.15.0 (#2965)
* bump to v1.15.0 * more linter hints * update dependencies of kubectl-pg plugin
This commit is contained in:
@@ -23,6 +23,7 @@ THE SOFTWARE.
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
"os"
|
||||
user "os/user"
|
||||
@@ -121,7 +122,7 @@ func connect(clusterName string, master bool, replica string, psql bool, user st
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
err = exec.Stream(remotecommand.StreamOptions{
|
||||
err = exec.StreamWithContext(context.TODO(), remotecommand.StreamOptions{
|
||||
Stdin: os.Stdin,
|
||||
Stdout: os.Stdout,
|
||||
Stderr: os.Stderr,
|
||||
|
||||
@@ -65,7 +65,7 @@ func version(namespace string) {
|
||||
|
||||
operatorDeployment := getPostgresOperator(client)
|
||||
if operatorDeployment.Name == "" {
|
||||
log.Fatal("make sure zalando's postgres operator is running")
|
||||
log.Fatalf("make sure zalando's postgres operator is running in namespace %s", namespace)
|
||||
}
|
||||
operatorImage := operatorDeployment.Spec.Template.Spec.Containers[0].Image
|
||||
imageDetails := strings.Split(operatorImage, ":")
|
||||
|
||||
Reference in New Issue
Block a user