Skip to content

Commit

Permalink
Merge pull request #1030 from equinor/43-incluster-buildah
Browse files Browse the repository at this point in the history
adding new secret radix-sp-buildah-azure
  • Loading branch information
magnus-longva-bouvet authored Aug 24, 2023
2 parents 0e85d6e + 8cbce00 commit 24c6c16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions scripts/config-and-secrets/bootstrap-acr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,17 @@ az keyvault secret download \
--name "${AZ_SYSTEM_USER_CONTAINER_REGISTRY_CICD}" \
--file sp_credentials.json

# create secret for authenticating to ACR via az cli
kubectl create secret generic radix-sp-acr-azure --from-file=sp_credentials.json --dry-run=client -o yaml | kubectl apply -f -

# create secret for authenticating to ACR via buildah client (same value as other ACR secret)
username="$(jq .id sp_credentials.json --raw-output)"
password="$(jq .password sp_credentials.json --raw-output)"
kubectl create secret generic radix-sp-buildah-azure \
--from-literal=username=$username \
--from-literal=password=$password \
--dry-run=client -o yaml | kubectl apply -f -

kubectl create secret docker-registry radix-docker \
--docker-server="$AZ_RESOURCE_CONTAINER_REGISTRY.azurecr.io" \
--docker-username="$(jq -r '.id' sp_credentials.json)" \
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_base_components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ kubectl label ns default purpose=radix-base-ns --overwrite

#######################################################################################
# Create radix platform shared configs and secrets
# Create 3 secrets for Radix platform radix-sp-acr-azure, radix-docker and radix-snyk-service-account
# Create 4 secrets for Radix platform: radix-sp-acr-azure, radix-sp-buildah-azure and radix-docker and radix-snyk-service-account

echo ""
echo "Start on radix platform shared configs and secrets..."
Expand Down

0 comments on commit 24c6c16

Please sign in to comment.