Skip to content

Commit

Permalink
feat(actions): use local k3sup mirror (#35)
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Palazzi <sysdadmin@m1k.cloud>
  • Loading branch information
ironashram authored Mar 18, 2024
1 parent 4c2fea8 commit 935380d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terraform-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
apt-get install openssh-client -y
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
curl -sSL https://github.com/alexellis/k3sup/releases/latest/download/k3sup > k3sup
curl -sSL https://s3.m1k.cloud/tools/k3sup > k3sup
chmod +x k3sup
mv k3sup /usr/bin/k3sup
mkdir -p ~/.kube/config-files
2 changes: 1 addition & 1 deletion .github/workflows/terraform-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
apt-get install openssh-client -y
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
curl -sSL https://github.com/alexellis/k3sup/releases/latest/download/k3sup > k3sup
curl -sSL https://s3.m1k.cloud/tools/k3sup > k3sup
chmod +x k3sup
mv k3sup /usr/bin/k3sup
mkdir -p ~/.kube/config-files
15 changes: 0 additions & 15 deletions terraform/modules/apps/calico.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,3 @@ resource "helm_release" "tigera_operator" {
command = "sleep 60"
}
}

resource "null_resource" "remove_finalizers" {
depends_on = [helm_release.tigera_operator]

provisioner "local-exec" {
when = destroy
command = <<-EOT
kubectl delete installations.operator.tigera.io default
EOT
}

triggers = {
helm_tigera = helm_release.tigera_operator.status
}
}

0 comments on commit 935380d

Please sign in to comment.