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

Enable PodDistruptionBudget #11187

Merged
merged 4 commits into from
Oct 24, 2016
Merged

Conversation

soltysh
Copy link
Contributor

@soltysh soltysh commented Oct 3, 2016

Fixes #10938.

@smarterclayton is there something else needed you were thinking of?

@deads2k I have a question regarding ServiceAccounts and SharedIndexInformer. If a controller (here DisruptionController does not have explicit access rights to Pods, but can access them through that SharedIndexInformer is ok? If the same controller would like to access pods directly, it would need such an access right, why then using this cache, it's not required anymore?

@soltysh
Copy link
Contributor Author

soltysh commented Oct 3, 2016

[test]

@deads2k
Copy link
Contributor

deads2k commented Oct 3, 2016

If the same controller would like to access pods directly, it would need such an access right, why then using this cache, it's not required anymore?

We never built one that checks permissions on an individual client being submitted. Informers are non-mutating and at least one client in the process had rights, so we let it through.

@soltysh
Copy link
Contributor Author

soltysh commented Oct 3, 2016

@deads2k can I be the picky one complaining that this is not cool about it? Is there a plan (sometime in the future) to fix it, or we're cool with the current state of world?

@deads2k
Copy link
Contributor

deads2k commented Oct 3, 2016

@deads2k can I be the picky one complaining that this is not cool about it? Is there a plan (sometime in the future) to fix it, or we're cool with the current state of world?

I think we're ok with the state of the world. For now.

@soltysh
Copy link
Contributor Author

soltysh commented Oct 6, 2016

@smarterclayton any objections for merge?

@smarterclayton
Copy link
Contributor

smarterclayton commented Oct 6, 2016

Lgtm

@soltysh
Copy link
Contributor Author

soltysh commented Oct 6, 2016

Flake #11016

@soltysh
Copy link
Contributor Author

soltysh commented Oct 7, 2016

It looks like I'm constantly hitting #11016, I need to investigate this more before actually merging.

@soltysh soltysh changed the title Enable PodDistruptionbudget e2e tests in conformance [DO_NOT_MERGE] Enable PodDistruptionbudget e2e tests in conformance Oct 7, 2016
@soltysh soltysh changed the title [DO_NOT_MERGE] Enable PodDistruptionbudget e2e tests in conformance Enable PodDistruptionbudget e2e tests in conformance Oct 20, 2016
@soltysh
Copy link
Contributor Author

soltysh commented Oct 20, 2016

@mfojtik @Kargakis so I am able to reproduce consistently the timeouts, with this PR. I'll be digging deeper what might be causing that.

@soltysh soltysh changed the title Enable PodDistruptionbudget e2e tests in conformance [DO_NOT_MERGE] Enable PodDistruptionbudget e2e tests in conformance Oct 20, 2016
@soltysh soltysh force-pushed the issue10938 branch 2 times, most recently from b35ff19 to 34aab1b Compare October 21, 2016 12:27
@soltysh soltysh changed the title [DO_NOT_MERGE] Enable PodDistruptionbudget e2e tests in conformance Enable PodDistruptionBudget Oct 21, 2016
@soltysh
Copy link
Contributor Author

soltysh commented Oct 21, 2016

@smarterclayton this required 2 additional changes upstream and an extension to policy, so that regular users should be able to use it. Mind taking a look once again?

@smarterclayton
Copy link
Contributor

@soltysh what's the security impact of enabling PDB? Can you bring down / DoS cluster? @deads2k

@soltysh
Copy link
Contributor Author

soltysh commented Oct 21, 2016

Updated missing generated completions.

@soltysh
Copy link
Contributor Author

soltysh commented Oct 21, 2016

After discussion with @smarterclayton about security implications PDB will be enabled only for cluster admins. I've dropped the commit updating policy. Upon green tests I'll merge this in.

@0xmichalis
Copy link
Contributor

0xmichalis commented Oct 24, 2016

Have you also enabled access to the eviction subresource?

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 24, 2016
@soltysh
Copy link
Contributor Author

soltysh commented Oct 24, 2016

Rebased and waiting for green tests...

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 2b5dd3d

@soltysh soltysh removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 24, 2016
@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10529/) (Base Commit: 84cddbc)

@mfojtik
Copy link
Contributor

mfojtik commented Oct 24, 2016

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 2b5dd3d

@openshift-bot
Copy link
Contributor

openshift-bot commented Oct 24, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10529/) (Image: devenv-rhel7_5235)

@openshift-bot openshift-bot merged commit fff2424 into openshift:master Oct 24, 2016
@soltysh soltysh deleted the issue10938 branch October 24, 2016 14:28
@smarterclayton
Copy link
Contributor

Lgtm [merge]

On Oct 21, 2016, at 5:52 PM, OpenShift Bot [email protected] wrote:

continuous-integration/openshift-jenkins/test SUCCESS (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/10440/) (Base
Commit: fa658ac
fa658ac
)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#11187 (comment),
or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABG_p5Ix9R2oLXENhG6_JImpNUqOwIuTks5q2TQtgaJpZM4KMcuX
.

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

Successfully merging this pull request may close these issues.

6 participants