kargo icon indicating copy to clipboard operation
kargo copied to clipboard

Don't use nginx in Warehouse suggested example

Open jessesuen opened this issue 1 year ago • 0 comments

Description

nginx rewrites image tags down to the patch level, causing kargo to generate multiple freight with the same tag but different digests. This confused me.

apiVersion: v1
items:
- alias: ringed-aardwolf
  apiVersion: kargo.akuity.io/v1alpha1
  images:
  - digest: sha256:ba9587717b056e1993b051f71cea30ddd5caf09ae2087b1eeb11329f52468e49
    repoURL: nginx
    tag: 1.26.0
  kind: Freight
  metadata:
    creationTimestamp: "2024-05-06T15:41:09Z"
    generation: 1
    labels:
      kargo.akuity.io/alias: ringed-aardwolf
    name: 6aedd7fcc32253a5ea4fb1af06d8ff669dc04b34
    namespace: kargo-demo
    resourceVersion: "5898507"
    uid: 674dc4f3-b64f-45c6-8b31-3e3dc141166f
  warehouse: kargo-demo
- alias: iron-spaniel
  apiVersion: kargo.akuity.io/v1alpha1
  images:
  - digest: sha256:44c63bad1968f2dc632122a9fcb80a179f33a567445034112593c6cd4b726534
    repoURL: nginx
    tag: 1.26.0
  kind: Freight
  metadata:
    creationTimestamp: "2024-05-06T20:07:24Z"
    generation: 1
    labels:
      kargo.akuity.io/alias: iron-spaniel
    name: 7a7838fab502d9e5f0e5b4507085ea56773a3415
    namespace: kargo-demo
    resourceVersion: "5925263"
    uid: ff9532ea-da54-40b7-9872-1d26ab0886ed
  warehouse: kargo-demo
- alias: orbiting-panther
  apiVersion: kargo.akuity.io/v1alpha1
  images:
  - digest: sha256:9f31b36acd5c2726457e288a7fdb4fdc416acac738f41a7208598cd43f844385
    repoURL: nginx
    tag: 1.26.0
  kind: Freight
  metadata:
    creationTimestamp: "2024-05-06T20:57:42Z"
    generation: 1
    labels:
      kargo.akuity.io/alias: orbiting-panther
    name: 467cbd3099faa0879092f70b6d2293db6f136d68
    namespace: kargo-demo
    resourceVersion: "5930322"
    uid: 66f6a37e-6f67-4917-92e7-c4f479e1ab98
  warehouse: kargo-demo
- alias: virulent-olm
  apiVersion: kargo.akuity.io/v1alpha1
  images:
  - digest: sha256:9f0d283eccddedf25816104877faf1cb584a8236ec4d7985a4965501d080d84f
    repoURL: nginx
    tag: 1.26.0
  kind: Freight
  metadata:
    creationTimestamp: "2024-05-06T23:58:45Z"
    generation: 1
    labels:
      kargo.akuity.io/alias: virulent-olm
    name: 7108dff8f88f66318b3a1b8adb7519198d5d2cce
    namespace: kargo-demo
    resourceVersion: "5948529"
    uid: c2e705c2-996f-4618-9b6e-3cabd1cb4e00
  warehouse: kargo-demo
kind: List
metadata:
  resourceVersion: ""

Suggest we use something like ghcr.io/akuity/guestbook

Screenshots

image

Steps to Reproduce

Version

v0.6.0-rc1

Logs

Paste any relevant application logs here.

jessesuen avatar May 07 '24 01:05 jessesuen