Skip to content

Conversation

@maximiliantech
Copy link
Member

What this PR does / why we need it:
This PR moves the function func ParseImageVersionAndTag(image string) (imageName string, tag string, digest string, err error) to this controller-utils repository. The function parses a container image string and returns the image name, tag, and digest.

Initially, the function was implemented here: https://github.com/openmcp-project/bootstrapper/blob/aa787b6120a52420c0d2c0efb3b2092860dd3f6c/internal/util/image.go#L15

Which issue(s) this PR fixes:
Related to openmcp-project/service-provider-crossplane#46 (comment)

Special notes for your reviewer:
NONE

Release note:

Add func to parse container images and return the image name, tag and digest

@maximiliantech maximiliantech changed the title feat: add func to parse image reference feat: add func to parse image references Oct 28, 2025
@maximiliantech maximiliantech requested a review from reshnm October 28, 2025 09:57
Copy link

@rdksap rdksap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@maximiliantech maximiliantech merged commit 5ddb484 into main Oct 28, 2025
7 checks passed
@maximiliantech maximiliantech deleted the feat/image-parsing branch October 28, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants