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
{{ message }}
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
Other person created a cluster and shared lokocfg file with me. When I run lokoctl cluster apply -v it fails with following error:
...
module.dns.aws_route53_record.apiserver_public: Refreshing state... [id=XXXXXXXXXXXXXX_foobar-demo-foobar.net._A]
Error: Invalid index
on ../terraform-modules/bootkube/outputs.tf line 95, in output "bootstrap-secrets_values":
95: value = var.enable_tls_bootstrap ? local_file.bootstrap-secrets[0].content :""|----------------
| local_file.bootstrap-secrets is empty tuple
The given key does not identify an element in this collection value.
Releasing state lock. This may take a few moments...
FATA[0042] Failed to reconcile cluster state: failed checking execution status: exit status 1 args="[]" command="lokoctl cluster apply"
The cluster is created with lokoctl version v0.4.1. And I can reproduce the error with 0.4.1 and current master.
The text was updated successfully, but these errors were encountered:
The solution for it is to use locals to save value of local_file.bootstrap-secrets[0].content and to use local in value = instead of local_file reference.
This happens because if you remove assets directory, len(local_file.bootstrap-secrets) will be 0 after Terraform refreshes the state.
Currently, if one has TLS bootstrap enabled and remove it's assets
directory, assuming that they use remote Terraform backend, Terraform
won't be able to evalue this output, as after refreshing,
local_file.bootstrap-secrets will be gone, as the file has been removed.
This commit moves content rendering to local variable, so module output
does not depend on local file.
Closes#1016
Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Currently, if one has TLS bootstrap enabled and remove it's assets
directory, assuming that they use remote Terraform backend, Terraform
won't be able to evalue this output, as after refreshing,
local_file.bootstrap-secrets will be gone, as the file has been removed.
This commit moves content rendering to local variable, so module output
does not depend on local file.
Closes#1016
Signed-off-by: Mateusz Gozdek <mateusz@kinvolk.io>
Other person created a cluster and shared lokocfg file with me. When I run
lokoctl cluster apply -v
it fails with following error:The cluster is created with lokoctl version
v0.4.1
. And I can reproduce the error with 0.4.1 and current master.The text was updated successfully, but these errors were encountered: