Fix boilerplate / gofmt

This commit is contained in:
Justin Santa Barbara 2017-01-25 09:13:45 -05:00
parent 4b1307f3e4
commit 587c341dd7
4 changed files with 22 additions and 4 deletions

View File

@ -242,6 +242,7 @@ gofmt:
gofmt -w -s tests/
gofmt -w -s protokube/cmd
gofmt -w -s protokube/pkg
gofmt -w -s protokube/tests
gofmt -w -s dns-controller/cmd
gofmt -w -s dns-controller/pkg

View File

@ -40,6 +40,7 @@ k8s.io/kops/pkg/systemd
k8s.io/kops/pkg/validation
k8s.io/kops/protokube/cmd/protokube
k8s.io/kops/protokube/pkg/protokube
k8s.io/kops/protokube/tests/integration/build_etcd_manifest
k8s.io/kops/tests/integration/conversion
k8s.io/kops/upup/models
k8s.io/kops/upup/pkg/fi

View File

@ -1,3 +1,19 @@
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package protokube
import (

View File

@ -23,8 +23,8 @@ import (
"path"
"testing"
"strings"
"k8s.io/kops/protokube/pkg/protokube"
"strings"
_ "k8s.io/kubernetes/pkg/api/install"
"strconv"
@ -54,14 +54,14 @@ func runTest(t *testing.T, srcDir string) {
}
cluster.Me = &protokube.EtcdNode{
Name: "node0",
Name: "node0",
InternalName: "node0" + ".internal",
}
for i := 0; i <= 2; i++ {
node := &protokube.EtcdNode{
Name: "node" + strconv.Itoa(i),
InternalName: "node" + strconv.Itoa(i) + ".internal",
Name: "node" + strconv.Itoa(i),
InternalName: "node" + strconv.Itoa(i) + ".internal",
}
cluster.Nodes = append(cluster.Nodes, node)
}