-
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
fix(argo-cd): Avoid invalid labels when image tags have digest #1427
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sathieu
requested review from
davidkarlsen,
mr-sour,
yann-soubeyrand,
mbevc1,
mkilchhofer,
yu-croco and
jmeridth
as code owners
August 26, 2022 09:24
Tested with: $ helm template . \
> --set global.image.tag=v2.4.4@sha256:9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c5725fe4052681950dc \
> --set dex.image.tag=v2.33.0@sha256:62902bd3a7ce4a73ed44e28884bffec04bcaa4a07e31e043173bdce289717e80 \
> --set redis.image.tag=7.0.4-alpine@sha256:7c9e7c305125c68354c4902ed09a3c6da96436a5a2929b73f29748d56cf8e3c3 \
> | grep -F app.kubernetes.io/version
app.kubernetes.io/version: "v2.4.4-sha256-9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572"
app.kubernetes.io/version: "v2.4.4-sha256-9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572"
app.kubernetes.io/version: "v2.4.4-sha256-9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572"
app.kubernetes.io/version: "v2.4.4-sha256-9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572"
app.kubernetes.io/version: "v2.4.4-sha256-9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572"
app.kubernetes.io/version: "v2.4.4-sha256-9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572"
app.kubernetes.io/version: "v2.4.4-sha256-9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572"
app.kubernetes.io/version: "v2.4.4-sha256-9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572"
app.kubernetes.io/version: "v2.33.0-sha256-62902bd3a7ce4a73ed44e28884bffec04bcaa4a07e31e043"
app.kubernetes.io/version: "v2.33.0-sha256-62902bd3a7ce4a73ed44e28884bffec04bcaa4a07e31e043"
app.kubernetes.io/version: "7.0.4-alpine-sha256-7c9e7c305125c68354c4902ed09a3c6da96436a5a29"
app.kubernetes.io/version: "7.0.4-alpine-sha256-7c9e7c305125c68354c4902ed09a3c6da96436a5a29"
app.kubernetes.io/version: "v2.4.4-sha256-9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572"
app.kubernetes.io/version: "v2.4.4-sha256-9d78128c71e88daf7c6bb45c7c2d58ac293786fea6ae1c572" |
sathieu
force-pushed
the
fix_invalid_version_label
branch
from
August 26, 2022 09:38
8b3bd14
to
a83160a
Compare
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>
sathieu
force-pushed
the
fix_invalid_version_label
branch
from
August 26, 2022 09:41
a83160a
to
c1e5e61
Compare
Aligning to upstream's way sounds good to me. 🙋 |
I've created another PR: #1432 |
6 tasks
Yup, let's try to keep it aligned with the upstream 👍 |
Solved via #1432 |
6 tasks
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This was missing from #1368
to fix #417.
Fix the following validation error:
Ref: https://gitlab.com/kubitus-project/kubitus-installer/-/jobs/2922927151#L1878
Checklist:
Changes are automatically published when merged to
main
. They are not published on branches.