File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
pkg/webhook/preflight/nutanix Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ import (
7
7
"context"
8
8
"fmt"
9
9
10
- prismv4 "github.com/nutanix-cloud-native/prism-go-client/v4"
11
10
clustermgmtv4 "github.com/nutanix/ntnx-api-golang-clients/clustermgmt-go-client/v4/models/clustermgmt/v4/config"
12
11
"k8s.io/utils/ptr"
13
12
13
+ prismv4 "github.com/nutanix-cloud-native/prism-go-client/v4"
14
+
14
15
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api/external/github.com/nutanix-cloud-native/cluster-api-provider-nutanix/api/v1beta1"
15
16
carenv1 "github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api/v1alpha1"
16
17
"github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/pkg/webhook/preflight"
@@ -62,7 +63,7 @@ func (n *nutanixChecker) storageContainerCheck(
62
63
)
63
64
64
65
return func (ctx context.Context ) preflight.CheckResult {
65
- result := & preflight.CheckResult {}
66
+ result := preflight.CheckResult {}
66
67
if csiSpec == nil {
67
68
result .Allowed = false
68
69
result .Error = true
@@ -74,7 +75,7 @@ func (n *nutanixChecker) storageContainerCheck(
74
75
Field : field ,
75
76
})
76
77
77
- return * result
78
+ return result
78
79
}
79
80
80
81
if csiSpec .StorageClassConfigs == nil {
@@ -87,7 +88,7 @@ func (n *nutanixChecker) storageContainerCheck(
87
88
Field : field ,
88
89
})
89
90
90
- return * result
91
+ return result
91
92
}
92
93
93
94
for _ , storageClassConfig := range csiSpec .StorageClassConfigs {
@@ -114,11 +115,11 @@ func (n *nutanixChecker) storageContainerCheck(
114
115
Field : field ,
115
116
})
116
117
117
- return * result
118
+ return result
118
119
}
119
120
}
120
121
121
- return * result
122
+ return result
122
123
}
123
124
}
124
125
You can’t perform that action at this time.
0 commit comments