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

generate csv: support validating and mutating webhooks #2729

Merged
merged 2 commits into from
May 4, 2020

Conversation

estroz
Copy link
Member

@estroz estroz commented Mar 26, 2020

Description of the change: generate csv adds validating and mutation webhooks to a CSV by reading their config manifests from a deploy dir.

Motivation for the change: OLM will support generating admission webhooks for operators soon. The CSV generator should support adding them to new and existing CSV's.

Contains some changes that are nice-to-have from #2511 and necessary changes from #2730
Blocked by operator-framework/operator-lifecycle-manager#1436

/kind feature

@estroz estroz added the olm-integration Issue relates to the OLM integration label Mar 26, 2020
@openshift-ci-robot openshift-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Mar 26, 2020
@estroz estroz force-pushed the feature/csv-webhooks branch 2 times, most recently from 6cf7672 to 498c6fc Compare March 27, 2020 03:35
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 1, 2020
@estroz estroz force-pushed the feature/csv-webhooks branch from 498c6fc to 570a6f2 Compare April 1, 2020 21:13
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 1, 2020
@estroz estroz force-pushed the feature/csv-webhooks branch from 570a6f2 to bcbc4c9 Compare April 1, 2020 21:36
@estroz
Copy link
Member Author

estroz commented Apr 1, 2020

This PR is broken because the commit used to pin OLM does not have k8s 1.17 deps yet. Waiting for that PR to be updated.

Edit: PR updated.

@estroz estroz force-pushed the feature/csv-webhooks branch from bcbc4c9 to ffd8d59 Compare April 8, 2020 22:10
@estroz estroz changed the title [WIP] generate csv: support validating and mutating webhooks generate csv: support validating and mutating webhooks Apr 8, 2020
@estroz estroz force-pushed the feature/csv-webhooks branch 3 times, most recently from d90e577 to d7c1ccf Compare April 14, 2020 07:58
@estroz estroz marked this pull request as ready for review April 15, 2020 02:54
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 15, 2020
@estroz estroz force-pushed the feature/csv-webhooks branch from d7c1ccf to 5828c59 Compare April 17, 2020 07:34
@estroz
Copy link
Member Author

estroz commented Apr 17, 2020

Webhooks PR has been merged, this is ready for review.

@camilamacedo86
Copy link
Contributor

hi @estroz,

Compilation errors have been faced. See: https://travis-ci.org/github/operator-framework/operator-sdk/jobs/676083461#L911

@estroz estroz force-pushed the feature/csv-webhooks branch from 5828c59 to d67d147 Compare April 17, 2020 21:29
@estroz
Copy link
Member Author

estroz commented Apr 17, 2020

@camilamacedo86 fixed.

@estroz estroz force-pushed the feature/csv-webhooks branch from d67d147 to 3327873 Compare April 23, 2020 00:18
Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Shows that it is just missing a rebase and few nits as for example changelog/fragments. Could you please add it before merge?

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2020
@estroz estroz force-pushed the feature/csv-webhooks branch from 3327873 to 8d58fb1 Compare April 29, 2020 18:59
@openshift-ci-robot
Copy link

New changes are detected. LGTM label has been removed.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 29, 2020
@estroz estroz force-pushed the feature/csv-webhooks branch from 8d58fb1 to 96b42be Compare May 4, 2020 20:57
@estroz estroz merged commit 48b7203 into operator-framework:master May 4, 2020
@estroz estroz deleted the feature/csv-webhooks branch May 4, 2020 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. olm-integration Issue relates to the OLM integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants