From dadfdc65066a97330b7552c3c610b33afeafac77 Mon Sep 17 00:00:00 2001 From: Dan Lorenc Date: Sun, 25 Feb 2024 19:36:04 -0500 Subject: [PATCH] Add linkerd-network-validator package. And add a missing test to the await package. Signed-off-by: Dan Lorenc --- linkerd-await.yaml | 9 +++++++ linkerd-network-validator.yaml | 49 ++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 linkerd-network-validator.yaml diff --git a/linkerd-await.yaml b/linkerd-await.yaml index 22e0a516144..cbcd5c8301b 100644 --- a/linkerd-await.yaml +++ b/linkerd-await.yaml @@ -34,3 +34,12 @@ update: github: identifier: linkerd/linkerd-await strip-prefix: release/v + +test: + environment: + contents: + packages: + - wolfi-base + pipeline: + - runs: | + linkerd-await --version | grep ${{package.version}} diff --git a/linkerd-network-validator.yaml b/linkerd-network-validator.yaml new file mode 100644 index 00000000000..80f209f589e --- /dev/null +++ b/linkerd-network-validator.yaml @@ -0,0 +1,49 @@ +package: + name: linkerd-network-validator + version: 0.1.2 + epoch: 0 + description: "A program that validates linkerd networks" + copyright: + - license: Apache-2.0 + +environment: + contents: + packages: + - build-base + - busybox + - ca-certificates-bundle + - rust + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/linkerd/linkerd2-proxy-init + tag: validator/v${{package.version}} + expected-commit: a18218e878664829d7a4a86905d80a5c45c09a32 + + - runs: | + cd validator + cargo fetch + cargo build --frozen --release + + cd .. + mkdir -p ${{targets.destdir}}/usr/bin + mv target/release/linkerd-network-validator ${{targets.destdir}}/usr/bin + + - uses: strip + +update: + enabled: true + github: + identifier: linkerd/linkerd2-proxy-init + strip-prefix: validator/v + tag-filter: validator/v + +test: + environment: + contents: + packages: + - wolfi-base + pipeline: + - runs: | + linkerd-network-validator --version | grep ${{package.version}}