Skip to content

Commit

Permalink
disable service links
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Yeung <andyyeung87@hotmail.com>
  • Loading branch information
andyy5 authored and alexellis committed Sep 17, 2020
1 parent 7c12b85 commit eb15f1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/handlers/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ func makeDeploymentSpec(request types.FunctionDeployment, existingSecrets map[st
return nil, err
}

isEnableServiceLinks := false

deploymentSpec := &appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{
Name: request.Service,
Expand Down Expand Up @@ -229,6 +231,7 @@ func makeDeploymentSpec(request types.FunctionDeployment, existingSecrets map[st
ServiceAccountName: serviceAccount,
RestartPolicy: corev1.RestartPolicyAlways,
DNSPolicy: corev1.DNSClusterFirst,
EnableServiceLinks: &isEnableServiceLinks,
},
},
},
Expand Down

0 comments on commit eb15f1a

Please sign in to comment.