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

OCPBUGS-18907: add KAS endpoints to Except in router egress rule #3007

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

sjenning
Copy link
Contributor

Even though the router does not have the KAS mgmt label, it can still access the KAS because the private-router NetworkPolicy allows it.

@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 Sep 12, 2023
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 12, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 12, 2023

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-ci-robot openshift-ci-robot added the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Sep 12, 2023
@openshift-ci-robot
Copy link

@sjenning: This pull request references Jira Issue OCPBUGS-17827, which is invalid:

  • expected the bug to target the "4.15.0" version, but it targets "4.14.0" instead
  • expected the bug to be in one of the following states: NEW, ASSIGNED, POST, but it is ON_QA instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Even though the router does not have the KAS mgmt label, it can still access the KAS because the private-router NetworkPolicy allows it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added do-not-merge/needs-area area/hypershift-operator Indicates the PR includes changes for the hypershift operator and API - outside an OCP release labels Sep 12, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sjenning

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

The pull request process is described 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

@openshift-ci openshift-ci bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed do-not-merge/needs-area labels Sep 12, 2023
@sjenning sjenning changed the title OCPBUGS-17827: add KAS endpoints to Except in router egress rule OCPBUGS-18907: add KAS endpoints to Except in router egress rule Sep 12, 2023
@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 12, 2023
@openshift-ci-robot
Copy link

@sjenning: This pull request references Jira Issue OCPBUGS-18907, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.15.0) matches configured target version for branch (4.15.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (jiezhao@redhat.com), skipping review request.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Even though the router does not have the KAS mgmt label, it can still access the KAS because the private-router NetworkPolicy allows it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@enxebre
Copy link
Member

enxebre commented Sep 13, 2023

/hold

@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. area/testing Indicates the PR includes changes for e2e testing labels Sep 13, 2023
@enxebre
Copy link
Member

enxebre commented Sep 13, 2023

I added a commit to include private router in the e2e validation
/hold cancel
/label tide/merge-method-squash
/lgtm

@openshift-ci openshift-ci bot added tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Sep 13, 2023
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 13, 2023
@enxebre
Copy link
Member

enxebre commented Sep 13, 2023

/test e2e-aws

@csrwng
Copy link
Contributor

csrwng commented Sep 13, 2023

Because changes to the kas endpoints resource should result in updated policy, we should be watching endpoints in the hostedcontrolplane controller.

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 13, 2023
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Sep 13, 2023
@@ -227,6 +227,7 @@ func (r *HostedClusterReconciler) managedResources() []client.Object {
&corev1.Namespace{},
&corev1.ServiceAccount{},
&corev1.Service{},
&corev1.Endpoints{},
Copy link
Member

Choose a reason for hiding this comment

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

we should follow up to filter events for only "kubernetes" endpoint in enqueueHostedClustersFunc
then also consider only caching that resource by letting ObjectSelector to filte by field metadata.Name = "kubernetes"

@csrwng
Copy link
Contributor

csrwng commented Sep 13, 2023

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 13, 2023
@sjenning sjenning marked this pull request as ready for review September 13, 2023 14:22
@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 Sep 13, 2023
@sjenning
Copy link
Contributor Author

AWS IPI failure
/test e2e-kubevirt-aws-ovn

@csrwng
Copy link
Contributor

csrwng commented Sep 13, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 13, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 13, 2023

@sjenning: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 8112ade into openshift:main Sep 13, 2023
12 checks passed
@openshift-ci-robot
Copy link

@sjenning: Jira Issue OCPBUGS-18907: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-18907 has been moved to the MODIFIED state.

In response to this:

Even though the router does not have the KAS mgmt label, it can still access the KAS because the private-router NetworkPolicy allows it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sjenning
Copy link
Contributor Author

/cherry-pick release-4.14

@openshift-cherrypick-robot

@sjenning: new pull request created: #3010

In response to this:

/cherry-pick release-4.14

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

enxebre added a commit to enxebre/hypershift that referenced this pull request Sep 15, 2023
…nshift#3007)

* add KAS endpoints to Except in router egress rule

* Add private router to EnsureLimitedEgressTrafficToManagementKAS e2e test

---------

Co-authored-by: enxebre <alberto.garcial@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/hypershift-operator Indicates the PR includes changes for the hypershift operator and API - outside an OCP release area/testing Indicates the PR includes changes for e2e testing jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants