reformat code

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2019-09-03 17:42:08 +08:00
parent b1af2fd92b
commit 560845af6c
3 changed files with 1 additions and 3 deletions

View File

@@ -42,7 +42,6 @@ func init() {
func main() { func main() {
flag.Parse() flag.Parse()
cfg, err := k8s.Config() cfg, err := k8s.Config()
if err != nil { if err != nil {
klog.Error(err, "failed to build kubeconfig") klog.Error(err, "failed to build kubeconfig")

View File

@@ -21,7 +21,6 @@ import (
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
) )
// AddToSchemes may be used to add all resources defined in the project to a Scheme // AddToSchemes may be used to add all resources defined in the project to a Scheme
var AddToSchemes runtime.SchemeBuilder var AddToSchemes runtime.SchemeBuilder

View File

@@ -630,7 +630,7 @@ The last one is encrypted info, such as the password of the username-password ty
Doc("Download S2iBinary file"). Doc("Download S2iBinary file").
Param(webservice.PathParameter("namespace", "the name of namespaces")). Param(webservice.PathParameter("namespace", "the name of namespaces")).
Param(webservice.PathParameter("s2ibinary", "the name of s2ibinary")). Param(webservice.PathParameter("s2ibinary", "the name of s2ibinary")).
Param(webservice.PathParameter("file","the name of binary file")). Param(webservice.PathParameter("file", "the name of binary file")).
Returns(http.StatusOK, RespOK, nil)) Returns(http.StatusOK, RespOK, nil))
// TODO are not used in this version. will be added in 2.1.0 // TODO are not used in this version. will be added in 2.1.0