mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	kubelet: Make service environment variables optional
This commit is contained in:
		| @@ -151,6 +151,7 @@ func randomUID() types.UID { | ||||
| func generateDeployment(image string) apps.Deployment { | ||||
| 	podLabels := map[string]string{"name": image} | ||||
| 	terminationSec := int64(30) | ||||
| 	enableServiceLinks := v1.DefaultEnableServiceLinks | ||||
| 	return apps.Deployment{ | ||||
| 		ObjectMeta: metav1.ObjectMeta{ | ||||
| 			Name:        image, | ||||
| @@ -176,6 +177,7 @@ func generateDeployment(image string) apps.Deployment { | ||||
| 					TerminationGracePeriodSeconds: &terminationSec, | ||||
| 					RestartPolicy:                 v1.RestartPolicyAlways, | ||||
| 					SecurityContext:               &v1.PodSecurityContext{}, | ||||
| 					EnableServiceLinks:            &enableServiceLinks, | ||||
| 				}, | ||||
| 			}, | ||||
| 		}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Brad Hoekstra
					Brad Hoekstra