Skip to content

Commit af39d0c

Browse files
committed
fixup! fixup! feat: Nutanix VM image preflight check
Use the correct check name
1 parent f440ff1 commit af39d0c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pkg/webhook/preflight/nutanix/specs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func initNutanixConfiguration(
1818
n.log.V(5).Info("Initializing Nutanix configuration check")
1919

2020
result := preflight.CheckResult{
21-
Name: "NutanixCredentials",
21+
Name: "NutanixConfiguration",
2222
Allowed: true,
2323
}
2424

pkg/webhook/preflight/nutanix/specs_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestNutanixChecker_initNutanixConfiguration(t *testing.T) {
4242
},
4343
},
4444
expectedResult: preflight.CheckResult{
45-
Name: "NutanixCredentials",
45+
Name: "NutanixConfiguration",
4646
Allowed: true,
4747
},
4848
expectedNutanixClusterConfigSpec: true,
@@ -68,7 +68,7 @@ func TestNutanixChecker_initNutanixConfiguration(t *testing.T) {
6868
},
6969
},
7070
expectedResult: preflight.CheckResult{
71-
Name: "NutanixCredentials",
71+
Name: "NutanixConfiguration",
7272
Allowed: true,
7373
},
7474
expectedNutanixClusterConfigSpec: true,
@@ -111,7 +111,7 @@ func TestNutanixChecker_initNutanixConfiguration(t *testing.T) {
111111
},
112112
},
113113
expectedResult: preflight.CheckResult{
114-
Name: "NutanixCredentials",
114+
Name: "NutanixConfiguration",
115115
Allowed: true,
116116
},
117117
expectedNutanixClusterConfigSpec: false,
@@ -135,7 +135,7 @@ func TestNutanixChecker_initNutanixConfiguration(t *testing.T) {
135135
},
136136
},
137137
expectedResult: preflight.CheckResult{
138-
Name: "NutanixCredentials",
138+
Name: "NutanixConfiguration",
139139
Allowed: false,
140140
Error: true,
141141
Causes: []preflight.Cause{
@@ -184,7 +184,7 @@ func TestNutanixChecker_initNutanixConfiguration(t *testing.T) {
184184
},
185185
},
186186
expectedResult: preflight.CheckResult{
187-
Name: "NutanixCredentials",
187+
Name: "NutanixConfiguration",
188188
Allowed: false,
189189
Error: true,
190190
Causes: []preflight.Cause{
@@ -217,7 +217,7 @@ func TestNutanixChecker_initNutanixConfiguration(t *testing.T) {
217217
},
218218
},
219219
expectedResult: preflight.CheckResult{
220-
Name: "NutanixCredentials",
220+
Name: "NutanixConfiguration",
221221
Allowed: true,
222222
},
223223
expectedNutanixClusterConfigSpec: false,
@@ -275,7 +275,7 @@ func TestNutanixChecker_initNutanixConfiguration(t *testing.T) {
275275
},
276276
},
277277
expectedResult: preflight.CheckResult{
278-
Name: "NutanixCredentials",
278+
Name: "NutanixConfiguration",
279279
Allowed: true,
280280
},
281281
expectedNutanixClusterConfigSpec: false,
@@ -316,7 +316,7 @@ func TestNutanixChecker_initNutanixConfiguration(t *testing.T) {
316316
},
317317
},
318318
expectedResult: preflight.CheckResult{
319-
Name: "NutanixCredentials",
319+
Name: "NutanixConfiguration",
320320
Allowed: true,
321321
},
322322
expectedNutanixClusterConfigSpec: false,
@@ -347,7 +347,7 @@ func TestNutanixChecker_initNutanixConfiguration(t *testing.T) {
347347
},
348348
},
349349
expectedResult: preflight.CheckResult{
350-
Name: "NutanixCredentials",
350+
Name: "NutanixConfiguration",
351351
Allowed: true,
352352
},
353353
expectedNutanixClusterConfigSpec: false,

0 commit comments

Comments
 (0)