Commit df4d4d4
MINOR: haproxy: add service name override (#382)
* haproxy: add service name override
Signed-off-by: Konstantin Kelemen <konstantin@kel.mn>
* update httproute and ingress templates
Signed-off-by: Konstantin Kelemen <konstantin@kel.mn>
* MINOR: haproxy: centralise and quote the service name override
The service.name fallback was spelled out at all four references to the
Service (service.yaml, both ingress.yaml API branches, httproute.yaml),
so any template added later would silently regress to the fullname and
the two ingress branches had to be kept in sync by hand. Move it into a
haproxy.serviceName helper alongside the existing name helpers.
Quote the rendered name as well. Kubernetes parses manifests with YAML
1.1 semantics, so a valid DNS-1035 Service name such as "on", "off",
"yes" or "no" was coerced to a boolean and the object rejected with
"cannot unmarshal !!bool into string".
Signed-off-by: Dinko Korunic <dkorunic@haproxy.com>
* MINOR: haproxy: document the service.name default and rename caveat
The comment claimed the default was .Release.Name, but the Service is
named after haproxy.fullname, ie. "<release>-haproxy". It also used a
trailing comment where the rest of the block documents keys above them.
Add the caveat that renaming the Service of an existing release replaces
it rather than updating it in place: the ClusterIP changes and, with
type LoadBalancer, the cloud provider provisions a new load balancer
with a new external address.
Signed-off-by: Dinko Korunic <dkorunic@haproxy.com>
* MINOR: haproxy: add CI values file for the service name override
Nothing under haproxy/ci/ set service.name, so the consistency between
the Service and the Ingress backend it is referenced from was never
asserted by local-test.sh or the integration-test.sh ci scenario.
httpRoute is left disabled: install_charts.sh only brings up the Gateway
API CRDs for the charts that need cloud-provider-kind, and httproute.yaml
has no .Capabilities.APIVersions gate, so enabling it here would break
ct install. That path is still rendered offline by local-test.sh.
Signed-off-by: Dinko Korunic <dkorunic@haproxy.com>
---------
Signed-off-by: Konstantin Kelemen <konstantin@kel.mn>
Signed-off-by: Dinko Korunic <dkorunic@haproxy.com>
Co-authored-by: Dinko Korunic <dkorunic@haproxy.com>1 parent 67ac692 commit df4d4d4
6 files changed
Lines changed: 23 additions & 4 deletions
File tree
- haproxy
- ci
- templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
495 | 502 | | |
496 | 503 | | |
497 | 504 | | |
| |||
0 commit comments