From 9010c89a7e28fd8d2fb3914cbea291377ba910a7 Mon Sep 17 00:00:00 2001 From: Shiva Krishna Merla Date: Wed, 5 Apr 2023 16:15:56 +0000 Subject: [PATCH] Update gpu-operator role to include create/update role for CRD upgrade handling --- deployments/gpu-operator/templates/role.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployments/gpu-operator/templates/role.yaml b/deployments/gpu-operator/templates/role.yaml index d55bc9f45..b90f64113 100644 --- a/deployments/gpu-operator/templates/role.yaml +++ b/deployments/gpu-operator/templates/role.yaml @@ -186,9 +186,9 @@ rules: - get - list - watch -{{- if or (.Values.operator.cleanupCRD) (.Values.operator.upgradeCRD) }} - - delete - - create - update - patch + - create +{{- if .Values.operator.cleanupCRD }} + - delete {{- end }}