You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
What happened:
I ran tarmak clusters apply --infrastructure-only on a cluster where wing was still running, my apply command waited for wing to complete.
What you expected to happen:
I expected to not have to wait for wing. I'd viewed this just as a kind of terraform only flag and expected it to complete when terraform was done.
How to reproduce it (as minimally and precisely as possible):
Use the --infrastructure-only flag on an apply operation while wing is still running.
Environment:
Kubernetes version (use kubectl version): 1.10
Tarmak: 0.5 alpha 2
In pkg/tarmak/terraform.go we have some logic that looks a bit like this:
func (t*Tarmak) CmdTerraformApply(args []string, ctx context.Context) error {
...t.cluster.Log().Info("running apply")
// run terraform apply always, do not run it when in configuration only modeif!t.flags.Cluster.Apply.ConfigurationOnly {
err:=t.terraform.Apply(t.Cluster())
}
// upload tar gz only if terraform hasn't uploaded it yetift.flags.Cluster.Apply.ConfigurationOnly {
err:=t.Cluster().UploadConfiguration()
}
// reapply config expect if we are in infrastructure onlyif!t.flags.Cluster.Apply.InfrastructureOnly {
err:=t.Cluster().ReapplyConfiguration()
}
// wait for convergance in every mode <----------- Are we sure we want this?err:=t.Cluster().WaitForConvergance()
}
I propose that when doing an InfrastructureOnly apply, we should skip waiting for convergence. Perhaps there's something I'm missing. What do people think?
The text was updated successfully, but these errors were encountered:
What happened:
I ran
tarmak clusters apply --infrastructure-only
on a cluster where wing was still running, my apply command waited for wing to complete.What you expected to happen:
I expected to not have to wait for wing. I'd viewed this just as a kind of terraform only flag and expected it to complete when terraform was done.
How to reproduce it (as minimally and precisely as possible):
Use the
--infrastructure-only
flag on an apply operation while wing is still running.Environment:
kubectl version
): 1.10In
pkg/tarmak/terraform.go
we have some logic that looks a bit like this:I propose that when doing an InfrastructureOnly apply, we should skip waiting for convergence. Perhaps there's something I'm missing. What do people think?
The text was updated successfully, but these errors were encountered: