ai cooking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

get scret and latest deploy

+27 -1
+1 -1
deploy/deploy.yaml
··· 20 20 runAsGroup: 65532 21 21 containers: 22 22 - name: careme 23 - image: ghcr.io/paulgmiller/careme:5ea5b1f 23 + image: ghcr.io/paulgmiller/careme:a617281 24 24 imagePullPolicy: IfNotPresent 25 25 ports: 26 26 - containerPort: 8080
+26
getsecret.sh
··· 1 + #!/usr/bin/env bash 2 + set -euo pipefail 3 + 4 + if [[ $# -gt 3 ]]; then 5 + echo "Usage: $0 <secret-name> [namespace] [output-file]" 6 + echo " secret-name - name of the Kubernetes Secret" 7 + echo " namespace - Kubernetes namespace (default: default)" 8 + echo " output-file - path to .env file (default: .env)" 9 + exit 1 10 + fi 11 + 12 + SECRET_NAME="${1:-careme-secrets}" 13 + NAMESPACE="${2:-careme}" 14 + OUTPUT_FILE="${3:-.env}" 15 + 16 + # Fetch secret and convert to KEY=VALUE lines 17 + kubectl get secret "${SECRET_NAME}" \ 18 + -n "${NAMESPACE}" \ 19 + -o json \ 20 + | jq -r ' 21 + .data 22 + | to_entries[] 23 + | "\(.key)=\(.value | @base64d)" 24 + ' > "${OUTPUT_FILE}" 25 + 26 + echo "Wrote environment variables from secret '${SECRET_NAME}' (ns: ${NAMESPACE}) to ${OUTPUT_FILE}"