Skip to content

Commit

Permalink
Update helm chart (#325)
Browse files Browse the repository at this point in the history
* update helm chart

Signed-off-by: Bailin He <[email protected]>

* fix things

* add tokenSecretName
* fixed unclosed if's

Signed-off-by: Bailin He <[email protected]>

---------

Signed-off-by: Bailin He <[email protected]>
  • Loading branch information
bailinhe authored Oct 7, 2024
1 parent 0cb0908 commit 2bdeee4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
17 changes: 17 additions & 0 deletions chart/identity-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ spec:
{{- end }}
containers:
- name: {{ include "common.names.name" . }}
{{- if .Values.config.events.nats.tokenSecretName }}
env:
- name: IDENTITYAPI_EVENTS_NATS_TOKEN
valueFrom:
secretKeyRef:
name: "{{ .Values.config.events.nats.tokenSecretName }}"
key: token
{{- end }}
envFrom:
- secretRef:
name: "{{ .Values.config.oauth.secretName }}"
Expand All @@ -113,6 +121,10 @@ spec:
- name: crdb-ca
mountPath: "{{ .Values.config.storage.crdb.certMountPath }}"
{{- end }}
{{- if .Values.config.events.nats.credsSecretName }}
- name: nats-creds
mountPath: /nats
{{- end }}
{{- if .Values.config.audit.enabled }}
- name: audit-logs
mountPath: /app-audit
Expand Down Expand Up @@ -167,6 +179,11 @@ spec:
secret:
secretName: "{{ . }}"
{{- end }}
{{- with .Values.config.events.nats.credsSecretName}}
- name: nats-creds
secret:
secretName: "{{ . }}"
{{- end }}
{{- if .Values.config.audit.enabled }}
- name: audit-logs
emptyDir: {}
Expand Down
19 changes: 19 additions & 0 deletions chart/identity-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,25 @@ config:
# - "1.2.3.4/32"
# - "1.2.3.0/24"

events:
nats:
# url is the event server connection url
url: ""
# source defines the source of the events (defaults to application name)
source: ""
# publishPrefix is the prefix to add to all published events
publishPrefix: ""
# connectTimeout is event connection timeout
connectTimeout: "10s"
# shutdownTimeout is the shutdown grace period
shutdownTimeout: "5s"
# tokenSecretName is the secret to load the auth token
tokenSecretName: ""
# credsSecretName is the secret to load the creds auth file from
credsSecretName: ""
# credsFile is the location to read the creds file from
credsFile: "/nats/creds"

otel:
enabled: false
provider: stdout
Expand Down

0 comments on commit 2bdeee4

Please sign in to comment.