You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this issue is to make the SDP installable from other repos than oci.stackable.tech.
It is currently very hard (and sometimes impossible) to customize the registry/repository used by operators to construct the final product image name.
In order to fix that, the issue is tackled on a few different levels:
The CI pipelines must become the authoritative source of truth for our artifacts and where they are published. Currently, our operator and product container images as well as Helm Charts are only published to oci.stackable.tech. Artifacts available on quay.io/stackable are only mirrored from oci.stackable.tech and don't include Helm Charts. Going forward, we want to publish all artifacts directly to both registries via our CI pipelines.
Our Helm Charts carry information about their origin (where they are installed from). These pieces of data can then be used during deployment time to provide operators with a default registry used for product image selection/resolving.
Our operators provide a way to set the default image registry/repository used as a fallback during product image selection. Users must still be able to completely override the product image used if automatic selection is not desired.
Tasks
Add Helm values merge mechanism
Add registry-specific values file via operator-templating
Add new CLI argument + env var to operators to set image registry/repository
Adjust Helm templates to provide image registry/repository values to Deployment/DaemonSets via env var
Separate operator and product image repositories in Helm values.yaml (Feature PR, Rollout, Search)
Core operators don't need to separate between operator and product image repository, because they are not managing products (Feature PR, Rollout, Search)
Core operators also reference sig-storage images, which need to be handled in a different way
Note
The core operators technically currently don't need the --image-repository argument. The CLI will expose that argument once stackable-operator is bumped to > 0.111.0, which introduces a required arg not used by the operator.
Acceptance criteria
Helm charts are available on both oci.stackable.tech as well as quay.io.
Helm charts on oci.stackable.tech reference images on that repo. Same for quay.io.
Operators are explicitly configured by the package managers (Helm and OLM currently) with a repo for product images.
Custom resources should not be affected, meaning that users which just specify spec.image.productVersionwithout providing a completely override should just work as before.
Description
The goal of this issue is to make the SDP installable from other repos than
oci.stackable.tech.It is currently very hard (and sometimes impossible) to customize the registry/repository used by operators to construct the final product image name.
In order to fix that, the issue is tackled on a few different levels:
oci.stackable.tech. Artifacts available onquay.io/stackableare only mirrored fromoci.stackable.techand don't include Helm Charts. Going forward, we want to publish all artifacts directly to both registries via our CI pipelines.Tasks
operator-templatingpublish-helm-chartaction (Rollout, Search)operator-templatingto also publish toquay.ioquay.io: ci: Publish to quay.io docker-images#1492commons-operatorlistener-operatorsecret-operatorNote
The core operators technically currently don't need the
--image-repositoryargument. The CLI will expose that argument oncestackable-operatoris bumped to > 0.111.0, which introduces a required arg not used by the operator.Acceptance criteria
oci.stackable.techas well asquay.io.oci.stackable.techreference images on that repo. Same forquay.io.spec.image.productVersionwithout providing a completely override should just work as before.Relevant decisions