Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upd(create_kci_k8s_azure_build.sh): Add token for storage #192

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
upd(create_kci_k8s_azure_build.sh): Add token for storage
Add storage token in recipe

Signed-off-by: Denys Fedoryshchenko <[email protected]>
nuclearcat committed Jan 3, 2025
commit b08aedbbf1e820843d43b8d204b74c17cdcce778
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -2,3 +2,4 @@
checkout
keys
.tree
.code-workspace
3 changes: 3 additions & 0 deletions kubernetes/create_kci_k8s_azure_build.sh
Original file line number Diff line number Diff line change
@@ -59,12 +59,15 @@ function install_secrets() {
API_TOKEN_STAGING=$(cat secrets/token-staging-api)
API_TOKEN_EARLY_ACCESS=$(cat secrets/token-early-access)
AZURE_SAS_STAGING=$(cat secrets/azure_sas_staging)
TOKEN_STORAGE_STAGING=$(cat secrets/storage_token_staging)
kubectl --context=$1 delete secret kci-api-jwt-staging
kubectl --context=$1 delete secret kci-api-jwt-early-access
kubectl --context=$1 delete secret kci-api-azure-files-sas-staging
kubectl --context=$1 delete secret kci-storage-tokens
kubectl --context=$1 create secret generic kci-api-jwt-staging --from-literal=token="${API_TOKEN_STAGING}"
kubectl --context=$1 create secret generic kci-api-jwt-early-access --from-literal=token="${API_TOKEN_EARLY_ACCESS}"
kubectl --context=$1 create secret generic kci-api-azure-files-sas-staging --from-literal=azure-files-sas="${AZURE_SAS_STAGING}"
kubectl --context=$1 create secret generic kci-storage-tokens --from-literal=staging="${TOKEN_STORAGE_STAGING}"
}

### After creation we might have nodepool with some unnecessary running nodes, it needs about 10-15 min to scale down