Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Fix typo in go-template for hostpath-class.yaml and device-class.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih authored and kmova committed Sep 7, 2021
1 parent 63d38e5 commit 9eb155d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion charts/openebs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
version: 2.12.3
version: 2.12.4
name: openebs
appVersion: 2.12.1
description: Containerized Storage for Containers
Expand Down
14 changes: 7 additions & 7 deletions charts/openebs/templates/localprovisioner/device-class.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.localprovisioner.enabled -}}
{{- $localpvprovisionerValues := index .Values "localpv-provisioner" -}}
{{- if not $localpvprovisionerValues.enabled -}}
{{- if .Values.localprovisioner.enableDeviceClass -}}
{{- if .Values.localprovisioner.enabled }}
{{- $localpvprovisionerValues := index .Values "localpv-provisioner" }}
{{- if not $localpvprovisionerValues.enabled }}
{{- if .Values.localprovisioner.enableDeviceClass }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
Expand All @@ -14,6 +14,6 @@ metadata:
provisioner: openebs.io/local
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete
{{ end }}
{{ end }}
{{ end }}
{{- end }}
{{- end }}
{{- end }}
18 changes: 9 additions & 9 deletions charts/openebs/templates/localprovisioner/hostpath-class.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.localprovisioner.enabled -}}
{{- $localpvprovisionerValues := index .Values "localpv-provisioner" -}}
{{- if not $localpvprovisionerValues.enabled -}}
{{- if .Values.localprovisioner.enableHostpathClass -}}
{{- if .Values.localprovisioner.enabled }}
{{- $localpvprovisionerValues := index .Values "localpv-provisioner" }}
{{- if not $localpvprovisionerValues.enabled }}
{{- if .Values.localprovisioner.enableHostpathClass }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
Expand All @@ -11,13 +11,13 @@ metadata:
cas.openebs.io/config: |
- name: StorageType
value: "hostpath"
{{ if .Values.localprovisioner.basePath }}
{{- if .Values.localprovisioner.basePath }}
- name: BasePath
value: {{ .Values.localprovisioner.basePath }}
{{ end -}}
{{- end }}
provisioner: openebs.io/local
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete
{{ end }}
{{ end }}
{{ end }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 9eb155d

Please sign in to comment.