This commit is contained in:
2026-07-31 23:40:49 -05:00
parent 77780af646
commit 920b9517f2
4 changed files with 184 additions and 0 deletions
+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."