Skip to content

Commit

Permalink
chore(bors): merge pull request #451
Browse files Browse the repository at this point in the history
451: Cherry-pick #432 r=niladrih a=Abhinandan-Purkait

- add values to control etcd and loki hostpath sc creation

Co-authored-by: Abhinandan Purkait <[email protected]>
  • Loading branch information
mayastor-bors and Abhinandan-Purkait committed Mar 21, 2024
2 parents c91e574 + 36cc1b6 commit 5899cb5
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 @@ -422,6 +422,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 @@ -522,6 +523,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 5899cb5

Please sign in to comment.