Repository navigation
fix(gitops): apontar helm.image-tag pro campo tag, nao digest - #16
Merged
Merged
Conversation
This file contains hidden or 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
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.
Summary
Achado ao vivo: o pod novo ficava
InvalidImageName, imagem renderizando comoghcr.io/ladesa-ro/docs/docs:development@development@sha256:..., duplicado.Causa raiz: o Image Updater sempre escreve o valor combinado
tag@digestno parametro Helm apontado porhelm.image-tag(confirmado lendopkg/argocd/argocd.godoargocd-image-updater, funcaoSetHelmImage, usanewImage.GetTagWithDigest()). O chartstakater/application(templates/deployment.yaml) monta a imagem comorepo:{{tag}}@{{digest}}, dois campos separados. Apontarhelm.image-tagpro campo.digestfazia o valor combinado (que ja contemdevelopment@sha256:...) virar o.digest, e o.tagestatico (development, devalues-development.yaml) se somar em cima, duplicando.Corrigido apontando pro campo
.tagem vez de.digest: o chart montarepo:development@sha256:...a partir de um unico campo dinamico, que e exatamente a forma de referencia de imagemnome:tag@digestvalida.Test plan
application.deployment.image.digestque ficou setado errado na Application (viaargocd app unsetou live), esperar o Image Updater reescreverapplication.deployment.image.tag, confirmar podRunning