-
Notifications
You must be signed in to change notification settings - Fork 48
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
[RFE] Allow automatic installation of operator (based on startingCSV) despite Manual installPlanApproval #177 #954
Comments
Hi, that would be the killer feature that many people are eagerly anticipating. I've been trying for 2 years to find the best solution (Ansible, Argo, Wave + script, etc.). |
I made it in many different ways already also during this years. I don't think it would be difficult to check the existence of that annotation when creating the first generation of the installplan to create it as if it was automatic without changing any other single line of code in the rest of the operator. But I'm not so versed in this operator to fully confirm it. |
This project really aims to solve this specific problem. The operator-controller's spec just has an explicit We are not planning on implementing anything like this in the existing operator-lifecycle-manager project, which we are considering feature complete at this point. So it will be available in the new |
You mean: it will install automatically a version (non latest version) and will respect the Manual strategy set in the If so, this can be closed, for sure. |
@soukron The new For example, to allow for automatic upgrades within a version range the apiVersion: olm.operatorframework.io/v1alpha1
kind: ClusterExtension
metadata:
name: clusterextension-sample
spec:
installNamespace: default
packageName: argocd-operator
version: 0.6.x This essentially says "Install the latest patch release of v0.6 of argocd-operator and automatically upgrade to new patch releases" An example of a specific version would look like: apiVersion: olm.operatorframework.io/v1alpha1
kind: ClusterExtension
metadata:
name: clusterextension-sample
spec:
installNamespace: default
packageName: argocd-operator
version: 0.6.0 This says "Install v0.6.0 of argocd-operator. Do not automatically upgrade". In order to upgrade to newer versions you would need to manually update the |
Not few of us are struggling with the fact that sometimes one needs an operator in a given version despite all other versions in the catalog/channel.
There are very low options there and all of them rely on automation and manual approval of install plan for such installations (that are expected to have a Manual + startingCSV pair). And everyone's reinventing the wheel using ansible, acm, k8s jobs, disconnected mirrors with only one version, etc. again and again.
I'm not sure if this has been discussed before, but it would be really great if OLM can be smart enough to cover this use case: whenever a subscription is created, if the startingCSV field is defined and there's an specific annotation, install that version automatically but let the subscription remain in Manual.
It can be a one shot comparison at creation time, no need to add extra logic for recurring modifications.
Example:
The text was updated successfully, but these errors were encountered: