From 0bdb16d1100b98f1db634d57b6af0da526df7a13 Mon Sep 17 00:00:00 2001 From: Markus Rudy Date: Fri, 3 May 2024 16:09:05 +0200 Subject: [PATCH] release: expose coordinator and demo --- .github/workflows/release.yml | 2 +- packages/scripts.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 942f8bc9a9..8a6c8c1061 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -231,7 +231,7 @@ jobs: mkdir -p workspace nix run .#scripts.write-coordinator-yaml -- "${coordinatorImgTagged}" > workspace/coordinator.yml nix shell .#contrast --command resourcegen --namespace kube-system --image-replacements ./image-replacements.txt runtime > workspace/runtime.yml - nix shell .#contrast --command resourcegen --image-replacements ./image-replacements.txt emojivoto > deployment/emojivoto-demo.yml + nix shell .#contrast --command resourcegen --image-replacements ./image-replacements.txt --add-load-balancers emojivoto > deployment/emojivoto-demo.yml zip -r deployment/emojivoto-demo.zip deployment/emojivoto-demo.yml - name: Update coordinator policy hash run: | diff --git a/packages/scripts.nix b/packages/scripts.nix index 0482306621..6016396f04 100644 --- a/packages/scripts.nix +++ b/packages/scripts.nix @@ -200,12 +200,12 @@ with pkgs; trap 'rm -rf $tmpdir' EXIT echo "ghcr.io/edgelesssys/contrast/coordinator:latest=$imageRef" > "$tmpdir/image-replacements.txt" - resourcegen --image-replacements "$tmpdir/image-replacements.txt" coordinator-release > "$tmpdir/coordinator_base.yml" + resourcegen --image-replacements "$tmpdir/image-replacements.txt" --add-load-balancers coordinator-release > "$tmpdir/coordinator_base.yml" pushd "$tmpdir" >/dev/null cp ${genpolicy-msft.rules-coordinator}/genpolicy-rules.rego rules.rego cp ${genpolicy-msft.settings}/genpolicy-settings.json . - genpolicy < "$tmpdir/coordinator.yml" + genpolicy < "$tmpdir/coordinator_base.yml" popd >/dev/null ''; };