Skip to content

Commit 5185ad1

Browse files
committed
e2e: use --set-string for setting postgres version
1 parent c0e4655 commit 5185ad1

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

stackgres-k8s/e2e/spec/operator-dbops-major-version-upgrade-api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ e2e_test_install() {
2020
create_or_replace_cluster "$CLUSTER_NAME" "$CLUSTER_NAMESPACE" 1 \
2121
--set configurations.objectstorage.create=true \
2222
--set cluster.configurations.backups.sgObjectStorage="$BACKUPCONF" \
23-
--set cluster.postgres.version="$E2E_MAJOR_SOURCE_POSTGRES_VERSION" \
23+
--set-string cluster.postgres.version="$E2E_MAJOR_SOURCE_POSTGRES_VERSION" \
2424
--set-string "cluster.pods.scheduling.nodeSelector.$NODE_LABEL_KEY=$NODE_LABEL_VALUE" \
2525
--set-string configurations.objectstorage.s3Compatible.bucket=test \
2626
--set-string configurations.objectstorage.s3Compatible.awsCredentials.secretKeySelectors.accessKeyId.name="$CLUSTER_NAME-minio" \

stackgres-k8s/e2e/spec/previous/1.13/spec/operator-dbops-major-version-upgrade-api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ e2e_test_install() {
2020
create_or_replace_cluster "$CLUSTER_NAME" "$CLUSTER_NAMESPACE" 1 \
2121
--set configurations.objectstorage.create=true \
2222
--set cluster.configurations.backups.sgObjectStorage="$BACKUPCONF" \
23-
--set cluster.postgres.version="$E2E_MAJOR_SOURCE_POSTGRES_VERSION" \
23+
--set-string cluster.postgres.version="$E2E_MAJOR_SOURCE_POSTGRES_VERSION" \
2424
--set-string "cluster.pods.scheduling.nodeSelector.$NODE_LABEL_KEY=$NODE_LABEL_VALUE" \
2525
--set-string configurations.objectstorage.s3Compatible.bucket=test \
2626
--set-string configurations.objectstorage.s3Compatible.awsCredentials.secretKeySelectors.accessKeyId.name="$CLUSTER_NAME-minio" \

stackgres-k8s/e2e/spec/previous/1.14/spec/operator-dbops-major-version-upgrade-api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ e2e_test_install() {
2020
create_or_replace_cluster "$CLUSTER_NAME" "$CLUSTER_NAMESPACE" 1 \
2121
--set configurations.objectstorage.create=true \
2222
--set cluster.configurations.backups.sgObjectStorage="$BACKUPCONF" \
23-
--set cluster.postgres.version="$E2E_MAJOR_SOURCE_POSTGRES_VERSION" \
23+
--set-string cluster.postgres.version="$E2E_MAJOR_SOURCE_POSTGRES_VERSION" \
2424
--set-string "cluster.pods.scheduling.nodeSelector.$NODE_LABEL_KEY=$NODE_LABEL_VALUE" \
2525
--set-string configurations.objectstorage.s3Compatible.bucket=test \
2626
--set-string configurations.objectstorage.s3Compatible.awsCredentials.secretKeySelectors.accessKeyId.name="$CLUSTER_NAME-minio" \

stackgres-k8s/e2e/utils/cluster

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ create_or_replace_cluster() {
2222

2323
create_or_replace_cluster_only "$RELEASE" "$NAMESPACE" "$INSTANCES" \
2424
-f "$SPEC_VALUES_FILE" \
25-
--set cluster.postgres.version="$E2E_POSTGRES_VERSION" \
25+
--set-string cluster.postgres.version="$E2E_POSTGRES_VERSION" \
2626
$(
2727
if ! printf %s " $* " | tr -s '\n' ' ' | grep -qF ' --set credentials=null '
2828
then
@@ -244,7 +244,7 @@ create_or_replace_sharded_cluster() {
244244

245245
create_or_replace_sharded_cluster_only "$RELEASE" "$NAMESPACE" "$CLUSTERS" "$INSTANCES" \
246246
-f "$SPEC_VALUES_FILE" \
247-
--set cluster.postgres.version="$E2E_POSTGRES_VERSION" \
247+
--set-string cluster.postgres.version="$E2E_POSTGRES_VERSION" \
248248
$(
249249
if ! printf %s " $* " | tr -s '\n' ' ' | grep -qF ' --set credentials=null '
250250
then

0 commit comments

Comments
 (0)