diff --git a/cmd/controller-manager/controller-manager.go b/cmd/controller-manager/controller-manager.go index 55c49aea7..bc61811ae 100644 --- a/cmd/controller-manager/controller-manager.go +++ b/cmd/controller-manager/controller-manager.go @@ -42,7 +42,6 @@ func init() { func main() { flag.Parse() - cfg, err := k8s.Config() if err != nil { klog.Error(err, "failed to build kubeconfig") diff --git a/pkg/apis/apis.go b/pkg/apis/apis.go index 8635881df..c7919b499 100644 --- a/pkg/apis/apis.go +++ b/pkg/apis/apis.go @@ -21,7 +21,6 @@ import ( "k8s.io/apimachinery/pkg/runtime" ) - // AddToSchemes may be used to add all resources defined in the project to a Scheme var AddToSchemes runtime.SchemeBuilder diff --git a/pkg/apis/devops/v1alpha2/register.go b/pkg/apis/devops/v1alpha2/register.go index 24109d44b..2dcc80c83 100644 --- a/pkg/apis/devops/v1alpha2/register.go +++ b/pkg/apis/devops/v1alpha2/register.go @@ -630,7 +630,7 @@ The last one is encrypted info, such as the password of the username-password ty Doc("Download S2iBinary file"). Param(webservice.PathParameter("namespace", "the name of namespaces")). 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)) // TODO are not used in this version. will be added in 2.1.0