mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	modify the meassage in kubectl secret command when the envFile path is not an file path
This commit is contained in:
		@@ -217,7 +217,7 @@ func handleFromEnvFileSource(secret *api.Secret, envFileSource string) error {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if info.IsDir() {
 | 
			
		||||
		return fmt.Errorf("must be a file")
 | 
			
		||||
		return fmt.Errorf("env secret file cannot be a directory")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return addFromEnvFile(envFileSource, func(key, value string) error {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user