-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7dd97d
commit f1c8f76
Showing
1 changed file
with
1 addition
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,10 +37,6 @@ trap cleanup EXIT | |
|
||
main() { | ||
echo "starting the secret store csi driver test for gcp provider" | ||
# TODOs | ||
# 1. Create a temporary secret in boskos pool once https://github.com/kubernetes/k8s.io/pull/7416 is submitted. | ||
# 2. Rotate secrets created in above step | ||
# 3. Clean up the secret. | ||
|
||
#install boskosctl | ||
if [[ -z "$(command -v boskosctl)" ]]; then | ||
|
@@ -52,7 +48,7 @@ main() { | |
echo "testing boskosctl" | ||
boskosctl --help | ||
|
||
# Aquire a project from boskos pool, test will use secret created on this | ||
# Aquire a project from boskos pool, test will use secret created on this aquired project | ||
if [ -n "${BOSKOS_HOST:-}" ]; then | ||
echo "Boskos acquire - ${BOSKOS_HOST}" | ||
export BOSKOS_RESOURCE="$( boskosctlwrapper acquire --type gce-project --state free --target-state busy --timeout 1h )" | ||
|
@@ -67,12 +63,6 @@ main() { | |
echo "Using project ${GCP_PROJECT}" | ||
gcloud config set project ${GCP_PROJECT} | ||
|
||
# TODO remove this after testing | ||
gcloud projects get-iam-policy k8s-infra-e2e-boskos-001 \ | ||
--flatten="bindings[].members" \ | ||
--format='table(bindings.role)' \ | ||
--filter="bindings.members:[email protected]" | ||
|
||
# create a secret in the aquired project | ||
export SECRET_ID="test-secret-$(openssl rand -hex 4)" | ||
export SECRET_VALUE="secret-a" | ||
|