Closed dlespiau closed 6 years ago
At the moment we have code like:
_, err = kubectl.ExecuteCommand( append([]string{ "create", "secret", "generic", "weave-cloud", fmt.Sprintf("--from-literal=token=%s", token), "--namespace=weave", }, otherArgs...), )
It'd be more readable as CreateSecret(...) or Create("secret" , "generic", "weave-cloud", ...)
CreateSecret(...)
Create("secret" , "generic", "weave-cloud", ...)
At the moment we have code like:
It'd be more readable as
CreateSecret(...)
orCreate("secret" , "generic", "weave-cloud", ...)