From d8949c42b68635d2516dc9f5744056a6473d85d961f9f5a5f0eff7a34a1f7414 Mon Sep 17 00:00:00 2001 From: Ivo Petrov Date: Fri, 22 Nov 2024 10:45:09 +0200 Subject: [PATCH] Add support level templatisation --- kubectl-image/Dockerfile | 2 +- kubectl-image/_service | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kubectl-image/Dockerfile b/kubectl-image/Dockerfile index ada02a2..c4a4e5e 100644 --- a/kubectl-image/Dockerfile +++ b/kubectl-image/Dockerfile @@ -22,7 +22,7 @@ LABEL org.opencontainers.image.created="%BUILDTIME%" LABEL org.opencontainers.image.vendor="SUSE LLC" LABEL org.opensuse.reference="%%IMG_REPO%%/%%IMG_PREFIX%%kubectl:1.30.3-%RELEASE%" LABEL org.openbuildservice.disturl="%DISTURL%" -LABEL com.suse.supportlevel="l3" +LABEL com.suse.supportlevel="%%SUPPORT_LEVEL%%" LABEL com.suse.eula="SUSE Combined EULA February 2024" LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle" LABEL com.suse.image-type="application" diff --git a/kubectl-image/_service b/kubectl-image/_service index 0041dd1..c5ed22b 100644 --- a/kubectl-image/_service +++ b/kubectl-image/_service @@ -6,5 +6,7 @@ IMG_PREFIX IMG_REPO=$(rpm --macros=/root/.rpmmacros -E %img_repo) IMG_REPO + SUPPORT_LEVEL=$(rpm --macros=/root/.rpmmacros -E %support_level) + SUPPORT_LEVEL