Operator is failing to deploy the KieApp when are used images with sha digest. In Operator log is visible following exception:
"DeploymentConfig.apps.openshift.io \"rhpam-trial-rhpamcentr\" is invalid: spec.template.labels: Invalid value: \"rhpam-businesscentral-rhel8@sha256\": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')"
This is caused by configuration of metering lables, where is used as subcomponent name a image name. As in there is used image with digest, the name of the image is wrongly parsed to the label. Configuration of lable is done here: https://github.com/kiegroup/kie-cloud-operator/pull/523/files#diff-29ad51b906bc49dd54db094a3b626e8e4a04628d03562e6c0d45db0e391ac2fbR155
Issues is opened as blocker, because image stream with sha digest are used by default.
- documents
-
KIECLOUD-499 GetImage in KieCloud operator is broken when used with streams
- Closed
- is related to
-
RHPAM-3481 Fix label subcomp value configuration in Operator
- Closed