Skip to content

Commit 5fa8dfd

Browse files
committed
fix(chart): port value for websecure Gateway listener
1 parent 6d45b75 commit 5fa8dfd

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

traefik/templates/gateway.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
{{- end -}}
3232
{{ $found := false }}
3333
{{- range $portName, $portConfig := $.Values.ports -}}
34-
{{- if eq $portConfig.port $config.port -}}
34+
{{- if eq (int $portConfig.port) (int $config.port) -}}
3535
{{ $found = true }}
3636
{{- end -}}
3737
{{- end -}}

traefik/values.schema.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,38 @@
354354
"type": "integer"
355355
},
356356
"protocol": {
357+
"description": "Specify expected protocol on this listener. See [ProtocolType](https://gateway-api.sigs.k8s.io/reference/spec/#protocoltype)",
358+
"type": "string"
359+
}
360+
}
361+
},
362+
"websecure": {
363+
"type": "object",
364+
"properties": {
365+
"certificateRefs": {
366+
"description": "Reference to a Secret containing a certificate for `TLS` or `HTTPS` protocols (ignored for `mode:Passthrough`). See [SecretObjectReference](https://gateway-api.sigs.k8s.io/reference/spec/#secretobjectreference)"
367+
},
368+
"hostname": {
369+
"description": "Optional hostname. See [Hostname](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1.Hostname)",
370+
"type": "string"
371+
},
372+
"mode": {
373+
"description": "TLS behavior for the TLS session initiated by the client. See [TLSModeType](https://gateway-api.sigs.k8s.io/reference/spec/#tlsmodetype).",
374+
"type": "string"
375+
},
376+
"namespacePolicy": {
377+
"description": "Routes are restricted to namespace of the gateway [by default](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1.FromNamespaces",
378+
"type": [
379+
"object",
380+
"null"
381+
]
382+
},
383+
"port": {
384+
"description": "Port is the network port. Multiple listeners may use the same port, subject to the Listener compatibility rules. The port must match a port declared in ports section.",
385+
"type": "integer"
386+
},
387+
"protocol": {
388+
"description": "Specify expected protocol on this listener. See [ProtocolType](https://gateway-api.sigs.k8s.io/reference/spec/#protocoltype)",
357389
"type": "string"
358390
}
359391
}

0 commit comments

Comments
 (0)