This commit is contained in:
devops committed 2026-07-31 23:40:49 -05:00
1 parent 77780af646
commit 920b9517f2
4 files changed
+184

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -Eeuo pipefail
NAMESPACE="${NAMESPACE:-ecommerce}"
read -rsp "Pega la Publishable API Key de Medusa: " MEDUSA_PUBLISHABLE_KEY
echo
if [[ -z "${MEDUSA_PUBLISHABLE_KEY}" ]]; then
echo "ERROR: la clave no puede estar vacía."
exit 1
fi
kubectl -n "${NAMESPACE}" create secret generic commerce-storefront \
--from-literal=MEDUSA_PUBLISHABLE_KEY="${MEDUSA_PUBLISHABLE_KEY}" \
--dry-run=client \
-o yaml |
kubectl apply -f -
unset MEDUSA_PUBLISHABLE_KEY
echo "Secret commerce-storefront configurado."