-
Notifications
You must be signed in to change notification settings - Fork 545
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
Service and ConfigMap specification in ClusterServiceVersion #972
Comments
We call the CSV + CRDs + extra objects the operator "bundle". Not all types are currently supported, but
Then when installing via OLM, the service will get created for you.
This is a good approach if your operator will need to make decisions around the object (other than just ensuring it exists)
Does the operator require the configmap data to start up? If so, the configmaps could be included in the bundle (like the service). Unfortunately configmaps are not yet supported, unlike Services. If not, it may make more sense to take advantage of the operator config features. Unfortunately, only env vars are currently supported. There's not currently a great way to do this, but both of the approaches above should be options in the near future. |
Just to add that I also have a requirement for specifying a configmap as part of the CSV. Our operator will (currently) start without it, but we require it to be created and populated before any custom resources are created. |
I've made some research on how other operators are being configured. |
Still unable to include Service into the bundle. |
@ecordell |
@sunsingerus courier should allow this now, and if not, would you mind opening the issue against courier? Thanks! |
@ecordell what is the rationale behind not supporting this in the CSV spec? |
We are developing operator for ClickHouse and met the following issue(s) with
ClusterServiceVersion
.kind: Service
object to provide stable connection point for this. How cankind: Service
object be specified inClusterServiceVersion
along with.spec.install.spec.deployments
? Or may be there is another approach preferred - like operator createskind: Service
object by itself via k8s API?kind: ConfigMap
objects mounted as volumes in operator'sDeployment
, like:How these
kind: ConfigMaps
objects can be specified inClusterServiceVersion
along with.spec.install.spec.deployments
and mounted into operator'sDeployment
? Or may be there is another approach for this?What would be correct way to bundle operator with additional required objects into
ClusterServiceVersion
? What to do in case operator requires some configuration files (default and changeable by user) and network services?Thanks in advance!
The text was updated successfully, but these errors were encountered: