Skip to content

Commit

Permalink
bump(home-assistant): 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor Pichner committed Dec 26, 2023
1 parent 85884d5 commit ef0fb56
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/home-assistant/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.2
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
47 changes: 47 additions & 0 deletions charts/home-assistant/templates/_common.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{{/*
Create HomeAssistant app version
*/}}
{{- define "home-assistant.defaultTag" -}}
{{- default .Chart.AppVersion .Values.image.tag }}
{{- end -}}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "home-assistant.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Return valid version label
*/}}
{{- define "home-assistant.versionLabelValue" -}}
{{ regexReplaceAll "[^-A-Za-z0-9_.]" (include "home-assistant.defaultTag" .) "-" | trunc 63 | trimAll "-" | trimAll "_" | trimAll "." | quote }}
{{- end -}}

{{/*
Common labels
*/}}
{{- define "home-assistant.labels" -}}
helm.sh/chart: {{ include "home-assistant.chart" .context }}
{{ include "home-assistant.selectorLabels" (dict "context" .context "component" .component "name" .name) }}
app.kubernetes.io/managed-by: {{ .context.Release.Service }}
app.kubernetes.io/part-of: home-assistant
app.kubernetes.io/version: {{ include "home-assistant.versionLabelValue" .context }}
{{- with .context.Values.additionalLabels }}
{{ toYaml . }}
{{- end }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "home-assistant.selectorLabels" -}}
{{- if .name -}}
app.kubernetes.io/name: {{ include "home-assistant.name" .context }}-{{ .name }}
{{ end -}}
app.kubernetes.io/instance: {{ .context.Release.Name }}
{{- if .component }}
app.kubernetes.io/component: {{ .component }}
{{- end }}
{{- end }}
1 change: 0 additions & 1 deletion charts/home-assistant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ persistence:
accessMode: ReadWriteOnce

# TLS certificate configuration via cert-manager
## Ref: https://argo-cd.readthedocs.io/en/stable/operator-manual/tls/#tls-certificates-used-by-argocd-server
certificate:
enabled: false
secretName: home-assistant-tls
Expand Down

0 comments on commit ef0fb56

Please sign in to comment.