@@ -55,7 +55,7 @@ func TestClassifyViolatingNamespaceWithAPIErrors(t *testing.T) {
55
55
}
56
56
57
57
// Ensure no classifications were made due to the error
58
- if len (conditions .violatingCustomerNamespaces ) != 0 ||
58
+ if len (conditions .violatingUnclassifiedNamespaces ) != 0 ||
59
59
len (conditions .violatingUserSCCNamespaces ) != 0 ||
60
60
len (conditions .violatingOpenShiftNamespaces ) != 0 ||
61
61
len (conditions .violatingRunLevelZeroNamespaces ) != 0 ||
@@ -190,7 +190,7 @@ func TestClassifyViolatingNamespace(t *testing.T) {
190
190
},
191
191
enforceLevel : psapi .LevelRestricted ,
192
192
expectedConditions : podSecurityOperatorConditions {
193
- violatingCustomerNamespaces : []string {"customer-ns" },
193
+ violatingUnclassifiedNamespaces : []string {"customer-ns" },
194
194
},
195
195
expectError : false ,
196
196
},
@@ -224,7 +224,7 @@ func TestClassifyViolatingNamespace(t *testing.T) {
224
224
},
225
225
enforceLevel : psapi .LevelRestricted ,
226
226
expectedConditions : podSecurityOperatorConditions {
227
- violatingCustomerNamespaces : []string {"customer-ns" },
227
+ violatingUnclassifiedNamespaces : []string {"customer-ns" },
228
228
},
229
229
expectError : false ,
230
230
},
@@ -238,7 +238,7 @@ func TestClassifyViolatingNamespace(t *testing.T) {
238
238
pods : []corev1.Pod {},
239
239
enforceLevel : psapi .LevelRestricted ,
240
240
expectedConditions : podSecurityOperatorConditions {
241
- violatingCustomerNamespaces : []string {"customer-ns" },
241
+ violatingUnclassifiedNamespaces : []string {"customer-ns" },
242
242
},
243
243
expectError : false ,
244
244
},
@@ -268,7 +268,7 @@ func TestClassifyViolatingNamespace(t *testing.T) {
268
268
},
269
269
enforceLevel : psapi .LevelRestricted ,
270
270
expectedConditions : podSecurityOperatorConditions {
271
- violatingCustomerNamespaces : []string {"customer-ns" },
271
+ violatingUnclassifiedNamespaces : []string {"customer-ns" },
272
272
},
273
273
expectError : false ,
274
274
},
@@ -284,7 +284,7 @@ func TestClassifyViolatingNamespace(t *testing.T) {
284
284
},
285
285
enforceLevel : psapi .LevelPrivileged ,
286
286
expectedConditions : podSecurityOperatorConditions {
287
- violatingCustomerNamespaces : []string {"customer-ns" },
287
+ violatingUnclassifiedNamespaces : []string {"customer-ns" },
288
288
},
289
289
expectError : false ,
290
290
},
@@ -453,7 +453,7 @@ func deepEqualPodSecurityOperatorConditions(
453
453
454
454
return slices .Equal (a .violatingOpenShiftNamespaces , b .violatingOpenShiftNamespaces ) &&
455
455
slices .Equal (a .violatingRunLevelZeroNamespaces , b .violatingRunLevelZeroNamespaces ) &&
456
- slices .Equal (a .violatingCustomerNamespaces , b .violatingCustomerNamespaces ) &&
456
+ slices .Equal (a .violatingUnclassifiedNamespaces , b .violatingUnclassifiedNamespaces ) &&
457
457
slices .Equal (a .violatingDisabledSyncerNamespaces , b .violatingDisabledSyncerNamespaces ) &&
458
458
slices .Equal (a .violatingUserSCCNamespaces , b .violatingUserSCCNamespaces ) &&
459
459
slices .Equal (a .inconclusiveNamespaces , b .inconclusiveNamespaces )
0 commit comments