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 }}