Skip to content

Commit

Permalink
scripts: use coordinator rules/settings for bare metal
Browse files Browse the repository at this point in the history
This fixes a bug where we would publish a coordinator deployment with a policy that can only be deployed in the default namespace.

Signed-off-by: Paul Meyer <[email protected]>
(cherry picked from commit a92ed86)
  • Loading branch information
katexochen authored and github-actions[bot] committed Nov 13, 2024
1 parent 5aae5df commit 12f7d12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/scripts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@
${pkgs.microsoft.genpolicy}/bin/genpolicy < "$tmpdir/coordinator_base.yml"
;;
"k3s-qemu-snp"|"k3s-qemu-tdx"|"rke2-qemu-tdx")
cp ${pkgs.kata.genpolicy.rules}/genpolicy-rules.rego rules.rego
cp ${pkgs.kata.genpolicy.settings}/genpolicy-settings.json .
cp ${pkgs.kata.genpolicy.rules-coordinator}/genpolicy-rules.rego rules.rego
cp ${pkgs.kata.genpolicy.settings-coordinator}/genpolicy-settings.json .
${pkgs.kata.genpolicy}/bin/genpolicy < "$tmpdir/coordinator_base.yml"
;;
*)
Expand Down

0 comments on commit 12f7d12

Please sign in to comment.