Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
586 changes: 586 additions & 0 deletions .tekton/ambient-code-ambient-api-server-main-pull-request.yaml

Large diffs are not rendered by default.

583 changes: 583 additions & 0 deletions .tekton/ambient-code-ambient-api-server-main-push.yaml

Large diffs are not rendered by default.

582 changes: 582 additions & 0 deletions .tekton/ambient-code-ambient-runner-main-pull-request.yaml

Large diffs are not rendered by default.

579 changes: 579 additions & 0 deletions .tekton/ambient-code-ambient-runner-main-push.yaml

Large diffs are not rendered by default.

586 changes: 586 additions & 0 deletions .tekton/ambient-code-backend-main-pull-request.yaml

Large diffs are not rendered by default.

583 changes: 583 additions & 0 deletions .tekton/ambient-code-backend-main-push.yaml

Large diffs are not rendered by default.

586 changes: 586 additions & 0 deletions .tekton/ambient-code-frontend-main-pull-request.yaml

Large diffs are not rendered by default.

583 changes: 583 additions & 0 deletions .tekton/ambient-code-frontend-main-push.yaml

Large diffs are not rendered by default.

586 changes: 586 additions & 0 deletions .tekton/ambient-code-operator-main-pull-request.yaml

Large diffs are not rendered by default.

583 changes: 583 additions & 0 deletions .tekton/ambient-code-operator-main-push.yaml

Large diffs are not rendered by default.

586 changes: 586 additions & 0 deletions .tekton/ambient-code-public-api-main-pull-request.yaml

Large diffs are not rendered by default.

583 changes: 583 additions & 0 deletions .tekton/ambient-code-public-api-main-push.yaml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion components/ambient-api-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ EXPOSE 8000
ENTRYPOINT ["/usr/local/bin/ambient-api-server", "serve"]

LABEL name="ambient-api-server" \
vendor="Ambient" \
version="0.0.1" \
summary="Ambient API Server" \
description="REST API server for the Ambient Code Platform"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
apiVersion: v1
kind: Secret
metadata:
name: ambient-api-server-db
labels:
app: ambient-api-server
component: database
annotations:
# External RDS credentials injected from Vault at runtime
qontract.recycle: "true"
type: Opaque
stringData:
# Placeholders - actual values injected from Vault at runtime
db.host: "VAULT_INJECTED"
db.port: "5432"
db.name: "ambient_code"
db.user: "VAULT_INJECTED"
db.password: "VAULT_INJECTED"
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: ambient-api-server
labels:
app: ambient-api-server
component: api
spec:
to:
kind: Service
name: ambient-api-server
port:
targetPort: api
tls:
termination: reencrypt
insecureEdgeTerminationPolicy: Redirect
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: ambient-api-server-grpc
labels:
app: ambient-api-server
component: grpc
spec:
to:
kind: Service
name: ambient-api-server
port:
targetPort: grpc
tls:
termination: reencrypt
insecureEdgeTerminationPolicy: Redirect
17 changes: 17 additions & 0 deletions components/manifests/overlays/app-interface/backend-route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: backend-route
labels:
app: backend-api
spec:
to:
kind: Service
name: backend-service
weight: 100
port:
targetPort: http
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None
103 changes: 103 additions & 0 deletions components/manifests/overlays/app-interface/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

metadata:
name: ambient-code-app-interface

# Target namespace on hcmais01ue1 cluster
namespace: ambient-code

# Include base resources (CRDs, RBAC, core deployments, platform)
resources:
- ../../base
- route.yaml
- backend-route.yaml
- public-api-route.yaml
- ambient-api-server-route.yaml
- operator-config-openshift.yaml

# Patches to configure external resources
patches:
# Update operator to use Konflux runner image
- path: operator-runner-image-patch.yaml
target:
kind: Deployment
name: agentic-operator
# Scale down in-cluster databases to 0 (using external RDS from Phase 2)
- target:
kind: Deployment
name: postgresql
patch: |-
- op: replace
path: /spec/replicas
value: 0
- target:
kind: Deployment
name: ambient-api-server-db
patch: |-
- op: replace
path: /spec/replicas
value: 0

# Scale down in-cluster MinIO to 0 (using external S3 from Phase 2)
- target:
kind: Deployment
name: minio
patch: |-
- op: replace
path: /spec/replicas
value: 0

# Scale down in-cluster Unleash to 0 (will configure external instance later)
- target:
kind: Deployment
name: unleash
patch: |-
- op: replace
path: /spec/replicas
value: 0

# Patch ambient-api-server-db secret to use external RDS (from Vault)
- path: ambient-api-server-db-secret-patch.yaml
target:
kind: Secret
name: ambient-api-server-db

# Konflux image overrides (redhat-services-prod)
images:
- name: quay.io/ambient_code/vteam_operator
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-operator-main
newTag: latest
- name: quay.io/ambient_code/vteam_operator:latest
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-operator-main
newTag: latest
- name: quay.io/ambient_code/vteam_backend
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-backend-main
newTag: latest
- name: quay.io/ambient_code/vteam_backend:latest
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-backend-main
newTag: latest
- name: quay.io/ambient_code/vteam_frontend
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-frontend-main
newTag: latest
- name: quay.io/ambient_code/vteam_frontend:latest
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-frontend-main
newTag: latest
- name: quay.io/ambient_code/vteam_public_api
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-public-api-main
newTag: latest
- name: quay.io/ambient_code/vteam_public_api:latest
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-public-api-main
newTag: latest
- name: quay.io/ambient_code/vteam_api_server
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-ambient-api-server-main
newTag: latest
- name: quay.io/ambient_code/vteam_api_server:latest
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-ambient-api-server-main
newTag: latest
- name: quay.io/ambient_code/vteam_claude_runner
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-ambient-runner-main
newTag: latest
- name: quay.io/ambient_code/vteam_claude_runner:latest
newName: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-ambient-runner-main
newTag: latest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: ambient-code
labels:
environment: stage
service: ambient-code-platform
12 changes: 12 additions & 0 deletions components/manifests/overlays/app-interface/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Namespace
metadata:
name: ambient-code
labels:
environment: stage
service: ambient-code-platform
name: ambient-code
app: vteam
annotations:
app.kubernetes.io/name: ambient-code
app.kubernetes.io/part-of: ambient-code
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: operator-config
labels:
app: agentic-operator
deployment-type: openshift
data:
# Vertex AI Configuration - Enabled for standard OpenShift deployments
USE_VERTEX: "1"
CLOUD_ML_REGION: "global"
ANTHROPIC_VERTEX_PROJECT_ID: "ambient-code-platform"
GOOGLE_APPLICATION_CREDENTIALS: "/app/vertex/ambient-code-key.json"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: agentic-operator
spec:
template:
spec:
containers:
- name: agentic-operator
env:
- name: AMBIENT_CODE_RUNNER_IMAGE
value: quay.io/redhat-services-prod/hcm-eng-prod-tenant/ambient-code-main/ambient-code-ambient-runner-main:latest
17 changes: 17 additions & 0 deletions components/manifests/overlays/app-interface/public-api-route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: public-api-route
labels:
app: public-api
spec:
to:
kind: Service
name: public-api-service
weight: 100
port:
targetPort: http
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None
20 changes: 20 additions & 0 deletions components/manifests/overlays/app-interface/route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: frontend-route
labels:
app: frontend
annotations:
haproxy.router.openshift.io/balance: roundrobin
haproxy.router.openshift.io/disable_cookies: "true"
spec:
to:
kind: Service
name: frontend-service
weight: 100
port:
targetPort: dashboard-ui
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None
2 changes: 1 addition & 1 deletion components/runners/ambient-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN pip3 install --break-system-packages --no-cache-dir uv==${UV_VERSION} pre-co
WORKDIR /app

# Copy ambient-runner package
COPY ambient-runner /app/ambient-runner
COPY . /app/ambient-runner

# Install runner as a package, then remove build-only deps in same layer
RUN pip3 install --break-system-packages --no-cache-dir '/app/ambient-runner[all]' && \
Expand Down
Loading