Skip to content

Update matchLabels parameter in network-policy#38283

Merged
maxwelldb merged 1 commit intoopenshift:mainfrom
stevsmit:GH38168
Nov 9, 2021
Merged

Update matchLabels parameter in network-policy#38283
maxwelldb merged 1 commit intoopenshift:mainfrom
stevsmit:GH38168

Conversation

@stevsmit
Copy link
Copy Markdown
Member

@stevsmit stevsmit commented Nov 1, 2021

@openshift-ci openshift-ci Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 1, 2021
@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 1, 2021

✔️ Deploy Preview for osdocs ready!

🔨 Explore the source changes: 46d080f

🔍 Inspect the deploy log: https://app.netlify.com/sites/osdocs/deploys/618aa6983280c10008b08db9

😎 Browse the preview: https://deploy-preview-38283--osdocs.netlify.app

@zhaozhanqi
Copy link
Copy Markdown

openshifg-ingress namespace have both two label network.openshift.io/policy-group=ingress and policy-group.network.openshift.io/ingress=. So using anyone is ok. @asood-rh ^^ help double confirm? thanks

@jboxman-rh
Copy link
Copy Markdown

@zhaozhanqi, I was told that the newer label is the preferred one to use now. However, which cluster network provider is used matters:

So this seems to be 4.6+ for OVN-Kubernetes and 4.7+ for OpenShift SDN.

@asood-rh
Copy link
Copy Markdown

asood-rh commented Nov 3, 2021

@jboxman-rh @stevsmit @zhaozhanqi

Jason has it right, new labels (policy-group.network.openshift.io/ingress: "" and policy-group.network.openshift.io/host-network: "") are supported on 4.6 OVN-Kubernetes but not on openshiftSDN. I did find two issues with the policy support where in one case old label with openshiftSDN does not work and one new label does not work with OVN-kubernetes
(Watch out for - https://bugzilla.redhat.com/show_bug.cgi?id=2019900 and https://bugzilla.redhat.com/show_bug.cgi?id=2019996)

4.7 inclusive and on wards all labels are supported and work.
policy-group.network.openshift.io/ingress: ""
policy-group.network.openshift.io/host-network: ""
network.openshift.io/policy-group: ingress

@asood-rh
Copy link
Copy Markdown

asood-rh commented Nov 8, 2021

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2021
@jboxman-rh
Copy link
Copy Markdown

@stevsmit seems fine; My insight into this has drift somewhat in recent months. As long as it passes QE we're good to go for peer review I think.

Copy link
Copy Markdown
Contributor

@maxwelldb maxwelldb left a comment

Choose a reason for hiding this comment

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

Left a comment. I don't think this does anything that is a rule violation, but happy to chat about alternative treatments.

Comment thread modules/nw-networkpolicy-multitenant-isolation.adoc Outdated
@maxwelldb maxwelldb added the peer-review-done Signifies that the peer review team has reviewed this PR label Nov 9, 2021
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2021
@maxwelldb maxwelldb self-requested a review November 9, 2021 16:28
@maxwelldb
Copy link
Copy Markdown
Contributor

/lgtm

@maxwelldb maxwelldb merged commit 4bd1283 into openshift:main Nov 9, 2021
@maxwelldb
Copy link
Copy Markdown
Contributor

/cherry-pick enterprise-4.7

@maxwelldb
Copy link
Copy Markdown
Contributor

/cherry-pick enterprise-4.8

@maxwelldb
Copy link
Copy Markdown
Contributor

/cherry-pick enterprise-4.9

@maxwelldb
Copy link
Copy Markdown
Contributor

/cherry-pick enterprise-4.10

@openshift-cherrypick-robot
Copy link
Copy Markdown

@maxwelldb: new pull request created: #38534

Details

In response to this:

/cherry-pick enterprise-4.7

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-cherrypick-robot
Copy link
Copy Markdown

@maxwelldb: new pull request created: #38535

Details

In response to this:

/cherry-pick enterprise-4.8

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-cherrypick-robot
Copy link
Copy Markdown

@maxwelldb: new pull request created: #38536

Details

In response to this:

/cherry-pick enterprise-4.9

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-cherrypick-robot
Copy link
Copy Markdown

@maxwelldb: new pull request created: #38537

Details

In response to this:

/cherry-pick enterprise-4.10

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.

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

Labels

branch/enterprise-4.7 branch/enterprise-4.8 branch/enterprise-4.9 branch/enterprise-4.10 lgtm Indicates that a PR is ready to be merged. peer-review-done Signifies that the peer review team has reviewed this PR size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants