The Wayback Machine - https://web.archive.org/web/20210619043602/https://github.com/kubernetes/kubernetes/pull/102354
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

Using ServiceIPs instead of DNS names in the NetworkPolicy Probes + adding Interface decoupling #102354

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

@jayunit100
Copy link
Member

@jayunit100 jayunit100 commented May 26, 2021

fixes #102286

This addresses removal of network policies dependence on DNS... just a quick hack to make sure it works
will clean up later

@k8s-ci-robot
Copy link
Contributor

@k8s-ci-robot k8s-ci-robot commented May 26, 2021

@jayunit100: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove 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.

@k8s-ci-robot
Copy link
Contributor

@k8s-ci-robot k8s-ci-robot commented May 26, 2021

@jayunit100: This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented May 26, 2021

/test pull-kubernetes-e2e-ubuntu-gce-network-policies

@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented May 26, 2021

@danwinship just a wip but i think it does the thing you want

@jayunit100 jayunit100 changed the title WIP: Quick hack to test removing dns from network policies Using ServiceIPs instead of DNS names in the NetworkPolicy Probes + adding Interface decoupling May 26, 2021
@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented Jun 14, 2021

/retest

for _, ns := range model.Namespaces {
for _, pod := range ns.Pods {
service := pod.Service()
kubeService, err := f.ClientSet.CoreV1().Services(pod.Namespace).Get(context.TODO(), service.Name, metav1.GetOptions{})

This comment has been minimized.

@aojea

aojea Jun 15, 2021
Member

why do we have to get the service again?
Services are synchronous and clusterip inmutable

This comment has been minimized.

@jayunit100

jayunit100 Jun 15, 2021
Author Member

pod.Service() is part of the model, which doesn't gaurantee anything about ordering around Service.Create . ill update the comments here to clarify .

This comment has been minimized.

@jayunit100

jayunit100 Jun 16, 2021
Author Member

#102919 <-- filed an issue here .... i think the broader question your asking is "why isn't the model stateful" which is i think valid, but we should think a little more deeply about it before adding a one-off cache for service IPs.

As is, we just don't have any assumptions in the framework that model data of any sort, including Service ClusterIPs, needs to be cached.

This comment has been minimized.

@aojea

aojea Jun 16, 2021
Member

scratch this comment, I didn't understand how this worked, the service returned is a local object not one from the API server

This comment has been minimized.

@jayunit100

jayunit100 Jun 16, 2021
Author Member

either way i think youve touched on something , so ill keep the other issue open

@jayunit100 jayunit100 force-pushed the jayunit100:netpol_prober branch 3 times, most recently from 484202c to 80af7c9 Jun 15, 2021
@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented Jun 15, 2021

/retest

@jayunit100 jayunit100 force-pushed the jayunit100:netpol_prober branch 2 times, most recently from 8b2dec5 to c093e8d Jun 16, 2021
@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented Jun 16, 2021

/retest

jayunit100 and others added 3 commits May 26, 2021
CoreDNS when verifying network policys

Update test/e2e/network/netpol/probe.go

Co-authored-by: Antonio Ojea <[email protected]>

Add deafultNS to use service probe
@jayunit100 jayunit100 force-pushed the jayunit100:netpol_prober branch from c093e8d to 72ec76d Jun 16, 2021
@k8s-ci-robot
Copy link
Contributor

@k8s-ci-robot k8s-ci-robot commented Jun 16, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jayunit100

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

@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented Jun 16, 2021

/tide merge-method-none

@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented Jun 16, 2021

/tide merge-method-rebase

@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented Jun 16, 2021

all set here @aojea ?

@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented Jun 16, 2021

/retest

1 similar comment
@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented Jun 16, 2021

/retest

@jayunit100
Copy link
Member Author

@jayunit100 jayunit100 commented Jun 18, 2021

/retest

@k8s-ci-robot
Copy link
Contributor

@k8s-ci-robot k8s-ci-robot commented Jun 18, 2021

@jayunit100: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-kubernetes-e2e-gci-gce-ingress f8748f2 link /test pull-kubernetes-e2e-gci-gce-ingress

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment