Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

bootkube: feed output using local rather than local_file content #1021

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

invidian
Copy link
Member

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

@invidian invidian requested a review from surajssd September 28, 2020 10:09
@invidian
Copy link
Member Author

Hm, it seems this also causes some CI pipelines to fail, like https://yard.lokomotive-k8s.net/builds/35682.

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>
@surajssd
Copy link
Member

Have you tested manually that configs are downloaded without error over the s3 backend?

@invidian
Copy link
Member Author

Have you tested manually that configs are downloaded without error over the s3 backend?

Nope, will test.

@invidian
Copy link
Member Author

Nope, will test.

I tested by making a copy of Terraform state file, removing entire assets directory and then copying back Terraform state file. Everything seems to work fine.

Copy link
Member

@surajssd surajssd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@invidian invidian merged commit 1ae5de9 into master Oct 1, 2020
@invidian invidian deleted the invidian/fix-assets branch October 1, 2020 07:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lokoctl cluster apply fails using S3 backend
2 participants