Closed arul-gupta closed 2 years ago
Hi @arul-gupta
I think using v1.6.1@sha256:466727431a5b0ac915aa20c6893057111e0b25a2b527bc7d3c366de7f30b362a
(version and digest) as a digest is undocumented. According to the docs, we should use:
argoproj/argocd@sha256:466727431a5b0ac915aa20c6893057111e0b25a2b527bc7d3c366de7f30b362a
Ref: https://kubernetes.io/docs/concepts/configuration/overview/:
To make sure the container always uses the same version of the image, you can specify its digest; replace
<image-name>:<tag>
with<image-name>@<digest>
(for example,image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
). The digest uniquely identifies a specific version of the image, so it is never updated by Kubernetes unless you change the digest value.
Therefore we would set the values as follows:
global:
image:
repository: argoproj/argocd@sha256
tag: 466727431a5b0ac915aa20c6893057111e0b25a2b527bc7d3c366de7f30b362a
Then we can simply truncate after 63 chars.
Setting the repository and tag like above seems incorrect. Neither the repository nor the tag value seem correct and can be confusing.
As far as the tag is concerned, it is just to make the version more readable. When we specify digest, tag would be ignored so I don't see a problem in including it.
What should happen with the version
label in your opinion? Shall we omit the label completely? Or does a short form of the sha hash exists?
Shall we truncate the hash after 12 chars like quay.io does?
Updated the PR with a new proposal:
global:
image:
repository: argoproj/argocd
tag: v2.0.0
digest: sha256:8d1d58ef963f615da97e0b2c54dbe243801d5e7198b98393ab36b7a5768f72a4
imagePullPolicy: IfNotPresent
This would result in:
labels:
#(..)
app.kubernetes.io/version: "sha256-8d1d58ef963f"
Bump @arul-gupta
Stale issue message
This issue is still present, can we please re-open this issue?
/reopen
@mkilchhofer can we have this issue re-opened?
This issue is still here. I propose a PR/ https://github.com/argoproj/argo-helm/pull/1368.
I had the same issue with Argocd runningin my GKE and this solves it
image: repository: europe-west1-docker.pkg.dev/myprojects/bms-external/sonarqube/sonarqube@sha256
tag: a36af36234ed796d7f2b2779ab7e9759af6091b6af9988387b845c55324d4b0d
Describe the bug All the deployments in ArgoCD chart add a label with the image tag as the value.
To Reproduce Steps to reproduce the behavior:
Expected behavior We should probably trim the value to keep it under 63 characters and also replace the two invalid characters with a valid one
Additional context