From 4248b220a15e7130ea4b3ae6f0969c7bfcf3ee4b Mon Sep 17 00:00:00 2001 From: scflavell Date: Wed, 13 Apr 2022 09:47:14 +0100 Subject: [PATCH] Add upgradeGuard --- charts/ondat-operator/templates/storageoscluster_cr.yaml | 5 +++++ charts/ondat-operator/values.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/charts/ondat-operator/templates/storageoscluster_cr.yaml b/charts/ondat-operator/templates/storageoscluster_cr.yaml index 182e793..34dfdde 100644 --- a/charts/ondat-operator/templates/storageoscluster_cr.yaml +++ b/charts/ondat-operator/templates/storageoscluster_cr.yaml @@ -41,6 +41,11 @@ spec: - "{{ .Values.cluster.nodeSelectorTerm.value }}" {{- end }} + {{- if .Values.cluster.nodeManagerFeatures.upgradeGuard.enabled }} + nodeManagerFeatures: + upgradeGuard: "true" + {{- end }} + {{- if .Values.cluster.toleration.key }} tolerations: - key: {{ .Values.cluster.toleration.key }} diff --git a/charts/ondat-operator/values.yaml b/charts/ondat-operator/values.yaml index 376f1a6..5a9add1 100644 --- a/charts/ondat-operator/values.yaml +++ b/charts/ondat-operator/values.yaml @@ -52,6 +52,11 @@ cluster: # Name of the secret containing StorageOS API credentials. secretRefName: storageos-api + # Enable protection for volumes during orchestrator upgrades - Tech Preview + nodeManagerFeatures: + upgradeGuard: + enabled: false + # Default admin account. admin: # Username to authenticate to the StorageOS API with.