-
Notifications
You must be signed in to change notification settings - Fork 986
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
kubernetes_manifest does not respect provider dependencies #1732
Comments
This was working with version |
Using the config below, I also see the error with the kubernetes_manifest resource: Terraform: 1.1.7 |
I don't know why this is not been taken care till now. its very basic dependency management which terraform is good at. its a blocker for our infra automation. please fix this as soon as possible. Thanks. |
Hi folks, Could you please provider "kubernetes" {
...
exec {
api_version = "client.authentication.k8s.io/v1beta1"
...
}
} Please let me know if that works. Thank you. |
we don't use exec block. we use token directly as shown below (in terraform cloud)
|
@arybolovlev That doesn't fix it. |
Creating the cluster and |
@alexsomesan maybe you can elaborate about that "need". it would be very useful to enable |
@alexsomesan I'm not sure why this ticket is closed, the provider should respect the dependencies, it fails even when the cluster exists. |
Terraform Version, Provider Version and Kubernetes Version
Terraform Configuration Files
as an example, the provider is instantiated with values after the cluster gets created. Thus, the kubernetes_manifest resource should not attempt to contact the cluster until the cluster is created.
Affected Resource(s)
Steps to Reproduce
Expected Behavior
The provider should recognize that it needs to wait until the cluster is created before trying to check if the
kubernetes_manifest
works.Actual Behavior
On the plan (zero resources exist pre-plan)
Important Factoids
This only occurs when a cloud-based k8s cluster is being created on the same run as a
kubernets_manifest
is applied to the cluster.References
Community Note
The text was updated successfully, but these errors were encountered: