-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(argo-cd): Truncate version labels to 63 characters #1368
Conversation
Not sure if we should implement only a workaround for the label issue or if we want to properly support digests like my proposal in the past: |
b912109
to
50553e0
Compare
@mkilchhofer I've seen PR #643, but I want to keep the version and the digest (i.e. I want This is a common practice to use version@digest as tag value, and this is what works with Inputs @arul-gupta @sarahhenkens ? |
Allow to use digests. argoproj#417 Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
50553e0
to
f6cf5b1
Compare
@mkilchhofer I've rebased, please review again 🙏 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Allow to use digests. argoproj#417 Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
This was missing from argoproj#1368 to fix argoproj#417. Fix the following validation error: Error: failed to create resource: Deployment.apps "argocd-applicationset-controller" is invalid: [metadata.labels: Invalid value: "v2.4.4@sha256:9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572": 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])?''), spec.template.labels: Invalid value: "v2.4.4@sha256:9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572": 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])?'')] Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
Truncating (from argoproj#1368) is not enough to fix argoproj#417. Signed-off-by: Mathieu Parent <mathieu.parent@insee.fr>
Allow to use digests.
#417
Before this PR, a
values.yaml
like this:Fails with:
Checklist:
Changes are automatically published when merged to
main
. They are not published on branches.