Use the default setting for service links
Service links may be convenient to have for the Community
Edition (CE) users, so it's being added back in.
It's going to remain disabled for all users of OpenFaaS Pro.
@@ -163,9 +163,6 @@ func makeDeploymentSpec(request types.FunctionDeployment, existingSecrets map[st
return nil, err
}
- enableServiceLinks := false
- allowPrivilegeEscalation := false
-
deploymentSpec := &appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{
Name: request.Service,
@@ -221,15 +218,11 @@ func makeDeploymentSpec(request types.FunctionDeployment, existingSecrets map[st
ReadinessProbe: probes.Readiness,
SecurityContext: &corev1.SecurityContext{
ReadOnlyRootFilesystem: &request.ReadOnlyRootFilesystem,
- AllowPrivilegeEscalation: &allowPrivilegeEscalation,
},
},
},
RestartPolicy: corev1.RestartPolicyAlways,
DNSPolicy: corev1.DNSClusterFirst,
- // EnableServiceLinks injects ENV vars about every other service within
- // the namespace.
- EnableServiceLinks: &enableServiceLinks,
},
},
},
