We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cca0e8 commit ca4a2ebCopy full SHA for ca4a2eb
pkg/webhook/preflight/nutanix/storagecontainer.go
@@ -20,6 +20,13 @@ import (
20
func (n *nutanixChecker) initStorageContainerChecks() []preflight.Check {
21
checks := []preflight.Check{}
22
23
+ // If there is no CSI configuration, there is no need to check for storage containers.
24
+ if n.nutanixClusterConfigSpec == nil ||
25
+ n.nutanixClusterConfigSpec.Addons == nil ||
26
+ n.nutanixClusterConfigSpec.Addons.CSI == nil {
27
+ return checks
28
+ }
29
+
30
if n.nutanixClusterConfigSpec != nil && n.nutanixClusterConfigSpec.ControlPlane != nil &&
31
n.nutanixClusterConfigSpec.ControlPlane.Nutanix != nil {
32
checks = append(checks,
0 commit comments