mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-11 14:09:21 +00:00
renaming
This commit is contained in:
parent
207371cbc2
commit
9d7a79b253
2 changed files with 6 additions and 6 deletions
|
|
@ -36,17 +36,17 @@ func (ap *arrayParam) Set(value string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func splitCSV(skipKindsCSV string) map[string]bool {
|
||||
splitKinds := strings.Split(skipKindsCSV, ",")
|
||||
skipKinds := map[string]bool{}
|
||||
func splitCSV(csvStr string) map[string]bool {
|
||||
splitValues := strings.Split(csvStr, ",")
|
||||
valuesMap := map[string]bool{}
|
||||
|
||||
for _, kind := range splitKinds {
|
||||
for _, kind := range splitValues {
|
||||
if len(kind) > 0 {
|
||||
skipKinds[kind] = true
|
||||
valuesMap[kind] = true
|
||||
}
|
||||
}
|
||||
|
||||
return skipKinds
|
||||
return valuesMap
|
||||
}
|
||||
|
||||
func FromFlags(progName string, args []string) (Config, string, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue