Skip to content

Commit

Permalink
feat(charts): add values to control etcd and loki hostpath sc creation
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
  • Loading branch information
Abhinandan-Purkait committed Mar 8, 2024
1 parent 18efa0f commit 8a878af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chart/templates/etcd/storage/localpv-storageclass.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if and (index .Values "localpv-provisioner" "enabled") .Values.etcd.persistence.enabled }}
{{ if and (index .Values "localpv-provisioner" "createEtcdSc") .Values.etcd.persistence.enabled }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if and (index .Values "localpv-provisioner" "enabled") (index .Values "loki-stack" "loki" "persistence" "enabled") (index .Values "loki-stack" "enabled") }}
{{ if and (index .Values "localpv-provisioner" "createLokiSc") (index .Values "loki-stack" "loki" "persistence" "enabled") (index .Values "loki-stack" "enabled") }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
Expand Down
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -756,3 +756,7 @@ localpv-provisioner:
enabled: false
hostpathClass:
enabled: false
# Create a hostpath storage class for mayastor-etcd.
createEtcdSc: true
# Create a hostpath storage class for Loki Stack.
createLokiSc: true

0 comments on commit 8a878af

Please sign in to comment.