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

License check annotation #5815

Merged
merged 4 commits into from
Jun 28, 2022
Merged

License check annotation #5815

merged 4 commits into from
Jun 28, 2022

Conversation

pebrc
Copy link
Collaborator

@pebrc pebrc commented Jun 21, 2022

Support an annotation on all Elastic resources to request a certain license level in the operator. Pre-req of #5781

I had to move a few things around for this to break a few import cycles, I hope that the changes and new packages names are self-explanatory and generally an improvement over the status quo.

I feel like there is room for a larger refactoring of the web hook logic in which we use just one method for both Elasticsearch and all the other applications. Also I found #5814

Copy link
Contributor

@naemono naemono left a comment

Choose a reason for hiding this comment

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

Looks good. Would love to see some tests in the pkg/controller/common/webhook package with actual CRD objects showing this intended usage though.

@pebrc pebrc merged commit 56de716 into elastic:main Jun 28, 2022
fantapsody pushed a commit to fantapsody/cloud-on-k8s that referenced this pull request Feb 7, 2023
Support an annotation on all Elastic resources to request a certain license level in the operator. Pre-req of elastic#5781

I had to move a few things around for this to break a few import cycles, I hope that the changes and new packages names are self-explanatory and generally an improvement over the status quo.
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.

2 participants