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

config ClusterResourceOverrides as mutating admission webhook via OLM #13

Merged

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Sep 11, 2019

The autoscaling.openshift.io/ClusterResourceOverride admission plugin is an uncommonly used admission plugin with configuration values. Because it is uncommonly used, it doesn't fit well with our targeted configuration which aims to avoid adding lots of intricately documented knobs. Instead of wiring the admission plugin via a kube-apiserver operator, we can createa mutating admission webhook based on the generic-admission-server and install it via OLM.

@mcurry-rh
@openshift/sig-master

@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 11, 2019
@deads2k
Copy link
Contributor Author

deads2k commented Sep 19, 2019

/assign @sttts


### Open Questions

1. Do we need to protect openshift resources from being overcommitted? Perhaps the cluster-admin's intent is exactly that.
Copy link
Member

Choose a reason for hiding this comment

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

i would not recommend that to any cluster-admin.

### Open Questions

1. Do we need to protect openshift resources from being overcommitted? Perhaps the cluster-admin's intent is exactly that.
2. We cannot uniformly apply protection just to our payload resources, how do we position this?
Copy link
Member

Choose a reason for hiding this comment

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

we could have an opt-in per namespace behavior. the world has evolved around us since this original plug-in was conceived, it is possible that operators that take resource requirements as input could attempt to reconcile a overriden resource, but that is not much different than limit ranges already.

2. We cannot uniformly apply protection just to our payload resources, how do we position this?
External teams may be surprised that their resource requirements are not respect, but ultimately the cluster-admin is in
control of his cluster. This is what running self-hosted means.
3. How are OLM operators tested against OpenShift levels?
Copy link
Member

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

One can test with OLM during openshift CI by creating a config map catalog source of the CSV, using a testing script to get the CSV installed and running, and then run any smoke tests that by the user.

We have put together a small script to help with this testing.

3. How are OLM operators tested against OpenShift levels?
4. How do we build and distribute this OLM operator using OpenShift CI?
5. How do we describe version skew limitations to OLM so our operator gets uninstalled *before* an illegal downgrade or upgrade?
This is a concrete case of the API we want to use isn't available before 1.16 and after 1.18, the previous API could be gone.
Copy link
Member

Choose a reason for hiding this comment

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

To clarify, this is not a strict requirement for 1.16, just an API graduated to a new version.

@deads2k
Copy link
Contributor Author

deads2k commented Jan 7, 2020

/assign @tkashem

@tkashem
Copy link
Contributor

tkashem commented Jan 7, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 7, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, tkashem

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants