Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In order to allow the user to pass in a CA cert or otherwise autogenerate one, this module uses the following:
That works fine if you pass in the ca cert as a string, but not if it's dynamic. If it's dynamic you run into this: hashicorp/terraform#17421
In https://github.com/TakeScoop/kubernetes/pull/60, we're passing this in as the result of https://github.com/TakeScoop/kubernetes/blob/master/modules/ca/main.tf#L7-L25
This means that terraform can't figure out whether it should create the CA cert here at plan time and fails with an error. I've added this
create_ca
var that can be set statically to determine count. Then the actual CA cert can be passed dynamically with no problem.