@@ -368,35 +368,34 @@ Operator startOperator(
368
368
}
369
369
370
370
private void setNoConfigMapAccess () {
371
- applyClusterRole ("rback -test-no-configmap-access.yaml" );
371
+ applyClusterRole ("rbac -test-no-configmap-access.yaml" );
372
372
applyClusterRoleBinding ();
373
373
}
374
374
375
375
private void setNoCustomResourceAccess () {
376
- applyClusterRole ("rback -test-no-cr-access.yaml" );
376
+ applyClusterRole ("rbac -test-no-cr-access.yaml" );
377
377
applyClusterRoleBinding ();
378
378
}
379
379
380
380
private void setFullResourcesAccess () {
381
- applyClusterRole ("rback -test-full-access-role.yaml" );
381
+ applyClusterRole ("rbac -test-full-access-role.yaml" );
382
382
applyClusterRoleBinding ();
383
383
}
384
384
385
385
private void addRoleBindingsToTestNamespaces () {
386
386
var role =
387
- ReconcilerUtils .loadYaml (
388
- Role .class , this .getClass (), "rback-test-only-main-ns-access.yaml" );
387
+ ReconcilerUtils .loadYaml (Role .class , this .getClass (), "rbac-test-only-main-ns-access.yaml" );
389
388
adminClient .resource (role ).inNamespace (actualNamespace ).createOrReplace ();
390
389
var roleBinding =
391
390
ReconcilerUtils .loadYaml (
392
- RoleBinding .class , this .getClass (), "rback -test-only-main-ns-access-binding.yaml" );
391
+ RoleBinding .class , this .getClass (), "rbac -test-only-main-ns-access-binding.yaml" );
393
392
adminClient .resource (roleBinding ).inNamespace (actualNamespace ).createOrReplace ();
394
393
}
395
394
396
395
private void applyClusterRoleBinding () {
397
396
var clusterRoleBinding =
398
397
ReconcilerUtils .loadYaml (
399
- ClusterRoleBinding .class , this .getClass (), "rback -test-role-binding.yaml" );
398
+ ClusterRoleBinding .class , this .getClass (), "rbac -test-role-binding.yaml" );
400
399
adminClient .resource (clusterRoleBinding ).createOrReplace ();
401
400
}
402
401
@@ -418,7 +417,7 @@ private Namespace namespace(String name) {
418
417
private void removeClusterRoleBinding () {
419
418
var clusterRoleBinding =
420
419
ReconcilerUtils .loadYaml (
421
- ClusterRoleBinding .class , this .getClass (), "rback -test-role-binding.yaml" );
420
+ ClusterRoleBinding .class , this .getClass (), "rbac -test-role-binding.yaml" );
422
421
adminClient .resource (clusterRoleBinding ).delete ();
423
422
}
424
423
}
0 commit comments