From 33e9c030eae003b5a971ef6a85d4e7d1592726a2 Mon Sep 17 00:00:00 2001 From: James Callahan Date: Fri, 13 Jan 2023 18:23:08 +1100 Subject: [PATCH] Add org.opencontainers.image.source OCI label to containers A full list of pre-defined annotations is available at: https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys Signed-off-by: James Callahan --- hack/containers/Containerfile.acmesolver | 2 ++ hack/containers/Containerfile.cainjector | 2 ++ hack/containers/Containerfile.controller | 2 ++ hack/containers/Containerfile.ctl | 2 ++ hack/containers/Containerfile.webhook | 2 ++ 5 files changed, 10 insertions(+) diff --git a/hack/containers/Containerfile.acmesolver b/hack/containers/Containerfile.acmesolver index 8928d472d..5aad03a33 100644 --- a/hack/containers/Containerfile.acmesolver +++ b/hack/containers/Containerfile.acmesolver @@ -2,6 +2,8 @@ ARG BASE_IMAGE FROM $BASE_IMAGE +LABEL org.opencontainers.image.source="https://github.com/cert-manager/cert-manager" + USER 1000 COPY acmesolver /app/cmd/acmesolver/acmesolver diff --git a/hack/containers/Containerfile.cainjector b/hack/containers/Containerfile.cainjector index f077db9c4..af000e4d8 100644 --- a/hack/containers/Containerfile.cainjector +++ b/hack/containers/Containerfile.cainjector @@ -2,6 +2,8 @@ ARG BASE_IMAGE FROM $BASE_IMAGE +LABEL org.opencontainers.image.source="https://github.com/cert-manager/cert-manager" + USER 1000 COPY cainjector /app/cmd/cainjector/cainjector diff --git a/hack/containers/Containerfile.controller b/hack/containers/Containerfile.controller index 8dec5249d..226b47a1d 100644 --- a/hack/containers/Containerfile.controller +++ b/hack/containers/Containerfile.controller @@ -2,6 +2,8 @@ ARG BASE_IMAGE FROM $BASE_IMAGE +LABEL org.opencontainers.image.source="https://github.com/cert-manager/cert-manager" + USER 1000 COPY controller /app/cmd/controller/controller diff --git a/hack/containers/Containerfile.ctl b/hack/containers/Containerfile.ctl index f5bfe5400..a8772809a 100644 --- a/hack/containers/Containerfile.ctl +++ b/hack/containers/Containerfile.ctl @@ -2,6 +2,8 @@ ARG BASE_IMAGE FROM $BASE_IMAGE +LABEL org.opencontainers.image.source="https://github.com/cert-manager/cert-manager" + USER 1000 COPY ctl /app/cmd/ctl/ctl diff --git a/hack/containers/Containerfile.webhook b/hack/containers/Containerfile.webhook index c97a77142..a4e7a4a25 100644 --- a/hack/containers/Containerfile.webhook +++ b/hack/containers/Containerfile.webhook @@ -2,6 +2,8 @@ ARG BASE_IMAGE FROM $BASE_IMAGE +LABEL org.opencontainers.image.source="https://github.com/cert-manager/cert-manager" + USER 1000 COPY webhook /app/cmd/webhook/webhook