Skip to content

Commit a5cf600

Browse files
author
Michal Minář
committed
registry can now list image streams
To sustain registry catalog API implemented in openshift/image-registry#87 Not really necessary since registry will attempt to use user's token. But a fall-back to registry client depends on this policy. Signed-off-by: Michal Minář <[email protected]>
1 parent b52c435 commit a5cf600

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

pkg/cmd/server/bootstrappolicy/policy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ func GetOpenshiftBootstrapClusterRoles() []rbacv1.ClusterRole {
581581
Name: RegistryRoleName,
582582
},
583583
Rules: []rbacv1.PolicyRule{
584-
rbacv1helpers.NewRule("list").Groups(kapiGroup).Resources("limitranges", "resourcequotas").RuleOrDie(),
584+
rbacv1helpers.NewRule("list").Groups(kapiGroup).Resources("limitranges", "resourcequotas", "imagestreams").RuleOrDie(),
585585

586586
rbacv1helpers.NewRule("get", "delete").Groups(imageGroup, legacyImageGroup).Resources("images", "imagestreamtags").RuleOrDie(),
587587
rbacv1helpers.NewRule("get").Groups(imageGroup, legacyImageGroup).Resources("imagestreamimages", "imagestreams/secrets").RuleOrDie(),

test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1812,6 +1812,7 @@ items:
18121812
- apiGroups:
18131813
- ""
18141814
resources:
1815+
- imagestreams
18151816
- limitranges
18161817
- resourcequotas
18171818
verbs:

test/testdata/bootstrappolicy/bootstrap_policy_file.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1812,6 +1812,7 @@ items:
18121812
- apiGroups:
18131813
- ""
18141814
resources:
1815+
- imagestreams
18151816
- limitranges
18161817
- resourcequotas
18171818
verbs:

0 commit comments

Comments
 (0)