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

Commit

Permalink
fix(chart): Disable openebs webhook cleanup when legacy.enabled=false (
Browse files Browse the repository at this point in the history
…#249)

Signed-off-by: Niladri Halder <niladri.halder@mayadata.io>
  • Loading branch information
niladrih authored Aug 9, 2021
1 parent 0bdac0a commit 125a67a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 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.11.4
version: 2.11.5
name: openebs
appVersion: 2.11.0
description: Containerized Storage for Containers
Expand Down
17 changes: 1 addition & 16 deletions charts/openebs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ helm install openebs openebs/openebs --namespace openebs --create-namespace
#### Install cStor with CSI driver
```bash
helm install openebs openebs/openebs --namespace openebs --create-namespace \
--set localprovisioner.enabled=false \
--set ndm.enabled=false \
--set ndmOperator.enabled=false \
--set legacy.enabled=false \
--set cstor.enabled=true \
--set openebs-ndm.enabled=true
Expand All @@ -196,9 +193,6 @@ helm install openebs openebs/openebs --namespace openebs --create-namespace \
#### Install Jiva with CSI driver
```bash
helm install openebs openebs/openebs --namespace openebs --create-namespace \
--set localprovisioner.enabled=false \
--set ndm.enabled=false \
--set ndmOperator.enabled=false \
--set legacy.enabled=false \
--set jiva.enabled=true \
--set openebs-ndm.enabled=true \
Expand All @@ -208,32 +202,23 @@ helm install openebs openebs/openebs --namespace openebs --create-namespace \
#### Install ZFS Local PV
```bash
helm install openebs openebs/openebs --namespace openebs --create-namespace \
--set localprovisioner.enabled=false \
--set ndm.enabled=false \
--set ndmOperator.enabled=false \
--set legacy.enabled=false \
--set zfs-localpv.enabled=true
```

#### Install LVM Local PV
```bash
helm install openebs openebs/openebs --namespace openebs --create-namespace \
--set localprovisioner.enabled=false \
--set ndm.enabled=false \
--set ndmOperator.enabled=false \
--set legacy.enabled=false \
--set lvm-localpv.enabled=true
```

#### Install Local PV hostpath and device
```bash
helm install openebs openebs/openebs --namespace openebs --create-namespace \
--set localprovisioner.enabled=false \
--set ndm.enabled=false \
--set ndmOperator.enabled=false \
--set openebs-ndm.enabled=true \
--set legacy.enabled=false \
--set localpv-provisioner.enabled=true
--set openebs-ndm.enabled=true \
```

> **Tip**: You can install multiple csi driver by merging the configuration.
2 changes: 1 addition & 1 deletion charts/openebs/templates/cleanup-webhook.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.webhook.enabled }}
{{- if and (.Values.webhook.enabled) (.Values.legacy.enabled) }}
# HELM first deletes RBAC, then it tries to delete other resources like SPC and PVC.
# We've got validating webhook on SPC and PVC.
# But even that the policy of this webhook is Ignore, it fails because the ServiceAccount
Expand Down

0 comments on commit 125a67a

Please sign in to comment.