Fixed a tiny bug on using RoleBindingGenerator

Fixed a typo bug while using RoleBindingGenerator to bind
role to service accounts.
This commit is contained in:
Xing Zhou 2017-02-06 15:28:03 +08:00
parent 13424d874b
commit 8db1cfc2f6
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {