v0 ECS: image name and version are wrong when the container image is pinned by digest
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 25/100
Direzione di ricerca
Read pkg/app/piped/platformprovider/ecs/task.go, especially parseContainerImage, and compare its behavior with the v1 ECS plugin and the handling described in #7633. Reproduce the digest case from the issue and check the tests for parseContainerImage, FindImageTag, and FindArtifactVersions; done means the image name is web and the digest is used as the version. The reporter says a fix with tests is ready and will open a PR.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened:
parseContainerImage in pkg/app/piped/platformprovider/ecs/task.go splits the image on the last ":" of the last path segment, but it doesn't split off the "@digest" part first. For an image pinned by digest, the digest ends up as the tag and "@sha256" stays in the name:
123456789012.dkr.ecr.us-east-1.amazonaws.com/web@sha256:0123... => name="web@sha256", tag="0123..."
FindImageTag and FindArtifactVersions use this, so the application version and the artifact versions shown for a v0 ECS app are wrong.
What you expected to happen:
name="web", and the digest is used as the version when the image has one. This is what the pipedv1 ECS plugin already does, and what #7633 does for v0 Kubernetes and Cloud Run.
How to reproduce it:
Call parseContainerImage with "123456789012.dkr.ecr.us-east-1.amazonaws.com/web@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef". It returns name "web@sha256" and the hex part as the tag. I checked this with a small test on master (d8de050).
Environment:
pipedversion: master (d8de050), v0 pipedcontrol-planeversion: n/a- Others: pkg/app/piped/platformprovider/ecs
I have a fix with tests ready and will open a PR.
- Lingua principale
- Go
- Stelle
- 1.4k
- Fork
- 403
- Merge medio
- 2g 9h
- PR unite (30g)
- 40
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pipe-cd/pipecd
-
kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
pipedv1 Terraform plugin fails to parse plans that invoke actionsForse già presa @abhiraj75 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Add a community meetings calendar to the websiteForse già presa @Dhirenderchoudhary l’ha presa 8 giorni fa. Apertaarea/docs community good first issue
Difficoltà 2/5 Mezza giornata Idoneità per principianti 65/100
pipe-cd/pipecd#7648 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
plugin/waitapproval: approvers list is unenforced, allowing approvals from unauthorized usersAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
pipe-cd/pipecd#7643 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
pipedv1: stopSignal handler panics on closed channel upon concurrent or duplicate signal callsForse di nuovo libera @darshpatel1052 l’ha presa 11 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pipe-cd/pipecd#7642 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di pipe-cd/pipecd
Issue simili
-
hive
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
/v1/chat/completions logprobs leave out top_logprobs when none are requestedForse già presa @Shizoqua l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
service stage:spec
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] 172.15.0.0/16 rejected as "not a private LAN address", causing "Pairing port not found"Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
bug(terraform): a `kubernetes_manifest` the scan can't fully read is dropped and nothing says soForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno