mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #40999 from xingzhou/tiny-bug
Automatic merge from submit-queue (batch tested with PRs 40385, 40786, 40999, 41026, 40996) Fixed a tiny bug on using RoleBindingGenerator Fixed a typo bug while using RoleBindingGenerator, this bug causes error when binding role to service accounts through "kubectl create rolebinding" command.
This commit is contained in:
commit
e0db0932a7
@ -77,7 +77,7 @@ func (s ClusterRoleBindingGeneratorV1) Generate(genericParams map[string]interfa
|
|||||||
return nil, fmt.Errorf("expected []string, found :%v", fromFileStrings)
|
return nil, fmt.Errorf("expected []string, found :%v", fromFileStrings)
|
||||||
}
|
}
|
||||||
delegate.ServiceAccounts = fromLiteralArray
|
delegate.ServiceAccounts = fromLiteralArray
|
||||||
delete(genericParams, "serviceaccounts")
|
delete(genericParams, "serviceaccount")
|
||||||
}
|
}
|
||||||
params := map[string]string{}
|
params := map[string]string{}
|
||||||
for key, value := range genericParams {
|
for key, value := range genericParams {
|
||||||
|
@ -79,7 +79,7 @@ func (s RoleBindingGeneratorV1) Generate(genericParams map[string]interface{}) (
|
|||||||
return nil, fmt.Errorf("expected []string, found :%v", fromFileStrings)
|
return nil, fmt.Errorf("expected []string, found :%v", fromFileStrings)
|
||||||
}
|
}
|
||||||
delegate.ServiceAccounts = fromLiteralArray
|
delegate.ServiceAccounts = fromLiteralArray
|
||||||
delete(genericParams, "serviceaccounts")
|
delete(genericParams, "serviceaccount")
|
||||||
}
|
}
|
||||||
params := map[string]string{}
|
params := map[string]string{}
|
||||||
for key, value := range genericParams {
|
for key, value := range genericParams {
|
||||||
|
Loading…
Reference in New Issue
Block a user