Commit 8db1cfc2 authored by Xing Zhou's avatar Xing Zhou

Fixed a tiny bug on using RoleBindingGenerator

Fixed a typo bug while using RoleBindingGenerator to bind role to service accounts.
parent 13424d87
...@@ -77,7 +77,7 @@ func (s ClusterRoleBindingGeneratorV1) Generate(genericParams map[string]interfa ...@@ -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{}) ( ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment