mirror of
				https://github.com/fluxcd/flux2.git
				synced 2025-10-31 08:17:19 +08:00 
			
		
		
		
	fix: error message for missing kind
Signed-off-by: h3nryc0ding <101796272+h3nryc0ding@users.noreply.github.com> Signed-off-by: h3nryc0ding <hr.richterhenry@gmail.com>
This commit is contained in:
		| @ -53,7 +53,7 @@ func (s *KustomizationSource) Set(str string) error { | |||||||
| 	} | 	} | ||||||
| 	if sourceKind == "" { | 	if sourceKind == "" { | ||||||
| 		if utils.ContainsItemString(supportedKustomizationSourceKinds, sourceName) { | 		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 | 		sourceKind = sourcev1.GitRepositoryKind | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 h3nryc0ding
					h3nryc0ding