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

How to make operator installation method in OCP 4.2+ compatible with OCP 4.1 #1320

Closed
horis233 opened this issue Feb 25, 2020 · 6 comments
Closed
Labels
triage/unresolved Indicates an issue that can not or will not be resolved.

Comments

@horis233
Copy link
Contributor

horis233 commented Feb 25, 2020

Type of question

Are you asking about community best practices, how to implement a specific feature, or about general context and help around the operator-sdk?

community best practices

Question

What did you do?

The steps for installation operators by CLI are quite different between OCP4.1 and OCP 4.2+.

When installing an operator from the OCP OperatorHub using the CLI,
in OCP 4.2+, users need to generate OperatorGroup and Subscription,
but for OCP 4.1, users need to generate CatalogSourceConfig and Subscription.

Moreover, it seems subscription in OCP 4.1 can't use the CatalogSource in the openshift-marketplace generated by OperatorSource and it has to use the CatalogSource in the target namespace generated by CatalogSourceConfig.

Thus, I want to ask how to install operators in OCP 4.1 by using the method from OCP4.2 (generating OperatorGroup and Subscription). Could you help to provide a best practice? (like upgrade olm?)

What did you expect to see?

I hope we can have a compatible way to install operators on OCP 4.1 and OCP 4.2+.

What did you see instead? Under which circumstances?

Currently, if using OCP 4.2+ methods to install operators on OCP 4.1. Subscription can't use the CatalogSource in the openshift-marketplace namespace and users have to generate CatalogSourceConfig to generate the CatalogSource in the target namespace of the operator.

Environment

  • operator-lifecycle-manager version: 0.9.0
  • Kubernetes version information: OCP 4.1

  • Kubernetes cluster kind: OCP

/cc @gyliu513 @chenzhiwei @DanielXLee

@dmesser
Copy link
Contributor

dmesser commented Feb 25, 2020

@horis233 In OCP 4.2 you can literally skip the CatalogSourceConfig as creating an OperatorSource will automatically create a CatalogSource.
Regarding your second question around namespaces: the default namespace in which OLM will look for global catalogs was incorrectly configured in OCP 4.1 (openshift-operator-lifecycle-manager instead of openshift-marketplace).
Overall the changes were too significant to backport, so unfortunately the differences will remain. However, as we are approaching OpenShift 4.4 the support for 4.1 will end and the process to install Operators is uniform across all currently supported OpenShift 4.x releases.

@dmesser
Copy link
Contributor

dmesser commented Apr 15, 2020 via email

@chenzhiwei
Copy link

I think this issue will be automatically solved when OpenShift 4.1 reached end of life.

@stale
Copy link

stale bot commented Jun 14, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 14, 2020
@openshift-ci-robot openshift-ci-robot added triage/unresolved Indicates an issue that can not or will not be resolved. and removed wontfix labels Jun 15, 2020
@stale
Copy link

stale bot commented Aug 14, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 14, 2020
@horis233
Copy link
Contributor Author

Since the OpenShift 4.1 isn't supported. Close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/unresolved Indicates an issue that can not or will not be resolved.
Projects
None yet
Development

No branches or pull requests

4 participants