Compare commits
2 Commits
93ca527d74
...
75c4857535
| Author | SHA1 | Date | |
|---|---|---|---|
| 75c4857535 | |||
| 27c603e964 |
@@ -23,7 +23,7 @@ usage() {
|
|||||||
echo " relay-config - ZMQ relay configuration"
|
echo " relay-config - ZMQ relay configuration"
|
||||||
echo " ingestor-config - CCXT ingestor configuration"
|
echo " ingestor-config - CCXT ingestor configuration"
|
||||||
echo " flink-config - Flink job configuration"
|
echo " flink-config - Flink job configuration"
|
||||||
echo " gateway-config - Gateway configuration (prod only; uses op inject)"
|
echo " gateway-config - Gateway configuration"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Examples:"
|
echo "Examples:"
|
||||||
echo " $0 # Update all dev configs"
|
echo " $0 # Update all dev configs"
|
||||||
@@ -75,14 +75,9 @@ apply_config() {
|
|||||||
|
|
||||||
echo -e "${GREEN}→${NC} Creating/updating ConfigMap $config_name..."
|
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" \
|
$KUBECTL create configmap "$config_name" \
|
||||||
--from-file=config.yaml="$config_file" \
|
--from-file=config.yaml="$config_file" \
|
||||||
--dry-run=client -o yaml | $KUBECTL apply -f -
|
--dry-run=client -o yaml | $KUBECTL apply -f -
|
||||||
fi
|
|
||||||
echo -e "${GREEN}✓${NC} $config_name updated"
|
echo -e "${GREEN}✓${NC} $config_name updated"
|
||||||
|
|
||||||
# Optionally restart pods that use this config
|
# Optionally restart pods that use this config
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ data:
|
|||||||
namespace: sandbox
|
namespace: sandbox
|
||||||
service_namespace: ai
|
service_namespace: ai
|
||||||
in_cluster: true
|
in_cluster: true
|
||||||
sandbox_image: git.dxod.org/dexorder/dexorder/ai-sandbox:bbddd58
|
sandbox_image: git.dxod.org/dexorder/dexorder/ai-sandbox:27c603e
|
||||||
sidecar_image: git.dxod.org/dexorder/dexorder/ai-lifecycle-sidecar:latest
|
sidecar_image: git.dxod.org/dexorder/dexorder/ai-lifecycle-sidecar:latest
|
||||||
image_pull_policy: Always
|
image_pull_policy: Always
|
||||||
storage_class: ceph-block
|
storage_class: ceph-block
|
||||||
|
|||||||
Reference in New Issue
Block a user