Skip to content

Conversation

@Nunction
Copy link

@Nunction Nunction commented May 6, 2025

This change allows for the image tag to contain the digest. Currently this is not possible as the tag is added as label and labels may not contain ':' or '@' nor exceed 63 characters. This PR fixes this by replacing invalid characters and truncating beyond 63 characters of the tag for the label. This fix shouldn't change the behavior of the label for tags without digest.

The label created after the fix for tag latest@sha256:8d7a1bf44226f2fbcb232edded836ca83a5c13c694575067f11322e19e2a7a0f is app.kubernetes.io/version: latest_sha256_8d7a1bf44226f2fbcb232edded836ca83a5c13c694575067f.

Fixes kubernetes label not being allowed to contain digest by replacing invalid characters in tag and truncating to 63 chars.
@CLAassistant
Copy link

CLAassistant commented May 6, 2025

CLA assistant check
All committers have signed the CLA.

@drakkan drakkan closed this in 29006d3 Jan 7, 2026
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.

2 participants