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

refact(webhook): make webhook config failure policy configurable #1726

Merged
merged 2 commits into from
Jul 1, 2020

Conversation

prateekpandey14
Copy link
Contributor

@prateekpandey14 prateekpandey14 commented Jun 29, 2020

Why is this PR required? What issue does it fix?:
make webhook validatingwebhookconfiguration configurable

What this PR does?:
commit enable the webhook validatingwebhookconfiguration
failure policy configurable using a env called
ADMISSION_WEBHOOK_FAILURE_POLICY.

There are 2 types of failure policy which can be configurable
are Fail and Ignore. Fail will be the default policy

Does this PR require any upgrade changes?:

NO

If the changes in this PR are manually verified, list down the scenarios covered::

  • deployed the admission server using ignore failure policy and verified that it got configured properly

Checklist:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests
  • (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
  • (Optional) If documentation changes are required, which issue on https://github.com/openebs/openebs-docs is used to track them:

commit enable the webhook validatingwebhookconfiguration
failure policy configurable using a env called
ADMISSION_WEBHOOK_FAILURE_POLICY.

There are 2 types of failure policy which can be configurable
are `Fail` and `Ignore`. `Fail` will be the default policy

Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
@kmova
Copy link
Contributor

kmova commented Jul 1, 2020

@prateekpandey14 -- does this need change in the upgrade code, that recreates the validation hooks?

Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
Copy link
Contributor

@shubham14bajpai shubham14bajpai left a comment

Choose a reason for hiding this comment

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

lgtm

@kmova kmova merged commit b3060a9 into openebs-archive:master Jul 1, 2020
prateekpandey14 added a commit to prateekpandey14/maya that referenced this pull request Jul 2, 2020
…nebs-archive#1726)

commit enable the webhook validatingwebhookconfiguration
failure policy configurable using a env called
ADMISSION_WEBHOOK_FAILURE_POLICY.

There are 2 types of failure policy which can be configurable
are `Fail` and `Ignore`. `Fail` will be the default policy

Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
kmova pushed a commit that referenced this pull request Jul 2, 2020
commit enable the webhook validatingwebhookconfiguration
failure policy configurable using a env called
ADMISSION_WEBHOOK_FAILURE_POLICY.

There are 2 types of failure policy which can be configurable
are `Fail` and `Ignore`. `Fail` will be the default policy

Signed-off-by: prateekpandey14 <prateek.pandey@mayadata.io>
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.

3 participants