Skip to content
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

Sdn 4.16 kubernetes 1.29.0 #1877

Conversation

bpickard22
Copy link

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Note:
removing the referances to the userspace linux proxy as that has been
deleted

(cherry picked from commit 1b2eacb)
(cherry picked from commit 4e983ad)
@openshift-ci-robot openshift-ci-robot added the backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. label Feb 1, 2024
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 1, 2024
Copy link

openshift-ci bot commented Feb 1, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 1, 2024
@openshift-ci-robot
Copy link

@bpickard22: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@swghosh
Copy link
Member

swghosh commented Feb 6, 2024

/test unit

@danwinship danwinship changed the base branch from master to sdn-4.16-kubernetes-1.29.0 March 28, 2024 15:12
// implemented and the DNS operator is updated to use it.
if svcPortNameString == "openshift-dns/dns-default:dns" || svcPortNameString == "openshift-dns/dns-default:dns-tcp" {
for _, ep := range clusterEndpoints {
if ep.GetIsLocal() {

Choose a reason for hiding this comment

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

this is now just ep.IsLocal()

@@ -3183,6 +3184,680 @@ func TestExternalTrafficPolicyCluster(t *testing.T) {
ipt := iptablestest.NewFake()
fp := NewFakeProxier(ipt)

expected := dedent.Dedent(`

Choose a reason for hiding this comment

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

You're pulling in random old code due to merge conflicts; the only thing added by e70c952 was TestOnlyLocalWithFallback.

The upstream test that TestOnlyLocalWithFallback was forked from no longer exists, but (given that we're about to abandon this code) it probably makes more sense to just keep the separate test rather than try to rewrite it to fit into the new TestExternalTrafficPolicyLocal. You will probably need to update the expected rules a bit though, to reflect minor changes in 1.29.

Note that you can run the unit tests from a checkout with go test -count=1 ./pkg/proxy/iptables

Copy link
Author

Choose a reason for hiding this comment

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

when i ran the test locally i didnt have to change the expected rules and it passed

@openshift-ci-robot
Copy link

@bpickard22: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@bpickard22 bpickard22 marked this pull request as ready for review April 17, 2024 20:56
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 17, 2024
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 17, 2024
Copy link

openshift-ci bot commented Apr 17, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bpickard22
Once this PR has been reviewed and has the lgtm label, please assign trozet for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

pkg/proxy/iptables/proxier.go Outdated Show resolved Hide resolved
pkg/proxy/iptables/proxier_test.go Outdated Show resolved Hide resolved
Miciah and others added 2 commits April 17, 2024 17:32
This commit fixes bug 1919737.

https://bugzilla.redhat.com/show_bug.cgi?id=1919737

* pkg/proxy/iptables/proxier.go (syncProxyRules): Prefer a local endpoint
for the cluster DNS service.

(cherry picked from commit 9afeab0)

UPSTREAM: <carry>: Prefer local TCP endpoint for cluster DNS service

Signed-off-by: Martin Kennelly <mkennell@redhat.com>
(cherry picked from commit ada553a)
(cherry picked from commit b2144db)
…olicy

If a service has a
"traffic-policy.network.alpha.openshift.io/local-with-fallback"
annotation, then only treat it as "externalTrafficPolicy: Local" when
there are actually running local pods.

That is, if we receive traffic for such a service after the last local
pod terminates, then forward it to a remote pod rather than dropping
it.

Note:
change utilpointer to pointer to conform to upstream
modified to suit changes to asserIPTablesRulesEqual

(cherry picked from commit 9500d08)
(cherry picked from commit e70c952)
(cherry picked from commit 9486899)
@openshift-ci-robot
Copy link

@bpickard22: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@danwinship danwinship merged commit 9cdc488 into openshift:sdn-4.16-kubernetes-1.29.0 Apr 21, 2024
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants