Merge pull request #10232 from priyawadhwa/fix-json-output
Add JSON step for CNI to fix failing TestJSONOutput testpull/10219/head^2
commit
a4ee1e0791
|
@ -328,6 +328,7 @@ func (k *Bootstrapper) applyCNI(cfg config.ClusterConfig) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
register.Reg.SetStep(register.ConfiguringCNI)
|
||||||
out.Step(style.CNI, "Configuring {{.name}} (Container Networking Interface) ...", out.V{"name": cnm.String()})
|
out.Step(style.CNI, "Configuring {{.name}} (Container Networking Interface) ...", out.V{"name": cnm.String()})
|
||||||
|
|
||||||
if err := cnm.Apply(k.c); err != nil {
|
if err := cnm.Apply(k.c); err != nil {
|
||||||
|
|
|
@ -41,6 +41,7 @@ const (
|
||||||
PreparingKubernetesCerts RegStep = "Generating certificates"
|
PreparingKubernetesCerts RegStep = "Generating certificates"
|
||||||
PreparingKubernetesControlPlane RegStep = "Booting control plane"
|
PreparingKubernetesControlPlane RegStep = "Booting control plane"
|
||||||
PreparingKubernetesBootstrapToken RegStep = "Configuring RBAC rules"
|
PreparingKubernetesBootstrapToken RegStep = "Configuring RBAC rules"
|
||||||
|
ConfiguringCNI RegStep = "Configuring CNI"
|
||||||
VerifyingKubernetes RegStep = "Verifying Kubernetes"
|
VerifyingKubernetes RegStep = "Verifying Kubernetes"
|
||||||
EnablingAddons RegStep = "Enabling Addons"
|
EnablingAddons RegStep = "Enabling Addons"
|
||||||
Done RegStep = "Done"
|
Done RegStep = "Done"
|
||||||
|
@ -85,6 +86,7 @@ func init() {
|
||||||
PreparingKubernetesCerts,
|
PreparingKubernetesCerts,
|
||||||
PreparingKubernetesControlPlane,
|
PreparingKubernetesControlPlane,
|
||||||
PreparingKubernetesBootstrapToken,
|
PreparingKubernetesBootstrapToken,
|
||||||
|
ConfiguringCNI,
|
||||||
ConfiguringLHEnv,
|
ConfiguringLHEnv,
|
||||||
VerifyingKubernetes,
|
VerifyingKubernetes,
|
||||||
EnablingAddons,
|
EnablingAddons,
|
||||||
|
|
|
@ -122,7 +122,7 @@ func validateIncreasingCurrentSteps(ctx context.Context, t *testing.T, ces []*cl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestJSONOutputError(t *testing.T) {
|
func TestErrorJSONOutput(t *testing.T) {
|
||||||
profile := UniqueProfileName("json-output-error")
|
profile := UniqueProfileName("json-output-error")
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), Minutes(2))
|
ctx, cancel := context.WithTimeout(context.Background(), Minutes(2))
|
||||||
defer Cleanup(t, profile, cancel)
|
defer Cleanup(t, profile, cancel)
|
||||||
|
|
Loading…
Reference in New Issue