-
Notifications
You must be signed in to change notification settings - Fork 84
fix(manifests): add CP token Service and wire CP_RUNTIME_NAMESPACE + CP_TOKEN_URL #1214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: ambient-control-plane | ||
| namespace: ambient-code--runtime-int | ||
| labels: | ||
| app: ambient-control-plane | ||
| spec: | ||
| selector: | ||
| app: ambient-control-plane | ||
| ports: | ||
| - name: token | ||
| port: 8080 | ||
| targetPort: 8080 | ||
| protocol: TCP | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,6 +76,12 @@ spec: | |
| value: "ambient-vertex" | ||
| - name: VERTEX_SECRET_NAMESPACE | ||
| value: "ambient-code--runtime-int" | ||
| - name: CP_RUNTIME_NAMESPACE | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.namespace | ||
| - name: CP_TOKEN_URL | ||
| value: "http://ambient-control-plane.ambient-code--ambient-s0.svc:8080/token" | ||
|
Comment on lines
+79
to
+84
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Using However, 🤖 Prompt for AI Agents |
||
| volumeMounts: | ||
| - name: project-kube-token | ||
| mountPath: /var/run/secrets/project-kube | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: ambient-code/platform
Length of output: 359
Fix namespace mismatch: CP_TOKEN_URL points to wrong namespace.
Service
ambient-control-planeis deployed to namespaceambient-code--runtime-int(line 5), butCP_TOKEN_URLinambient-control-plane.yaml:84referencesambient-code--ambient-s0.svc:8080. The token endpoint will fail to resolve. Update the CP_TOKEN_URL to match the Service namespace:🤖 Prompt for AI Agents