Skip to content

Conversation

borkmann
Copy link
Member

@borkmann borkmann commented Jan 7, 2025

(see commit desc)

If KPR is false, setting these to true does not make any sense. Thus, remove
this to avoid confusion.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
hostPort.enabled=true under KPR off is not supported given the former
relies on the latter's infrastructure. Remove this from the docs to
avoid confusion.

Before 1a4e7d4 ("docs: Adjust KPR GSG to --kpr=boolean changes")
this sentence was meant in the context of KPR=partial.

Fixes: 1a4e7d4 ("docs: Adjust KPR GSG to --kpr=boolean changes")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
@borkmann borkmann added area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. release-note/misc This PR makes changes that have no direct user impact. needs-backport/1.17 This PR / issue needs backporting to the v1.17 branch labels Jan 7, 2025
@borkmann borkmann requested review from a team as code owners January 7, 2025 09:03
@borkmann borkmann requested review from youngnick, brlbil, ysksuzuki and a user January 7, 2025 09:03
@borkmann
Copy link
Member Author

borkmann commented Jan 7, 2025

/test

@borkmann borkmann requested a review from darox January 7, 2025 09:04
Copy link
Contributor

@darox darox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@@ -745,12 +745,12 @@ data:
{{- end }}

{{- if hasKey .Values "hostPort" }}
{{- if or (eq $kubeProxyReplacement "partial") (eq $kubeProxyReplacement "false") }}
{{- if eq $kubeProxyReplacement "partial" }}
Copy link

@ghost ghost Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So hostPort and externalIPs Helm values take effect only if kubeProxyReplacement is set to "partial", but partial kpr is deprecated for a while, right? Then it might make sense to mark these Helm values as deprecated too?

Copy link
Member Author

@borkmann borkmann Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would make sense (and could be as separate PR) - more could be followed as well to simplify. Do you have some pointers how this is done in helm?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe typically Helm values are just described as deprecated in the Helm doc comment, like here, plus upgrade notes. But I'm not sure if Helm templates should use "partial" kpr value if it's deprecated - I suppose it was kept for backwards compatibility, but maybe at this point it can be removed entirely?

Copy link
Member

@brb brb May 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the conditions - #39721, because "partial" is no longer available since v1.14 (EOL).

@borkmann borkmann merged commit 5dca7ad into main Jan 8, 2025
305 of 308 checks passed
@borkmann borkmann deleted the pr/hostport branch January 8, 2025 08:33
@rastislavs rastislavs mentioned this pull request Jan 21, 2025
45 tasks
@rastislavs rastislavs added backport-pending/1.17 The backport for Cilium 1.17.x for this PR is in progress. and removed needs-backport/1.17 This PR / issue needs backporting to the v1.17 branch labels Jan 21, 2025
@github-actions github-actions bot added backport-done/1.17 The backport for Cilium 1.17.x for this PR is done. and removed backport-pending/1.17 The backport for Cilium 1.17.x for this PR is in progress. labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. backport-done/1.17 The backport for Cilium 1.17.x for this PR is done. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants