Skip to content

Commit

Permalink
Merge pull request #9 from devops-consultants/home-assistant
Browse files Browse the repository at this point in the history
fix: adding extra labels to service
  • Loading branch information
robcoward authored Aug 14, 2024
2 parents 89ca3a7 + 5fc2de1 commit 4572775
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/home-assistant/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: home-assistant
description: A Helm chart for Home-Assistant
type: application
version: 0.1.2
version: 0.1.3
appVersion: "2023.11"
maintainers:
- name: devops-consultants
6 changes: 3 additions & 3 deletions charts/home-assistant/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ spec:
serviceAccountName: {{ include "home-assistant.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
dnsPolicy: {{ .Values.dnsPolicy }}
hostNetwork: {{ .Values.hostNetwork }}
enableServiceLinks: {{ .Values.enableServiceLinks }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
dnsPolicy: {{ .Values.dnsPolicy }}
hostNetwork: {{ .Values.hostNetwork }}
enableServiceLinks: {{ .Values.enableServiceLinks }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand Down
3 changes: 3 additions & 0 deletions charts/home-assistant/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: {{ include "home-assistant.fullname" . }}
labels:
{{- include "home-assistant.labels" . | nindent 4 }}
{{- with .Values.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
1 change: 1 addition & 0 deletions charts/home-assistant/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ securityContext:
service:
type: ClusterIP
port: 8123
labels: {}

ingress:
enabled: false
Expand Down

0 comments on commit 4572775

Please sign in to comment.