Skip to content

Commit 0fd9a46

Browse files
jsell-rhclaude
andauthored
feat(manifests): retarget hcmais overlay for ambient-ui deployment (#1634)
## Summary - Replace `jsell-sso-poc` sub-overlay with a clean `hcmais` overlay targeting `ambient-api` namespace - Deploys only: ambient-api-server, DB, control-plane, ambient-ui, postgresql - Adds ambient-ui Route + SSO env patch for Keycloak on HCMAIS ROSA cluster - Updates ambient-ui deploy skill with HCMAIS deployment steps and prerequisites ## Prerequisites (manual, before applying) 1. Keycloak client `ambient-ui` in `ambient-code` realm (already created) 2. `sso-credentials` secret in `ambient-api` namespace (already created) 3. `ambient-control-plane-token` secret (already exists) ## Deploy ```bash kustomize build components/manifests/overlays/hcmais | oc apply -n ambient-api -f - ``` ## Test plan - [x] `kustomize build overlays/hcmais` produces valid YAML - [x] Output contains exactly 5 deployments: ambient-api-server, ambient-api-server-db, ambient-control-plane, ambient-ui, postgresql - [x] Routes: ambient-ui + api-server with correct hostnames - [x] ambient-ui env has SSO_REDIRECT_URI, preview hosts, API_SERVER_URL - [ ] Dry-run against cluster: `oc apply --dry-run=server` - [ ] ambient-ui pod starts, `/api/healthz` returns 200 - [ ] SSO login redirects to Keycloak and back 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated OpenShift routes and service targets for ambient UI and API. * Adjusted container environment variables for UI, API server, and control plane to production values. * Removed JSell SSO PoC overlay and associated secrets, RBAC, config, and PVC resources. * Enhanced deployment documentation with HCMAIS environment and Keycloak/SSO setup guidance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f9c8817 commit 0fd9a46

18 files changed

Lines changed: 270 additions & 330 deletions

components/manifests/overlays/hcmais/jsell-sso-poc/ambient-api-server-env-patch.yaml renamed to components/manifests/overlays/hcmais/ambient-api-server-env-patch.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ spec:
1010
env:
1111
- name: AMBIENT_ENV
1212
value: production
13-
- name: BACKEND_URL
14-
value: "http://backend-service.jsell-ambient-sso-poc.svc:8080"
1513
- name: JWK_CERT_URL
1614
value: "https://keycloak-ambient-keycloak.apps.rosa.hcmais01ue1.s9m2.p3.openshiftapps.com/realms/ambient-code/protocol/openid-connect/certs"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: ambient-ui
5+
spec:
6+
template:
7+
spec:
8+
containers:
9+
- name: ambient-ui
10+
env:
11+
- name: SSO_REDIRECT_URI
12+
value: "https://ambient-ui-ambient-api.apps.rosa.hcmais01ue1.s9m2.p3.openshiftapps.com/api/auth/sso/callback"
13+
- name: NEXT_PUBLIC_PREVIEW_ALLOWED_HOSTS
14+
value: "*.apps.rosa.hcmais01ue1.s9m2.p3.openshiftapps.com,*.openshiftapps.com"

components/manifests/overlays/hcmais/jsell-sso-poc/frontend-route.yaml renamed to components/manifests/overlays/hcmais/ambient-ui-route.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
apiVersion: route.openshift.io/v1
22
kind: Route
33
metadata:
4-
name: frontend-route
5-
labels:
6-
app: frontend
4+
name: ambient-ui
75
spec:
6+
host: ambient-ui-ambient-api.apps.rosa.hcmais01ue1.s9m2.p3.openshiftapps.com
87
to:
98
kind: Service
10-
name: frontend-service
11-
weight: 100
9+
name: ambient-ui-service
1210
port:
1311
targetPort: http
1412
tls:
1513
termination: edge
1614
insecureEdgeTerminationPolicy: Redirect
17-
wildcardPolicy: None

components/manifests/overlays/hcmais/jsell-sso-poc/api-server-route.yaml renamed to components/manifests/overlays/hcmais/api-server-route.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
apiVersion: route.openshift.io/v1
22
kind: Route
33
metadata:
4-
name: ambient-api-server-route
4+
name: ambient-api-server
55
spec:
6-
host: ambient-api-server-jsell-ambient-sso-poc.apps.rosa.hcmais01ue1.s9m2.p3.openshiftapps.com
6+
host: ambient-api-server-ambient-api.apps.rosa.hcmais01ue1.s9m2.p3.openshiftapps.com
77
to:
88
kind: Service
99
name: ambient-api-server
10-
weight: 100
1110
port:
12-
targetPort: 8000
11+
targetPort: api
1312
tls:
1413
termination: edge
1514
insecureEdgeTerminationPolicy: Redirect
16-
wildcardPolicy: None
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: ambient-control-plane
5+
spec:
6+
template:
7+
spec:
8+
containers:
9+
- name: ambient-control-plane
10+
env:
11+
- name: AMBIENT_API_SERVER_URL
12+
value: "http://ambient-api-server.ambient-api.svc:8000"
13+
- name: AMBIENT_GRPC_SERVER_ADDR
14+
value: "ambient-api-server.ambient-api.svc:9000"
15+
- name: AMBIENT_GRPC_USE_TLS
16+
value: "false"
17+
- name: CP_TOKEN_URL
18+
value: "http://ambient-control-plane.ambient-api.svc:8080/token"
19+
- name: AMBIENT_API_TOKEN
20+
valueFrom:
21+
secretKeyRef:
22+
name: ambient-control-plane-token
23+
key: token

components/manifests/overlays/hcmais/jsell-sso-poc/api-server-secret-patch.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

components/manifests/overlays/hcmais/jsell-sso-poc/backend-sso-patch.yaml

Lines changed: 0 additions & 25 deletions
This file was deleted.

components/manifests/overlays/hcmais/jsell-sso-poc/clusterrolebindings.yaml

Lines changed: 0 additions & 68 deletions
This file was deleted.

components/manifests/overlays/hcmais/jsell-sso-poc/control-plane-env-patch.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

components/manifests/overlays/hcmais/jsell-sso-poc/frontend-sso-patch.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)