Skip to content

Commit f35a113

Browse files
luis5tbclaude
andcommitted
fix: align Helm chart with codebase after rebase
- Add SESSION_BACKEND=database to configmap so PostgreSQL is actually used for ADK session persistence instead of in-memory default - Add GMA_CLIENT_ID and GMA_CLIENT_SECRET to secret and handler deployment for DCR tenant creation when handler is enabled - Default skipOrderValidation to false; order validation is not reached when the marketplace handler is disabled anyway Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 88396ad commit f35a113

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

deploy/openshift/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ data:
3232
AGENT_PORT: {{ .Values.agent.port | quote }}
3333

3434
# Session PostgreSQL Configuration
35+
SESSION_BACKEND: {{ .Values.postgresql.sessionBackend | quote }}
3536
SESSION_DB_USER: {{ .Values.postgresql.user | quote }}
3637
SESSION_DB_NAME: {{ .Values.postgresql.database | quote }}
3738

deploy/openshift/templates/handler-deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ spec:
6666
secretKeyRef:
6767
name: {{ include "lightspeed-agent.fullname" . }}-secrets
6868
key: DCR_ENCRYPTION_KEY
69+
- name: GMA_CLIENT_ID
70+
valueFrom:
71+
secretKeyRef:
72+
name: {{ include "lightspeed-agent.fullname" . }}-secrets
73+
key: GMA_CLIENT_ID
74+
- name: GMA_CLIENT_SECRET
75+
valueFrom:
76+
secretKeyRef:
77+
name: {{ include "lightspeed-agent.fullname" . }}-secrets
78+
key: GMA_CLIENT_SECRET
6979
volumeMounts:
7080
- name: gcp-sa-key
7181
mountPath: /var/run/secrets/gcp

deploy/openshift/templates/secret.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ stringData:
1616
DATABASE_URL: {{ .Values.secrets.databaseUrl | quote }}
1717
DCR_INITIAL_ACCESS_TOKEN: {{ .Values.secrets.dcrInitialAccessToken | quote }}
1818
DCR_ENCRYPTION_KEY: {{ .Values.secrets.dcrEncryptionKey | quote }}
19+
GMA_CLIENT_ID: {{ .Values.secrets.gmaClientId | quote }}
20+
GMA_CLIENT_SECRET: {{ .Values.secrets.gmaClientSecret | quote }}
1921
{{- end }}

deploy/openshift/values.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ auth:
6868
# Skip JWT validation entirely (development only — do NOT enable in production)
6969
skipJwtValidation: false
7070
# Skip marketplace order-id validation while keeping JWT introspection.
71-
# Should be true for OpenShift deployments without the Marketplace handler.
72-
skipOrderValidation: true
71+
# When the marketplace handler is disabled, order validation code is not
72+
# executed regardless of this setting.
73+
skipOrderValidation: false
7374

7475
# ---------------------------------------------------------------------------
7576
# Rate limiting (Redis-backed)
@@ -107,6 +108,9 @@ postgresql:
107108
repository: registry.redhat.io/rhel9/postgresql-16
108109
tag: latest
109110
pullPolicy: IfNotPresent
111+
# Session storage backend: "database" persists sessions in PostgreSQL,
112+
# "memory" uses in-memory sessions (lost on pod restart).
113+
sessionBackend: database
110114
user: sessions
111115
database: agent_sessions
112116
storage:
@@ -207,5 +211,8 @@ secrets:
207211
dcrInitialAccessToken: ""
208212
# Fernet key for encrypting stored client secrets
209213
dcrEncryptionKey: ""
214+
# GMA SSO API credentials for DCR tenant creation (handler only)
215+
gmaClientId: ""
216+
gmaClientSecret: ""
210217
# Base64-encoded GCP service account key JSON (for ADC outside Cloud Run)
211218
gcpServiceAccountKey: ""

0 commit comments

Comments
 (0)