-
Notifications
You must be signed in to change notification settings - Fork 48
feat: Enable single stack deployments in Helm chart #828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -400,3 +400,38 @@ Usage: | |
| {{- end -}} | ||
| {{- end -}} | ||
| {{- end }} | ||
|
|
||
| {{/* | ||
| Generates ipFamilyPolicy and ipFamilies for Service specs based on the global ipFamily setting. | ||
| Valid values: "ipv4", "ipv6", "both" | ||
| */}} | ||
| {{- define "service_ip_family" -}} | ||
| {{- if eq .Values.ipFamily "ipv4" }} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we do the comparison after a run through |
||
| ipFamilyPolicy: SingleStack | ||
| ipFamilies: | ||
| - IPv4 | ||
| {{- else if eq .Values.ipFamily "ipv6" }} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same. Maybe use |
||
| ipFamilyPolicy: SingleStack | ||
| ipFamilies: | ||
| - IPv6 | ||
| {{- else if eq .Values.ipFamily "both" }} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe |
||
| ipFamilyPolicy: PreferDualStack | ||
| ipFamilies: | ||
| - IPv4 | ||
| - IPv6 | ||
| {{- else }} | ||
| {{- fail (printf "invalid ipFamily value %q -- valid values: ipv4, ipv6, both" .Values.ipFamily) -}} | ||
| {{- end -}} | ||
| {{- end -}} | ||
|
|
||
| {{/* | ||
| Returns the bind address based on ipFamily, formatted for use in a "host:port" string. | ||
| ipv4 → "0.0.0.0", ipv6 or both → "[::]" (brackets per RFC 3986, required by parsers like Rust's SocketAddr). | ||
| */}} | ||
| {{- define "bind_address" -}} | ||
| {{- if eq .Values.ipFamily "ipv4" -}} | ||
| 0.0.0.0 | ||
| {{- else -}} | ||
| [::] | ||
| {{- end -}} | ||
| {{- end -}} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: the
(default)is redundant as the default value is mentioned in the very next column.