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

Specify and use OLM relatedImages in the operator #14993

Closed
l0rd opened this issue Oct 27, 2019 · 11 comments
Closed

Specify and use OLM relatedImages in the operator #14993

l0rd opened this issue Oct 27, 2019 · 11 comments
Assignees
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/enhancement A feature request - must adhere to the feature request template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@l0rd
Copy link
Contributor

l0rd commented Oct 27, 2019

Is your enhancement related to a problem?

There is a new convention to specify the images that an operator and the operand will need that provide a better offline support on OCP 4.3: the spec document

Describe the solution you'd like

As mentioned in the proposal we should:

  • Add a relatedImages section in the ClusterServiceVersionSpec. Some images should be flagged as required (che-server, keycloak, postres, devfile and plugin registry, che-theia, brokers etc...) others not (plugins sidecars and stacks)
  • Update the operator deployment yaml and the operator itself to leverage the olm.relatedImage annotations
  • Remove current CR attributes airGapContainerRegistryHostname and airGapContainerRegistryOrganisation
@l0rd l0rd added the kind/enhancement A feature request - must adhere to the feature request template. label Oct 27, 2019
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Oct 27, 2019
@l0rd l0rd added area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator team/osio severity/P1 Has a major impact to usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Oct 27, 2019
@ibuziuk ibuziuk added this to the Backlog - Hosted Che milestone Oct 30, 2019
@davidfestal
Copy link
Contributor

Should it still be in the OSIO backlog ?
cc @ibuziuk @nickboldt @tolusha

@davidfestal
Copy link
Contributor

We should still think about the pure Kubernetes, non-OLM case, that should still support Airgap I assume.

@tolusha
Copy link
Contributor

tolusha commented May 6, 2020

@l0rd
Is it part of the epic ?
#15350

@davidfestal
Copy link
Contributor

@l0rd It seems to me it is.

@l0rd
Copy link
Contributor Author

l0rd commented May 6, 2020

This one looks like a pre-requisite for #15350. So yes. I though we had already addressed that.

@nickboldt
Copy link
Contributor

We should still think about the pure Kubernetes, non-OLM case, that should still support Airgap I assume.

Or you could say that if you want airgap the Openshift 4.3+ way, you need openshift. :D

BTW for OCP 4.5, see #16815

@davidfestal
Copy link
Contributor

This one looks like a pre-requisite for #15350. So yes. I though we had already addressed that.

On CRW side for the 2.1.0 release the relatedImages section is added on the CSV at build time. When preparing the brew build, build process gathers all the digests and add them in the relatedImages on the CSV that needs it.
For upstream, it should obviously be managed a bit differently.

Also note that operator framework team is working on supporting tags in the relatedImages and having them replaced automatically by digests. But once again we should check if this mechanism would be CRW-specific, or also supported for community operators.

@AndrienkoAleksandr
Copy link
Contributor

Hello, @l0rd @davidfestal @nickboldt Do we need this feature for nightly CSV?

@nickboldt
Copy link
Contributor

I don't need it for nightly for CRW (we rebuild from source, don't reuse Che bits) but @dmytro-ndp might need it for testing Che CI builds...

@AndrienkoAleksandr
Copy link
Contributor

Hello, @l0rd @davidfestal @nickboldt Do we need this feature for nightly CSV
I don't need it for nightly for CRW (we rebuild from source, don't reuse Che bits) but @dmytro-ndp might need it for testing Che CI builds...

we don't have nightly for OLM unfortunately...

@tolusha tolusha mentioned this issue Jun 1, 2020
34 tasks
@AndrienkoAleksandr
Copy link
Contributor

Hello, about current state of this issue.
Sorry, but about this the spec document I applied need changes to pr, but then I reverted most of them, because I found this spec is alpha and it was not implemented . So we can't use "olm.relatedImage" annotation and "required" field in the relatedImages( actually field "required" called in the spec "default").

So in the pr eclipse-che/che-operator#274 I included to the release scripts adding section relatedImages for CSV files.

@tolusha tolusha removed this from the Backlog - Deploy milestone Jun 3, 2020
@tolusha tolusha added this to the 7.15 milestone Jun 3, 2020
@mmorhun mmorhun mentioned this issue Jun 23, 2020
14 tasks
@tolusha tolusha modified the milestones: 7.15, 7.16 Jun 30, 2020
@tolusha tolusha closed this as completed Jul 8, 2020
@tolusha tolusha mentioned this issue Jul 13, 2020
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/enhancement A feature request - must adhere to the feature request template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

7 participants