diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml index b80df95..63c52c8 100644 --- a/manifests/deployment.yaml +++ b/manifests/deployment.yaml @@ -25,11 +25,13 @@ spec: args: - | set -e + # Bootstrap if config doesn't exist if [ ! -f ~/.openclaw/openclaw.json ]; then node /app/openclaw.mjs onboard --non-interactive --accept-risk \ --gateway-port 18789 --gateway-bind lan \ --skip-daemon --skip-channels --skip-skills --skip-health --skip-ui fi +<<<<<<< HEAD # Patch tokens from OCP secrets into openclaw.json if not already set (idempotent) node -e " const fs = require('fs'); @@ -76,6 +78,9 @@ spec: fs.writeFileSync(process.env.HOME + '/.openclaw/openclaw.json', JSON.stringify(d, null, 2)); console.log('Tokens patched from OCP env vars'); " +======= + # Run the gateway +>>>>>>> cc0bb81 (rolled back minimax's madness) exec node /app/openclaw.mjs gateway --port 18789 --bind lan ports: - name: gateway @@ -95,10 +100,7 @@ spec: - name: NODE_OPTIONS value: "--dns-result-order=ipv4first --no-network-family-autoselection --import /home/node/canvas-patch.mjs" - name: OPENCLAW_GATEWAY_TOKEN - valueFrom: - secretKeyRef: - name: gateway-token - key: token + value: 356a221b029c582ea983c21b8b01a6689fafb1e0182e8af7 - name: GITHUB_TOKEN valueFrom: secretKeyRef: