Skip to content

Commit

Permalink
close #71
Browse files Browse the repository at this point in the history
  • Loading branch information
hw-rjuzak committed May 5, 2024
1 parent 5837ac2 commit e413370
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kimai2/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: kimai2
description: A Helm chart for Kubernetes
type: application
version: 4.0.3
version: 4.1.0
appVersion: "apache-2.16.1-prod"

dependencies:
Expand Down
11 changes: 11 additions & 0 deletions charts/kimai2/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ Return the kimai Secret Name
{{- end -}}
{{- end -}}

{{/*
Return the Kimai configuration secret
*/}}
{{- define "kimai.configSecretName" -}}
{{- if .Values.configurationFromSecret.secretName -}}
{{- printf "%s" (tpl .Values.configurationFromSecret.secretName $) -}}
{{- else -}}
{{- printf "%s-config" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}

{{/*
Return the Database Hostname
*/}}
Expand Down
2 changes: 1 addition & 1 deletion charts/kimai2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ spec:
{{- if .Values.configurationFromSecret.enabled}}
- name: config
secret:
secretName: {{ printf "%s-config" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
secretName: {{ include "kimai.configSecretName" . }}
{{- end }}
- name: kimai-data
{{- if .Values.persistence.enabled }}
Expand Down

0 comments on commit e413370

Please sign in to comment.