Skip to content

Commit a6be2b9

Browse files
committed
simplify the deployment.yaml
1 parent 271a647 commit a6be2b9

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

charts/nginx-gateway-fabric/templates/deployment.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,9 @@ spec:
102102
{{- end }}
103103
{{- if .Values.nginxGateway.gwAPIInferenceExtension.enable }}
104104
- --gateway-api-inference-extension
105-
{{- end }}
106-
{{- if (and .Values.nginxGateway.gwAPIInferenceExtension.enable .Values.nginxGateway.gwAPIInferenceExtension.endpointPicker.disableTLS) }}
105+
{{- if .Values.nginxGateway.gwAPIInferenceExtension.endpointPicker.disableTLS }}
107106
- --endpoint-picker-disable-tls
108107
{{- end }}
109-
{{- if .Values.nginxGateway.gwAPIInferenceExtension.enable }}
110108
- --endpoint-picker-tls-skip-verify={{ .Values.nginxGateway.gwAPIInferenceExtension.endpointPicker.skipVerify }}
111109
{{- end }}
112110
{{- if .Values.nginxGateway.snippetsFilters.enable }}

charts/nginx-gateway-fabric/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ nginxGateway:
218218
endpointPicker:
219219
# -- Disable TLS for EndpointPicker communication. By default, TLS is enabled.
220220
# Set to true only for development/testing or when using a service mesh for encryption.
221-
disableTLS: true
221+
disableTLS: false
222222

223223
# -- Disables TLS certificate verification when connecting to the EndpointPicker.
224224
# By default, certificate verification is disabled.

internal/controller/provisioner/objects.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,6 @@ func (p *NginxProvisioner) buildNginxPodTemplateSpec(
11331133
command = append(command, "--endpoint-picker-tls-skip-verify")
11341134
}
11351135

1136-
fmt.Println("commands field for EPP configuration:", command)
11371136
spec.Spec.Containers = append(spec.Spec.Containers, corev1.Container{
11381137
Name: "endpoint-picker-shim",
11391138
Image: p.cfg.GatewayPodConfig.Image,

0 commit comments

Comments
 (0)