-
Notifications
You must be signed in to change notification settings - Fork 976
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
Support for wait_for_crds
in google_gke_hub_feature
#2579
Comments
This looks like an instance of this : #1782 I'll transfer the issue to the hashicorp/terraform-provider-kubernetes repo |
Hi @brettcurtis, This is expected behavior due to how Terraform and the |
Thanks for looking. I was talking about the google_gke_hub_feature resource in the google provider. I'm asking for the feature request there if possible. Maybe we can transfer it back @SarahFrench ? When you enable MCS: resource "google_gke_hub_feature" "multi_cluster_service_discovery" {
name = "multiclusterservicediscovery"
location = "global"
project = local.global_infra.project_id
} I believe it installs some CDRs as a result (maybe they are part of multiclusteringress I have both). I was simply hoping we could wait for those to be deployed before moving forward. Also just to point out my manifest workflow runs after this workflow has completed successfully so it must take at least a couple minutes for the CRDs t be fully installed on the backend after the resource completes. The kubernetes_ingress resource has something like what I'm looking for here, wait_for_laod_balancer. |
Does this all happen within a single Terraform run? |
No, different Terraform runs. |
Thank you! When you re-run the one that executes |
Yes it does, usually less than a minute later, so it's quick. |
I think I have a theory around this looking into the logs a bit more. The So I suspect it's just an async process that looks for clusters that should have the feature and applies the CRDs. I'm going to test if a explicit dependency will help "speed up" the process. The idea being it may create the CRDs on apply and completion. EDIT I tested the explicit dep, and it didn't help. |
Community Note
Description
The plan fails when building MCS clusters and utilizing the k8s CRD:
MultiClusterService
in subsequent workflows since the CRDs are not fully installed yet.It would be nice if this was managed at the resource vs. some W/A on the customer side.
New or Affected Resource(s)
Potential Terraform Configuration
No response
References
No response
The text was updated successfully, but these errors were encountered: