Skip to content

Commit

Permalink
scripts: remove deploy-caa
Browse files Browse the repository at this point in the history
This script has been replaced by the node-installer.
  • Loading branch information
Freax13 committed Oct 28, 2024
1 parent 0b210b1 commit 62b49dc
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions packages/scripts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; [
Expand Down

0 comments on commit 62b49dc

Please sign in to comment.