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

filter out 'turn this on' config structs for admission #16639

Merged
merged 2 commits into from
Oct 4, 2017

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Oct 2, 2017

Alternative to #16505 to allow our enablement of config. I think this aligns more closely with a goal of calling the "normal" https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/server/options/admission.go#L78 path.

@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 2, 2017
return delegate(config2)
}

// if it was a DefaultAdmissionConfig, then it must have said "enabled" and it wasn't really meant for the
Copy link
Contributor

Choose a reason for hiding this comment

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

why does it say "enabled"? it can be disabled too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why does it say "enabled"? it can be disabled too.

Not if you get here, right? It will have already run the "ispluginenabled" check by the time this method is called.

Copy link
Contributor

Choose a reason for hiding this comment

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

@deads2k agree, noticed later.

@aveshagarwal
Copy link
Contributor

@deads2k I am fine if you want to go with this PR and if carry is fine. And then you/i could close my PR.

@deads2k deads2k added kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. labels Oct 4, 2017
@deads2k
Copy link
Contributor Author

deads2k commented Oct 4, 2017

@deads2k I am fine if you want to go with this PR and if carry is fine. And then you/i could close my PR.

Ok, I'm going to do that and then focus on eliminating more of our special cases.

@aveshagarwal are you interested in reviewing more admission code changes we go through? I'd very happy of someone else being familiar with it.

@aveshagarwal
Copy link
Contributor

@aveshagarwal are you interested in reviewing more admission code changes we go through? I'd very happy of someone else being familiar with it.

Yeah sure.

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue (batch tested with PRs 16657, 16607, 16647, 16639, 16655).

@openshift-merge-robot openshift-merge-robot merged commit 105055e into openshift:master Oct 4, 2017
@deads2k deads2k deleted the server-46-admission branch January 24, 2018 14:35
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. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants