mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Add custom conversion function system.
As an example, demonstrate how Env.Key's deprecation ought to work.
This commit is contained in:
		@@ -129,10 +129,7 @@ type VolumeMount struct {
 | 
			
		||||
// EnvVar represents an environment variable present in a Container
 | 
			
		||||
type EnvVar struct {
 | 
			
		||||
	// Required: This must be a C_IDENTIFIER.
 | 
			
		||||
	// Exactly one of the following must be set.  If both are set, prefer Name.
 | 
			
		||||
	// DEPRECATED: EnvVar.Key will be removed in a future version of the API.
 | 
			
		||||
	Name string `yaml:"name" json:"name"`
 | 
			
		||||
	Key  string `yaml:"key,omitempty" json:"key,omitempty"`
 | 
			
		||||
	// Optional: defaults to "".
 | 
			
		||||
	Value string `yaml:"value,omitempty" json:"value,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user