mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Change variables to environment variables when describe containers
This commit is contained in:
		@@ -725,7 +725,7 @@ func describeContainers(pod *api.Pod, out io.Writer) {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		fmt.Fprintf(out, "    Ready:\t%v\n", printBool(status.Ready))
 | 
							fmt.Fprintf(out, "    Ready:\t%v\n", printBool(status.Ready))
 | 
				
			||||||
		fmt.Fprintf(out, "    Restart Count:\t%d\n", status.RestartCount)
 | 
							fmt.Fprintf(out, "    Restart Count:\t%d\n", status.RestartCount)
 | 
				
			||||||
		fmt.Fprintf(out, "    Variables:\n")
 | 
							fmt.Fprintf(out, "    Environment Variables:\n")
 | 
				
			||||||
		for _, e := range container.Env {
 | 
							for _, e := range container.Env {
 | 
				
			||||||
			if e.ValueFrom != nil && e.ValueFrom.FieldRef != nil {
 | 
								if e.ValueFrom != nil && e.ValueFrom.FieldRef != nil {
 | 
				
			||||||
				valueFrom := envValueFrom(pod, e)
 | 
									valueFrom := envValueFrom(pod, e)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user