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 21, 2024
1 parent f6f12db commit a5bec14
Show file tree
Hide file tree
Showing 3 changed files with 4 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 .Values.etcd.localpvScConfig.enabled .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 "loki-stack" "localpvScConfig" "enabled") (index .Values "loki-stack" "loki" "persistence" "enabled") (index .Values "loki-stack" "enabled") }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ io_engine:
etcd:
# Configuration for etcd's localpv hostpath storage class.
localpvScConfig:
enabled: true
# Name of etcd's localpv hostpath storage class.
name: "mayastor-etcd-localpv"
# -- Host path where local etcd data is stored in.
Expand Down Expand Up @@ -518,6 +519,7 @@ loki-stack:
enabled: true
# Configuration for loki's localpv hostpath storage class.
localpvScConfig:
enabled: true
# Name of loki's localpv hostpath storage class.
name: "mayastor-loki-localpv"
# -- Host path where local etcd data is stored in.
Expand Down

0 comments on commit a5bec14

Please sign in to comment.