-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
google_container_cluster: with enable_autopilot does not allow configuring gcp_filestore_csi_driver_config #17215
google_container_cluster: with enable_autopilot does not allow configuring gcp_filestore_csi_driver_config #17215
Comments
@terlar the error you received appear to be that addons is not supported by the autopilot. Take a look at the comparison for the autopilot, you might see what are supported. This behavior is dictated by the api. There is not we can do at the provider level. Where did you see it should be as what you stated in |
Thank you for the link. The addon is pre-configured, but can optionally be disabled: I guess it is the same thing as with mesh certificates (cannot be enabled during creation). Filestore CSI driver cannot be disabled during creation. But it is possible to disable the addon either via GCloud CLI and the Google Cloud Console. I saw this in the linked documentation as well as in the Google Cloud Console on my own autopilot clusters (screenshot posted earlier). I can add the addon for backup during creation, so addons is not completely off limits:
|
Yes, need to bring the behavior up to the same as other tools |
were you able to use TF to disable the addon on an existing cluster? On create time it's not possible to turn it off. |
This is an intended behavior in AP cluster, gcp_filestore_csi_driver_config will always be enabled. We only allow customers to turn it on or off for standard clusters. |
As you can see from my screenshot and earlier message that is not true. I do have autopilot clusters and I can disable filestore CSI driver both via Whether this ability is a bug or feature I leave up to you. @leiyiz Yes, by using the gcloud module and have it depend on the cluster resource. It is not possible via the google_container_cluster resource as it explicitly don't allow it. |
It is allowed to create an Autopilot cluster directly through the API with Request body{
"projectId": "x",
"cluster": {
"addonsConfig": {
"gcpFilestoreCsiDriverConfig": {
"enabled": false
}
},
"name": "fromapi",
"autopilot": {
"enabled": true
}
}
} There is also google documentation confirming that you can disable it, although it is not recommended. Allowing this configuration for Autopilot clusters would save time when creating new clusters, especially since it's permitted through the API:
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
to expedite investigation and resolution of this issue.
Terraform Version
v1.6.0
Affected Resource(s)
google_container_cluster
Terraform Configuration
or
Debug Output
No response
Expected Behavior
It should allow disabling or setting the
gcp_filestore_csi_driver_config
. Just like you can do via a cluster update via the CLI and/or the interface:Right now I have to work around this via
terraform-google-modules/gcloud/google
and the update takes 30 minutes+ while the creation of the cluster just takes 8 minutes.Actual Behavior
"addons_config.0.gcp_filestore_csi_driver_config": conflicts with enable_autopilot
Is this due to creation of clusters not allowing doing this? But updates allow it.
Steps to reproduce
terraform apply
Important Factoids
No response
References
No response
b/324558621
The text was updated successfully, but these errors were encountered: