Merge pull request #5068 from h3nryc0ding/fix/cli-invalid-error-message

fix(cli): confusing error message for missing kind
pull/5073/head
Max Jonas Werner 2 months ago committed by GitHub
commit 5b83111dc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -53,7 +53,7 @@ func (s *KustomizationSource) Set(str string) error {
}
if sourceKind == "" {
if utils.ContainsItemString(supportedKustomizationSourceKinds, sourceName) {
return fmt.Errorf("no name given for source of kind '%s'", sourceName)
return fmt.Errorf("no kind specified for source '%s'", sourceName)
}
sourceKind = sourcev1.GitRepositoryKind
}

Loading…
Cancel
Save