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

remove networkpolicy from commonlabel defaults #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

switj
Copy link

@switj switj commented May 1, 2019

If we apply commonLabels to the spec of a networkpolicy it will alter
the policy so it no longer matchs what was applied.

If we apply commonLabels to the spec of a networkpolicy it will alter
the policy so it no longer matchs what was applied.
@switj switj self-assigned this May 1, 2019
@switj switj requested review from ebabani and badie May 1, 2019 22:41
@@ -144,19 +144,4 @@ commonLabels:
create: false
group: policy
kind: PodDisruptionBudget

- path: spec/podSelector/matchLabels
Copy link

Choose a reason for hiding this comment

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

This should still be allowed, no? It's referencing resources in the namespace.

Copy link
Author

Choose a reason for hiding this comment

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

It's still allowed just not the default behaviour.

@ebabani ebabani requested a review from a team May 2, 2019 13:43
@ebabani
Copy link

ebabani commented May 2, 2019

Open issue: kubernetes-sigs#1009
There are a lot of related issues for this.

This is a likely breaking change that will be hard to merge back upstream.

Copy link

@ebabani ebabani left a comment

Choose a reason for hiding this comment

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

@switj If we're going to run a fork of kustomize for applying the clusters, can you update the instructions on how one can get the fork? For normal apps we'd want to keep using the regular kustomize.

Otherwise if this is the only way to go I'm good with the change.

@eherde
Copy link

eherde commented May 2, 2019

What is the alternative to forking kustomize? What is the impact. I do worry about forking and maintaining such a thing.

@switj switj changed the base branch from master to v2 May 2, 2019 18:23
@switj switj changed the base branch from v2 to master May 2, 2019 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants