Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GCE PD CSI Driver beta support #497

Merged
merged 8 commits into from
Apr 28, 2020

Conversation

Dev25
Copy link
Contributor

@Dev25 Dev25 commented Apr 27, 2020

3.19 beta provider was released today that includes the CSI addon support

This bumps the min beta provider to 3.19, GA provider is still 3.16

Signed-off-by: Dev <Dev25@users.noreply.github.com>
Signed-off-by: Dev <Dev25@users.noreply.github.com>
@Dev25 Dev25 requested review from bharathkkb, Jberlinsky and a team as code owners April 27, 2020 19:18
Copy link
Contributor

@morgante morgante left a comment

Choose a reason for hiding this comment

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

Thanks for the speedy addition! Just a few thoughts/nits.

@@ -152,6 +152,10 @@ resource "google_container_cluster" "primary" {
dns_cache_config {
enabled = var.dns_cache
}

gce_persistent_disk_csi_driver_config {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should make this a dynamic block, as I've observed consistent issues with the behavior of addon blocks in disabled states.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, i based this on the initial DNS cache PR. Did you want me to fix that addon in this PR too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

-  cluster_gce_pd_csi_config = var.gce_pd_csi_driver ? [{ enabled = true }] : []
+  cluster_gce_pd_csi_config = var.gce_pd_csi_driver ? [{ enabled = true }] : [{ enabled = false }]

I couldn't disable this addon with the initial dynamic block approach (based on istio addon), one difference with the older addons is that newer addon config blocks (dns/csi) use enabled rather then disabled states. When trying to plan it doesn't indicate a change needs to be made when trying to flip back to disabled

I was only able to disable when forcing a dynamic block by proving a explicit [{ enabled = false }]. So the dynamic block is always going to trigger now, do you still want to keep this approach then?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, that's odd. It might indeed by driven by the defaults.

Can you try importing an existing cluster (with this disabled) using the static block approach? If import is successful, then I'm fine with using that approach.

autogen/main/outputs.tf.tmpl Outdated Show resolved Hide resolved
autogen/main/outputs.tf.tmpl Outdated Show resolved Hide resolved
Dev25 and others added 6 commits April 27, 2020 20:22
Signed-off-by: Dev <Dev25@users.noreply.github.com>
Co-Authored-By: Morgante Pell <morgante.pell@morgante.net>
Signed-off-by: Dev <Dev25@users.noreply.github.com>
Signed-off-by: Dev <Dev25@users.noreply.github.com>
Signed-off-by: Dev <Dev25@users.noreply.github.com>
Signed-off-by: Dev <Dev25@users.noreply.github.com>
@morgante morgante merged commit d96afa7 into terraform-google-modules:master Apr 28, 2020
CPL-markus pushed a commit to WALTER-GROUP/terraform-google-kubernetes-engine that referenced this pull request Jul 15, 2024
BREAKING CHANGE: Minimum provider change increased to 3.19.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants