kyma module in different landscape will use it's transfered container images, in order to support unified deployment, ocm community come up with so called localization concept, and implmented this concept using localization controller.
For Kyma image localization, since all image sources are managed by us internally, we will use a simplified version based on the decision mentioned in ADR
To ensure the Kyma Lifecycle Manager (KLM) can replace localized module images during deployment, all required images must be listed in the Module Operator Deployment Kubernetes resource.
All images must be published and signed in the central image registry: europe-docker.pkg.dev/kyma-project/prod
With those precondition, it allow us make localization possible using simple replace machanism.
scan Deployment or StatefulSet yaml, replace all image with europe-docker.pkg.dev/kyma-project/prod/[name]:[tag] to it's related localized image [localized host]/[name]:[tag]
Support kyma module deployment in other landscapes.
Acceptance Criteria
[ ] KLM is able to deploy localized kyma module from ocm component
[ ] OCM ociArtifact resources may not only one, for certain modules, it may persists several images, KLM need to support the replacement for all images.
Description
kyma module in different landscape will use it's transfered container images, in order to support unified deployment, ocm community come up with so called localization concept, and implmented this concept using localization controller.
For Kyma image localization, since all image sources are managed by us internally, we will use a simplified version based on the decision mentioned in ADR
With those precondition, it allow us make localization possible using simple replace machanism.
Deployment
orStatefulSet
yaml, replace all image witheurope-docker.pkg.dev/kyma-project/prod/[name]:[tag]
to it's related localized image[localized host]/[name]:[tag]
Example
New OCM format https://github.com/kyma-project/lifecycle-manager/blob/2342670c9be72df6b33c4cd6ce0d12ccbb65b371/tests/moduletemplates/moduletemplate_template_operator_regular_new_ocm.yaml#L33-L43
In target landscape, this image resource will be replaced to:
Reasons
Support kyma module deployment in other landscapes.
Acceptance Criteria
ociArtifact
resources may not only one, for certain modules, it may persists several images, KLM need to support the replacement for all images.Feature Testing
Integration tests, End-to-End tests
Testing approach
No response
Attachments
related issue: https://github.com/kyma-project/lifecycle-manager/issues/1867