Open amisevsk opened 1 year ago
Why not possible to update CHE_DEFAULT_SPEC_DEVENVIRONMENTS_DEFAULTCOMPONENTS
when a new DS version with CVE fixes is released?
Internally, we have automation (Freshmaker) that can be used for any operator to
.spec.relatedImages
and RELATED_IMAGES_*
environment variables in an Operator's definition to use those new imagesThis automation is designed only to operate on the images present in .spec.relatedImages
; the existence of an image reference in the CHE_DEFAULT_SPEC_DEVENVIRONMENTS_DEFAULTCOMPONENTS
environment variable is similar to hard-coding an image reference internally and not listing it in relatedImages
-- updating this field automatically to keep it in sync would require specific logic to ensure the image is updated alongside others.
Issues go stale after 180
days of inactivity. lifecycle/stale
issues rot after an additional 7
days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale
in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen
label to avoid stale mode.
Is your enhancement related to a problem? Please describe
The default value for
checluster.spec.devEnvironments.defaultComponents
is stored in the environment variable CHE_DEFAULT_SPEC_DEVENVIRONMENTS_DEFAULTCOMPONENTS.This variable references the UDI image associated with the current release:
This can cause an issue with automation for updating the UDI image in response to CVEs, etc., as this automation will replace e.g. the UDI used in the devfile and plugin registries:
since they are RELATED_IMAGEs, but not the UDI image used for default components.
This means that empty workspace samples do not necessarily get the same CVE fixes as other workspaces (that have devfiles associated with them).
Describe the solution you'd like
Ideally, we should resolve additional environment variables inside the default setting field. Something like
which the Che Operator resolves to the same default setting as above.
Describe alternatives you've considered
No response
Additional context
No response