File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ var (
32
32
%[1]s bind apiexport root:my-service:my-export --name my-binding
33
33
34
34
# Create an APIBinding named "my-binding" that binds to the APIExport "my-export" in the "root:my-service" workspace with accepted permission claims.
35
- %[1]s bind apiexport root:my-service:my-export --name my-binding --accept-permission-claims core. secrets,core. configmaps
35
+ %[1]s bind apiexport root:my-service:my-export --name my-binding --accept-permission-claims secrets.core, configmaps.core
36
36
37
37
# Create an APIBinding named "my-binding" that binds to the APIExport "my-export" in the "root:my-service" workspace with rejected permission claims.
38
- %[1]s bind apiexport root:my-service:my-export --name my-binding --reject-permission-claims core. secrets,core. configmaps
38
+ %[1]s bind apiexport root:my-service:my-export --name my-binding --reject-permission-claims secrets.core, configmaps.core
39
39
`
40
40
)
41
41
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ func (b *BindOptions) Run(ctx context.Context) error {
215
215
}
216
216
217
217
func (b * BindOptions ) parsePermissionClaim (claim string , accepted bool ) error {
218
- claimParts := strings .Split (claim , "." )
218
+ claimParts := strings .SplitN (claim , "." , 2 )
219
219
if len (claimParts ) != 2 {
220
220
return fmt .Errorf ("invalid permission claim %q" , claim )
221
221
}
You can’t perform that action at this time.
0 commit comments