Skip to content

Commit 6ac6eaf

Browse files
author
Jeff McCormick
committed
change code to use revised names for cluster secrets for default accounts
1 parent 3ef60ef commit 6ac6eaf

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

apis/cr/v1/common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ limitations under the License.
1818
import ()
1919

2020
// RootSecretSuffix ...
21-
const RootSecretSuffix = "-root-secret"
21+
const RootSecretSuffix = "-postgres-secret"
2222

2323
// UserSecretSuffix ...
24-
const UserSecretSuffix = "-user-secret"
24+
const UserSecretSuffix = "-testuser-secret"
2525

2626
// PrimarySecretSuffix ...
27-
const PrimarySecretSuffix = "-primary-secret"
27+
const PrimarySecretSuffix = "-primaryuser-secret"
2828

2929
// StorageExisting ...
3030
const StorageExisting = "existing"

bin/upgrade-secret.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
# the old pre-2.5 release format to the 2.5 post format
1818
# it will prompt the user along the way
1919

20-
echo -n "enter the cluster name:"
21-
read CLUSTER
20+
echo "CLUSTER is " $1
2221

23-
echo "you entered " $CLUSTER
22+
CLUSTER=$1
2423

2524
CURRENT_POSTGRES_PASSWORD=`kubectl get secret $CLUSTER-root-secret -o jsonpath="{.data.password}"`
2625
echo "current decoded postgres password is..."

0 commit comments

Comments
 (0)