Skip to content

Commit

Permalink
update zora-saas chart
Browse files Browse the repository at this point in the history
  • Loading branch information
undistrobot committed Sep 25, 2024
1 parent d3dbb09 commit b15595b
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 24 deletions.
4 changes: 2 additions & 2 deletions charts/zora-saas/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: zora-saas
description: A Helm chart to deploy Zora SaaS on Kubernetes
type: application
version: 0.3.2
appVersion: "v0.3.2"
version: 0.4.0-rc1
appVersion: "v0.4.0-rc1"
7 changes: 4 additions & 3 deletions charts/zora-saas/templates/admin/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ spec:
securityContext:
{{- toYaml .Values.admin.securityContext | nindent 12 }}
image: "{{ .Values.admin.image.repository }}:{{ .Values.admin.image.tag | default .Chart.AppVersion }}"
args:
- --database={{ .Values.mongo.database }}
envFrom:
- secretRef:
name: {{ .Values.mongo.secret }}
name: {{ .Values.database.secret }}
optional: false
- secretRef:
optional: false
name: {{ .Values.admin.secretName }}
imagePullPolicy: {{ .Values.admin.image.pullPolicy }}
ports:
- name: http
Expand Down
6 changes: 4 additions & 2 deletions charts/zora-saas/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ spec:
args:
- --log-level={{ .Values.log.level }}
- --log-encoding={{ .Values.log.encoding }}
- --database={{ .Values.mongo.database }}
- --read-timeout={{ .Values.readTimeout }}
- --write-timeout={{ .Values.writeTimeout }}
{{- if .Values.scheduleValidation }}
Expand All @@ -44,8 +43,11 @@ spec:
- --block-new-users={{ .Values.blockNewUsers }}
envFrom:
- secretRef:
name: {{ .Values.mongo.secret }}
name: {{ .Values.database.secret }}
optional: false
- secretRef:
optional: false
name: {{ .Values.secretName }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
Expand Down
2 changes: 0 additions & 2 deletions charts/zora-saas/templates/ui/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ spec:
optional: false
name: {{ .Values.ui.secretName }}
env:
- name: NEXTAUTH_URL_INTERNAL
value: http://127.0.0.1:4200
- name: SAAS_URL
{{- if .Values.proxy.enabled }}
value: "https://saas-proxy.{{ .Release.Namespace }}.svc:{{ .Values.proxy.port }}/zora"
Expand Down
4 changes: 1 addition & 3 deletions charts/zora-saas/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ resources:
memory: 15Mi
imagePullSecrets:
- name: zora-saas-registry-cred
mongo:
database: "zora-saas-dev"
log:
level: debug
proxy:
enabled: false
grafanaDashboard:
enabled: false
blockNewUsers: true
blockNewUsers: false
2 changes: 0 additions & 2 deletions charts/zora-saas/values-hml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ resources:
memory: 15Mi
imagePullSecrets:
- name: zora-saas-registry-cred
mongo:
database: "zora-saas-hml"
log:
level: info
proxy:
Expand Down
2 changes: 0 additions & 2 deletions charts/zora-saas/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ resources:
memory: 200Mi
imagePullSecrets:
- name: zora-saas-registry-cred
mongo:
database: "zora-saas-prod"
log:
level: debug
readTimeout: "30s"
Expand Down
26 changes: 18 additions & 8 deletions charts/zora-saas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ image:
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
# This secret must contains
# - OAUTH_DOMAIN - The hostname for the login server
# - OAUTH_AUDIENCE - The audience used by the SaaS API
# - OAUTH_CLIENT_ID - The Operator authentication client ID
secretName: "zora-saas-credentials"

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -108,10 +113,13 @@ ui:
repository: ghcr.io/undistro/zora-ui-saas
pullPolicy: IfNotPresent
tag: ""
# This secret must contains GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET,
# GITHUB_ID, GITHUB_SECRET,
# AZURE_AD_CLIENT_ID, AZURE_AD_CLIENT_SECRET, AZURE_AD_TENANT_ID
# and NEXTAUTH_SECRET
# This secret must contains
# - AUTH0_SECRET - used to encrypt the cookies sent to the clients
# - AUTH0_BASE_URL - The base url for the application, this will be used for setting up the login callback (e.g. https://localhost:3000)
# - AUTH0_ISSUER_BASE_URL - The base url for the login oauth server (https://<auth server>)
# - AUTH0_CLIENT_ID - The UI authentication client ID
# - AUTH0_CLIENT_SECRET - The UI authentication secret
# - AUTH0_AUDIENCE - The audience used by the SaaS API
secretName: "zora-saas-ui-credentials"
podAnnotations: {}
podSecurityContext:
Expand All @@ -136,10 +144,8 @@ ui:
tolerations: []
affinity: {}

mongo:
# This secret must contains MONGODB_URI data
secret: mongodb-connection
database: "test"
database:
secret: postgres-credentials

scheduleValidation: false

Expand All @@ -166,6 +172,10 @@ admin:
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
# This secret must contains
# - OAUTH_DOMAIN - The hostname for the login server
# - OAUTH_AUDIENCE - The audience used by the Monitoring API
secretName: "zora-admin-credentials"
podAnnotations: {}
podSecurityContext:
fsGroup: 2000
Expand Down

0 comments on commit b15595b

Please sign in to comment.