You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried using the snippet in the Examples section about "Backup and restore a cluster". But when executing a terraform apply -auto-approve, it shows an error at the end.
module.kube-hetzner.null_resource.agent_config["0-0-agent-nbg1-1"]: Creation complete after 3s [id=...]
╷
│ Error: remote-exec provisioner error
│
│ with module.kube-hetzner.null_resource.first_control_plane,
│ on .terraform/modules/kube-hetzner/init.tf line 70, in resource "null_resource""first_control_plane":
│ 70: provisioner "remote-exec" {
│
│ invalid empty string in'scripts'
I have not provided the etcd_snapshot_name, and looking at the code, it should not be needed if I do not want to perform a restore. But seems that it cannot handle empty string values in the list of the postinstall_exec command.
If I use compact to strip empty strings it seems to work.
Please let me know if I was using it (in)correctly. If so, maybe the docs can be updated to fix this minor inconvenience (I'm willing to create the PR).
p.s.
I'm new to the world of Terraform with only basic knowledge of Kubernetes. 🙂
The text was updated successfully, but these errors were encountered:
Problem
I've tried using the snippet in the Examples section about "Backup and restore a cluster". But when executing a
terraform apply -auto-approve
, it shows an error at the end.I have not provided the
etcd_snapshot_name
, and looking at the code, it should not be needed if I do not want to perform a restore. But seems that it cannot handle empty string values in the list of thepostinstall_exec
command.If I use
compact
to strip empty strings it seems to work.Please let me know if I was using it (in)correctly. If so, maybe the docs can be updated to fix this minor inconvenience (I'm willing to create the PR).
p.s.
I'm new to the world of Terraform with only basic knowledge of Kubernetes. 🙂
The text was updated successfully, but these errors were encountered: