Skip to content

Commit a3ef085

Browse files
committed
tests: auto-create KOPS_STATE_STORE
1 parent 30eefc3 commit a3ef085

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/e2e/scenarios/clusterapi/run-test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ kops-acquire-latest
2121

2222
CLOUD_PROVIDER=gce
2323

24+
if [[ -z "${KOPS_STATE_STORE:-}" ]]; then
25+
# Create the state-store bucket if it doesn't exist
26+
KOPS_STATE_STORE="gs://kops-state-$(gcloud config get-value project)"
27+
export KOPS_STATE_STORE
28+
gsutil ls "${KOPS_STATE_STORE}" || gsutil mb "${KOPS_STATE_STORE}" || return
29+
fi
30+
2431
#NETWORKING=cilium
2532
#OVERRIDES="${OVERRIDES-} --instance-manager=karpenter"
2633
#OVERRIDES="${OVERRIDES} --control-plane-size=c6g.large"

0 commit comments

Comments
 (0)