From 62b49dc62f062b5026a3031912592e4f4ec6696f Mon Sep 17 00:00:00 2001 From: Tom Dohrmann Date: Mon, 28 Oct 2024 14:41:12 +0100 Subject: [PATCH] scripts: remove deploy-caa This script has been replaced by the node-installer. --- packages/scripts.nix | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/packages/scripts.nix b/packages/scripts.nix index 830181a100..45708f8755 100644 --- a/packages/scripts.nix +++ b/packages/scripts.nix @@ -451,46 +451,6 @@ ''; }; - deploy-caa = writeShellApplication { - name = "deploy-caa"; - runtimeInputs = with pkgs; [ kubectl ]; - text = '' - set -euo pipefail - - for i in "$@"; do - case $i in - --kustomization=*) - kustomizationFile="''${i#*=}" - shift - ;; - --workload-identity=*) - workloadIdentityFile="''${i#*=}" - shift - ;; - --pub-key=*) - pubKeyFile="''${i#*=}" - shift - ;; - *) - echo "Unknown option $i" - exit 1 - ;; - esac - done - - tmpdir=$(mktemp -d) - cp -r ${pkgs.cloud-api-adaptor.src}/src/cloud-api-adaptor/install/* "$tmpdir" - chmod -R +w "$tmpdir" - cp "$kustomizationFile" "$tmpdir/overlays/azure/kustomization.yaml" - cp "$workloadIdentityFile" "$tmpdir/overlays/azure/workload-identity.yaml" - cp "$pubKeyFile" "$tmpdir/overlays/azure/id_rsa.pub" - - kubectl apply -k "github.com/confidential-containers/operator/config/release?ref=v${pkgs.cloud-api-adaptor.version}" - kubectl apply -k "github.com/confidential-containers/operator/config/samples/ccruntime/peer-pods?ref=v${pkgs.cloud-api-adaptor.version}" - kubectl apply -k "$tmpdir/overlays/azure" - ''; - }; - cleanup-bare-metal = writeShellApplication { name = "cleanup-bare-metal"; runtimeInputs = with pkgs; [