diff --git a/charts/home-assistant/Chart.yaml b/charts/home-assistant/Chart.yaml index 8bb2b22..32a2d00 100644 --- a/charts/home-assistant/Chart.yaml +++ b/charts/home-assistant/Chart.yaml @@ -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 diff --git a/charts/home-assistant/templates/deployment.yaml b/charts/home-assistant/templates/deployment.yaml index ec67525..027adc1 100644 --- a/charts/home-assistant/templates/deployment.yaml +++ b/charts/home-assistant/templates/deployment.yaml @@ -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 }} diff --git a/charts/home-assistant/templates/service.yaml b/charts/home-assistant/templates/service.yaml index 8318734..aa00c18 100644 --- a/charts/home-assistant/templates/service.yaml +++ b/charts/home-assistant/templates/service.yaml @@ -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: diff --git a/charts/home-assistant/values.yaml b/charts/home-assistant/values.yaml index 7456dcc..3b3093d 100644 --- a/charts/home-assistant/values.yaml +++ b/charts/home-assistant/values.yaml @@ -61,6 +61,7 @@ securityContext: service: type: ClusterIP port: 8123 + labels: {} ingress: enabled: false