config-update fix

This commit is contained in:
2026-04-17 21:03:12 -04:00
parent 93ca527d74
commit 27c603e964

View File

@@ -23,7 +23,7 @@ usage() {
echo " relay-config - ZMQ relay configuration"
echo " ingestor-config - CCXT ingestor configuration"
echo " flink-config - Flink job configuration"
echo " gateway-config - Gateway configuration (prod only; uses op inject)"
echo " gateway-config - Gateway configuration"
echo ""
echo "Examples:"
echo " $0 # Update all dev configs"
@@ -75,14 +75,9 @@ apply_config() {
echo -e "${GREEN}→${NC} Creating/updating ConfigMap $config_name..."
if [[ "$ENV" == "prod" && "$config_name" == "gateway-config" ]]; then
# gateway-config contains op:// references — resolve via op inject
op inject -i "$config_file" | $KUBECTL apply -f -
else
$KUBECTL create configmap "$config_name" \
--from-file=config.yaml="$config_file" \
--dry-run=client -o yaml | $KUBECTL apply -f -
fi
echo -e "${GREEN}✓${NC} $config_name updated"
# Optionally restart pods that use this config