This repository has been archived by the owner on Oct 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Including UI with lint Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> * Ingress deactivated by default Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> * Version 0.2.0 Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> * Add ui settings Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> * Display the application URL Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> * Protect boolean as string Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> * Remove warning from lint Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> * Move probes, service and ingress within ui values Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> * Revert "Move probes, service and ingress within ui values" This reverts commit 08a91e3. * Using generic configmap por assistant settings Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> * Move probes, services and ingress within assistant section Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> * Some wording Signed-off-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com> Co-authored-by: Miguel Angel Santiago <miguelangel.santiago@hotmail.com>
- Loading branch information
1 parent
40b25eb
commit d733be9
Showing
7 changed files
with
236 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{- if and .Values.assistant.enabled .Values.assistant.ingress.enabled -}} | ||
{{- $fullName := include "zigbee2mqtt.fullname" . -}} | ||
{{- $ingressPath := .Values.assistant.ingress.path -}} | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ $fullName }} | ||
labels: | ||
{{ include "zigbee2mqtt.labels" . | indent 4 }} | ||
{{- with .Values.assistant.ingress.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.assistant.ingress.tls }} | ||
tls: | ||
{{- range .Values.assistant.ingress.tls }} | ||
- hosts: | ||
{{- range .hosts }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
secretName: {{ .secretName }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
{{- range .Values.assistant.ingress.hosts }} | ||
- host: {{ . | quote }} | ||
http: | ||
paths: | ||
- path: {{ $ingressPath }} | ||
backend: | ||
serviceName: {{ $fullName }} | ||
servicePort: http | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{{- if .Values.assistant.enabled -}} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "zigbee2mqtt.fullname" . }} | ||
labels: | ||
{{ include "zigbee2mqtt.labels" . | indent 4 }} | ||
{{- if .Values.assistant.service.labels }} | ||
{{ toYaml .Values.assistant.service.labels | indent 4 }} | ||
{{- end }} | ||
{{- with .Values.assistant.service.annotations }} | ||
annotations: | ||
{{ toYaml . | indent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if (or (eq .Values.assistant.service.type "ClusterIP") (empty .Values.assistant.service.type)) }} | ||
type: ClusterIP | ||
{{- if .Values.assistant.service.clusterIP }} | ||
clusterIP: {{ .Values.assistant.service.clusterIP }} | ||
{{end}} | ||
{{- else if eq .Values.assistant.service.type "LoadBalancer" }} | ||
type: {{ .Values.assistant.service.type }} | ||
{{- if .Values.assistant.service.loadBalancerIP }} | ||
loadBalancerIP: {{ .Values.assistant.service.loadBalancerIP }} | ||
{{- end }} | ||
{{- if .Values.assistant.service.loadBalancerSourceRanges }} | ||
loadBalancerSourceRanges: | ||
{{ toYaml .Values.assistant.service.loadBalancerSourceRanges | indent 4 }} | ||
{{- end -}} | ||
{{- else }} | ||
type: {{ .Values.assistant.service.type }} | ||
{{- end }} | ||
{{- if .Values.assistant.service.externalIPs }} | ||
externalIPs: | ||
{{ toYaml .Values.assistant.service.externalIPs | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.assistant.service.externalTrafficPolicy }} | ||
externalTrafficPolicy: {{ .Values.assistant.service.externalTrafficPolicy }} | ||
{{- end }} | ||
ports: | ||
- name: http | ||
port: {{ .Values.assistant.service.port }} | ||
protocol: TCP | ||
targetPort: http | ||
{{ if (and (eq .Values.assistant.service.type "NodePort") (not (empty .Values.assistant.service.nodePort))) }} | ||
nodePort: {{.Values.assistant.service.nodePort}} | ||
{{ end }} | ||
selector: | ||
{{- include "zigbee2mqtt.selectorLabels" . | nindent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters