Skip to content

Commit

Permalink
Merge pull request #126 from Calcagiara/keystoreFix
Browse files Browse the repository at this point in the history
fix(core): fixed keystore creation conditions
  • Loading branch information
ffais authored Oct 16, 2024
2 parents cf40254 + 78429f9 commit 251d528
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: core
description: Core backend application for DigitalHub.
type: application
version: 0.2.15
version: 0.2.16
appVersion: "0.8.0-beta4"
maintainers:
- name: ffais
Expand Down
4 changes: 2 additions & 2 deletions charts/core/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ data:
{{- end }}
KANIKO_ARGS: {{ .Values.kanikoArgs | quote }}
DH_CORS_ORIGINS: {{ .Values.corsOrigin | quote }}
{{- if and .Values.keystore.existingSecret.secretName .Values.keystore.existingSecret.keystorePath }}
{{- if and .Values.keystore.existingSecret.secretName .Values.keystore.keystorePath }}
JWT_KEYSTORE_PATH: "{{ .Values.keystore.keystorePath }}/{{ .Values.keystore.existingSecret.keyName }}"
JWT_KEYSTORE_KID: {{ .Values.keystore.keystoreKid | quote }}
{{- else if and (not .Values.keystore.existingSecret.secretName) .Values.keystore.existingSecret.keystorePath -}}
{{- else if and (not .Values.keystore.existingSecret.secretName) .Values.keystore.keystorePath }}
JWT_KEYSTORE_PATH: "{{ .Values.keystore.keystorePath }}/keystore.jwks"
JWT_KEYSTORE_KID: {{ .Values.keystore.keystoreKid | quote }}
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions charts/core/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
{{- if and .Values.keystore.existingSecret.secretName .Values.keystore.existingSecret.keystorePath }}
{{- if and .Values.keystore.existingSecret.secretName .Values.keystore.keystorePath }}
- name: keystore
mountPath: "{{ .Values.keystore.keystorePath }}/{{ .Values.keystore.existingSecret.keyName }}"
subPath: {{ .Values.keystore.existingSecret.keyName }}
Expand All @@ -137,7 +137,7 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
volumes:
{{- if and .Values.keystore.existingSecret.secretName .Values.keystore.existingSecret.keystorePath }}
{{- if and .Values.keystore.existingSecret.secretName .Values.keystore.keystorePath }}
- name: keystore
secret:
secretName: {{ .Values.keystore.existingSecret.secretName }}
Expand Down

0 comments on commit 251d528

Please sign in to comment.