operator-framework / operator-lifecycle-manager

A management framework for extending Kubernetes with Operators
https://olm.operatorframework.io
Apache License 2.0
1.73k stars 545 forks source link

Support ResourceQuota in bundles #2996

Open souleb opened 1 year ago

souleb commented 1 year ago

Feature Request

Is your feature request related to a problem? Please describe. We use olm to provide our operator (through operatorhub). We currently cannot add our ResourceQuota manifests to the bundle.

Describe the solution you'd like We would like ResourceQuota to be added to the list of supported resources.

dmesser commented 1 year ago

@souleb can you expand on the use case for adding a ResourceQuota to a bundle?

souleb commented 1 year ago

Our operator uses a priorityClass system-cluster-critical because it is generally one of the first component to be installed, and is needed in order to have a k8s cluster ready. Some cloud providers require a ResourceQuota declaration in order to allow deployments to use this priorityClass. So installing our operator from an olm bundle wouldn't work on those cloud providers.

dmesser commented 1 year ago

@souleb That's an interesting use case. I think so the operator bundle design assumes that operators are optional components that do not require a special priority or is part of the cluster lifecycle. Adding support for this object type is probably not too difficult, but it's always interesting to hear about the actual use cases.