@@ -228,27 +228,27 @@ func TestValidatingAdmissionPolicy(t *testing.T) {
228
228
})
229
229
230
230
/**************************************************************************
231
- Testing the 2nd alternative behavior which targets specific namespaces that have the 'kueue- managed' label
231
+ Testing the 2nd alternative behavior which targets specific namespaces that have the 'kueue.openshift.io/ managed' label
232
232
**************************************************************************/
233
233
t .Run ("Custom ValidatingAdmissionPolicyBinding" , func (t * testing.T ) {
234
- // Update the test namespace with the new 'kueue- managed' label
234
+ // Update the test namespace with the new 'kueue.openshift.io/ managed' label
235
235
ns , err = test .Client ().Core ().CoreV1 ().Namespaces ().Get (test .Ctx (), ns .Name , metav1.GetOptions {})
236
236
if ns .Labels == nil {
237
237
ns .Labels = map [string ]string {}
238
238
}
239
- ns .Labels ["kueue- managed" ] = "true"
239
+ ns .Labels ["kueue.openshift.io/ managed" ] = "true"
240
240
_ , err = test .Client ().Core ().CoreV1 ().Namespaces ().Update (test .Ctx (), ns , metav1.UpdateOptions {})
241
241
test .Eventually (func () bool {
242
242
ns , _ = test .Client ().Core ().CoreV1 ().Namespaces ().Get (test .Ctx (), ns .Name , metav1.GetOptions {})
243
- return ns .Labels ["kueue- managed" ] == "true"
243
+ return ns .Labels ["kueue.openshift.io/ managed" ] == "true"
244
244
}).WithTimeout (10 * time .Second ).WithPolling (500 * time .Millisecond ).Should (BeTrue ())
245
245
test .Expect (err ).ToNot (HaveOccurred ())
246
246
247
- // Apply the ValidatingAdmissionPolicyBinding targetting namespaces with the label 'kueue- managed'
247
+ // Apply the ValidatingAdmissionPolicyBinding targetting namespaces with the label 'kueue.openshift.io/ managed'
248
248
vapb , err = test .Client ().Core ().AdmissionregistrationV1 ().ValidatingAdmissionPolicyBindings ().Get (test .Ctx (), vapb .Name , metav1.GetOptions {})
249
249
test .Expect (err ).ToNot (HaveOccurred ())
250
250
251
- vapb .Spec .MatchResources .NamespaceSelector .MatchLabels = map [string ]string {"kueue- managed" : "true" }
251
+ vapb .Spec .MatchResources .NamespaceSelector .MatchLabels = map [string ]string {"kueue.openshift.io/ managed" : "true" }
252
252
_ , err = test .Client ().Core ().AdmissionregistrationV1 ().ValidatingAdmissionPolicyBindings ().Update (test .Ctx (), vapb , metav1.UpdateOptions {})
253
253
test .Expect (err ).ToNot (HaveOccurred ())
254
254
defer revertVAPB (test , vapbCopy )
0 commit comments