Added hcloud token to cluster_setup

This commit is contained in:
Jim Martens 2023-11-06 18:03:21 +01:00
parent dbf1dc685a
commit 8b125220a3
4 changed files with 25 additions and 4 deletions

View File

@ -1,6 +1,6 @@
apiVersion: v2
name: cluster_setup
version: 0.1.3
version: 0.2.0
type: application
description: "Initial cluster setup"
maintainers:
@ -8,8 +8,8 @@ maintainers:
url: https://2martens.de
annotations:
artifacthub.io/changes: |
- kind: changed
description: Don't create namespace anymore
- kind: added
description: Added support for hcloud token
artifacthub.io/signKey: |
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc

View File

@ -0,0 +1,14 @@
{{- if .Values.hcloud.enabled }}
apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.hcloud.namespace | default "hcloud" }}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: hcloud
data:
token: {{ .Values.hcloud.token | b64enc }}
{{- end }}

View File

@ -8,6 +8,7 @@ metadata:
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: vault-service-principal
namespace: {{ .name }}

View File

@ -3,4 +3,10 @@ vault:
enabled: false
clientId: ""
clientSecret: ""
applicationNamespaces: []
# creates each of the namespaces
applicationNamespaces: []
hcloud:
enabled: false
token: ""
# if empty, hcloud will be used
namespace: ""