-
Notifications
You must be signed in to change notification settings - Fork 34
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
Unable to update or destroy a terraform when utilizing execution_cmd. #252
Comments
Hi @jeffellin , Also, as in docs:
So kindly confirm if the permissions requirements are being met, as well. |
@vmw-vjn Here you go.
|
Is the cluster being attached, a Tanzu Kubernetes Grid cluster? FYI/FYR: @ramya-bangera |
@jeffellin - I performed the steps in my dev environment and update/destroy worked as expected. I see that via terraform you trying to attach cluster without applying the manifest. Can you elaborate on what is the UPDATE operation you tried on this resource? Also by delete did you perform |
@jeffellin - Any update on the previous comment? |
This use case is attaching a conformant cluster. I use the execution_cmd to run a remote exec command on the cluster and apply the appropriate yaml to attach the cluster. The issue I am having is if I use terraform update to change something not related to the attachment. e.g. the cluster node size I get the error. And yes delete means terraform destroy |
This is how I am onboarding the cluster, using this within the creation of the control plane node. |
@jeffellin - While we look into this, your usecase is to attach the cluster and to apply the execution_cmd on that cluster. So can you use the same resource by providing the kubeconfig so that provider takes care of attaching the cluster? Is there a specific reason why you are trying to attach without apply? |
I'm not sure I follow is there another action that can attach and apply in the same pass? I think I was working with a sample from the docs. |
Describe the bug
Reproduction steps
...
Expected behavior
rerunning terraform should not result in an error due to missing execution_cmd.
the status map that is returned when looking up the resource does not return this value after the cluster is attached.
workaround for me was to use
If this is working as designed please provide working example of attaching a cluster after provisioning it.
Additional context
No response
The text was updated successfully, but these errors were encountered: