fix: updated csi-drivers for k0s and simplified smb (#1220)
* updated csi-drivers for k0s and simplified smb * Update addons.yaml * fixed spegel variable typos * Removed extra line ending
This commit is contained in:
1 parent
1d5a3842de
commit
8265c80909
12 files changed
+27
-43
No files matched your search
@@ -8,6 +8,6 @@ resources:
|
||||
- ./kubelet-csr-approver/ks.yaml
|
||||
#% endif %#
|
||||
- ./metrics-server/ks.yaml
|
||||
#% if bootstrap_distribution in ['k0s', 'talos'] and spegel.enabled %#
|
||||
#% if bootstrap_distribution in ['k0s', 'talos'] and addon_spegel.enabled %#
|
||||
- ./spegel/ks.yaml
|
||||
#% endif %#
|
||||
@@ -1,4 +1,4 @@
|
||||
#% if bootstrap_distribution in ['k0s', 'talos'] and spegel.enabled %#
|
||||
#% if bootstrap_distribution in ['k0s', 'talos'] and addon_spegel.enabled %#
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#% if bootstrap_distribution in ['k0s', 'talos'] and spegel.enabled %#
|
||||
#% if bootstrap_distribution in ['k0s', 'talos'] and addon_spegel.enabled %#
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#% if bootstrap_distribution in ['k0s', 'talos'] and spegel.enabled %#
|
||||
#% if bootstrap_distribution in ['k0s', 'talos'] and addon_spegel.enabled %#
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
|
||||
@@ -26,4 +26,7 @@ spec:
|
||||
values:
|
||||
externalSnapshotter:
|
||||
enabled: false
|
||||
#% if bootstrap_distribution == "k0s" %#
|
||||
kubeletDir: /var/lib/k0s/kubelet
|
||||
#% endif %#
|
||||
#% endif %#
|
||||
@@ -23,5 +23,11 @@ spec:
|
||||
retries: 3
|
||||
uninstall:
|
||||
keepHistory: false
|
||||
values: {}
|
||||
values:
|
||||
linux:
|
||||
#% if bootstrap_distribution == "k0s" %#
|
||||
kubelet: /var/lib/k0s/kubelet
|
||||
#% else %#
|
||||
kubelet: /var/lib/kubelet
|
||||
#% endif %#
|
||||
#% endif %#
|
||||
@@ -5,5 +5,7 @@ kind: Kustomization
|
||||
resources:
|
||||
- ./helmrelease.yaml
|
||||
- ./storageclass.yaml
|
||||
#% if addon_csi_driver_smb.create_secrets|default(true) %#
|
||||
- ./secrets.sops.yaml
|
||||
#% endif %#
|
||||
#% endif %#
|
||||
@@ -1,4 +1,4 @@
|
||||
#% if addon_csi_driver_smb.enabled %#
|
||||
#% if addon_csi_driver_smb.enabled and addon_csi_driver_smb.create_secrets|default(true) %#
|
||||
#% for item in addon_csi_driver_smb.storage_class %#
|
||||
#% if not item.existing_secret_name %#
|
||||
---
|
||||
|
||||
@@ -8,13 +8,9 @@ metadata:
|
||||
provisioner: smb.csi.k8s.io
|
||||
parameters:
|
||||
source: "#{ item.source }#"
|
||||
csi.storage.k8s.io/node-stage-secret-name: "#{ item.existing_secret_name|default(item.name + '-secret') }#"
|
||||
#% if item.existing_secret_name and item.existing_secret_namespace %#
|
||||
csi.storage.k8s.io/node-stage-secret-namespace: "#{ item.existing_secret_namespace }#"
|
||||
#% else %#
|
||||
csi.storage.k8s.io/node-stage-secret-namespace: "storage"
|
||||
#% endif %#
|
||||
createSubDir: "false"
|
||||
csi.storage.k8s.io/node-stage-secret-name: "#{ item.secret_name|default(item.name + '-secret') }#"
|
||||
csi.storage.k8s.io/node-stage-secret-namespace: "#{ item.secret_namespace|default("storage") }#"
|
||||
onDelete: retain
|
||||
reclaimPolicy: Retain
|
||||
volumeBindingMode: Immediate
|
||||
mountOptions:
|
||||
|
||||
@@ -13,4 +13,3 @@ resources:
|
||||
#% if addon_volsync.enabled %#
|
||||
- ./volsync/ks.yaml
|
||||
#% endif %#
|
||||
|
||||
Reference in new issue
Block a user