Skip to content
Merged

fix #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,12 @@ output "kubeconfig" {
# Run custom script for further configuration.
resource "null_resource" "run_custom_script" {
provisioner "local-exec" {
command = "mkdir -p ~/.kube ~/.talos && terraform output -raw kubeconfig > ~/.kube/config && terraform output -raw talosconfig > ~/.talos/config && chmod 600 ~/.kube/config ~/.talos/config"
command = "mkdir -p ~/.kube && mkdir -p ~/.talos && terraform output -raw kubeconfig > ~/.kube/config && terraform output -raw talosconfig > ~/.talos/config && chmod 600 ~/.kube/config ~/.talos/config"
}
triggers = {
kubeconfig = talos_cluster_kubeconfig.kubeconfig.kubeconfig_raw
talosconfig = data.talos_client_configuration.talosconfig.talos_config
timestamp = timestamp() # Ensure the resource always detects changes
}
depends_on = [
talos_cluster_kubeconfig.kubeconfig,
Expand Down
2 changes: 1 addition & 1 deletion files.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

locals {
talos = {
version = "v1.8.0"
version = "v1.9.5"
}
}

Expand Down