mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
[home-assistant] allow setting a base64-encoded SSH private key (#429)
Co-authored-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <6213398+bjw-s@users.noreply.github.com>
This commit is contained in:
parent
33b54fc068
commit
b290bcd0a1
@ -2,7 +2,7 @@ apiVersion: v2
|
||||
appVersion: 2020.12.1
|
||||
description: Home Assistant
|
||||
name: home-assistant
|
||||
version: 5.1.1
|
||||
version: 5.2.0
|
||||
keywords:
|
||||
- home-assistant
|
||||
- hass
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{- if .Values.git.deployKey }}
|
||||
{{- if or .Values.git.deployKey .Values.git.deployKeyBase64 }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
@ -7,5 +7,9 @@ metadata:
|
||||
{{- include "common.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
{{- if .Values.git.deployKey }}
|
||||
id_rsa: {{ .Values.git.deployKey | b64enc | quote }}
|
||||
{{- else }}
|
||||
id_rsa: {{ .Values.git.deployKeyBase64 | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
@ -18,12 +18,19 @@ service:
|
||||
# # Enable devices to be discoverable
|
||||
# hostNetwork: true
|
||||
|
||||
# # When hostNetwork is true set dnsPolicy to ClusterFirstWithHostNet
|
||||
# dnsPolicy: ClusterFirstWithHostNet
|
||||
|
||||
# # Enable passing thru a USB device to Home Assistant
|
||||
# securityContext:
|
||||
# privileged: true
|
||||
|
||||
# Allow access a Git repository by passing in a private SSH key
|
||||
git:
|
||||
# Raw SSH private key
|
||||
deployKey: ""
|
||||
# Base64-encoded SSH private key. When both variables are set, the raw SSH key takes precedence.
|
||||
deployKeyBase64: ""
|
||||
|
||||
# Enable a prometheus-operator servicemonitor
|
||||
prometheus:
|
||||
|
Loading…
Reference in New Issue
Block a user