test: Allow imagetags resource to be added to group RBAC
This resource is new in 4.4 and is created by openshift-apiserver.
@@ -142,7 +142,7 @@ var (
kuser.AllAuthenticated: {
"openshift": {
rbacv1helpers.NewRule(read...).Groups(templateGroup, legacyTemplateGroup).Resources("templates").RuleOrDie(),
- rbacv1helpers.NewRule(read...).Groups(imageGroup, legacyImageGroup).Resources("imagestreams", "imagestreamtags", "imagestreamimages").RuleOrDie(),
+ rbacv1helpers.NewRule(read...).Groups(imageGroup, legacyImageGroup).Resources("imagestreams", "imagestreamtags", "imagestreamimages", "imagetags").RuleOrDie(),
rbacv1helpers.NewRule("get").Groups(imageGroup, legacyImageGroup).Resources("imagestreams/layers").RuleOrDie(),
rbacv1helpers.NewRule("get").Groups("").Resources("configmaps").RuleOrDie(),
},
