From b2588b378a409fd5bbff20eab43f1d309463c69b Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Wed, 6 Nov 2024 14:52:28 +0000 Subject: [PATCH] Add 1.11.3 image We're adding a new rockcraft definition for the 1.11.3 coredns version. --- rockcraft.yaml => 1.11.1/rockcraft.yaml | 0 1.11.3/rockcraft.yaml | 37 +++++++++++++++++++++++++ tests/sanity/test_rock.py | 2 +- 3 files changed, 38 insertions(+), 1 deletion(-) rename rockcraft.yaml => 1.11.1/rockcraft.yaml (100%) create mode 100644 1.11.3/rockcraft.yaml diff --git a/rockcraft.yaml b/1.11.1/rockcraft.yaml similarity index 100% rename from rockcraft.yaml rename to 1.11.1/rockcraft.yaml diff --git a/1.11.3/rockcraft.yaml b/1.11.3/rockcraft.yaml new file mode 100644 index 0000000..1d6bbb7 --- /dev/null +++ b/1.11.3/rockcraft.yaml @@ -0,0 +1,37 @@ +name: coredns +summary: ROCK for the CoreDNS Project. +description: This ROCK is a drop in replacement for the coredns/coredns image. +version: "1.11.3" +license: Apache-2.0 + +base: bare +build-base: ubuntu@22.04 +platforms: + amd64: + arm64: + +entrypoint-service: coredns +services: + coredns: + override: replace + summary: "coredns service" + startup: enabled + command: "/coredns [ -conf /etc/coredns/Corefile ]" + on-failure: shutdown + +parts: + coredns: + plugin: nil + source: https://github.com/coredns/coredns + source-type: git + source-tag: v1.11.3 + source-depth: 1 + build-packages: + - build-essential + build-snaps: + - go/1.21/stable + stage-packages: + - ca-certificates_data + override-build: | + make + cp $CRAFT_PART_BUILD/coredns $CRAFT_PRIME diff --git a/tests/sanity/test_rock.py b/tests/sanity/test_rock.py index 3f5890d..4defa55 100644 --- a/tests/sanity/test_rock.py +++ b/tests/sanity/test_rock.py @@ -6,7 +6,7 @@ from k8s_test_harness.util import docker_util, env_util -@pytest.mark.parametrize("image_version", ["1.11.1"]) +@pytest.mark.parametrize("image_version", ["1.11.1", "1.11.3"]) def test_sanity(image_version): rock = env_util.get_build_meta_info_for_rock_version( "coredns", image_version, "amd64"