Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3cde2613
Commit
3cde2613
authored
Jan 09, 2018
by
Bowei Du
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lint and bazel
parent
8cdfe362
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
update-cloudprovider-gce.sh
hack/update-cloudprovider-gce.sh
+2
-0
verify-cloudprovider-gce.sh
hack/verify-cloudprovider-gce.sh
+0
-1
BUILD
pkg/cloudprovider/providers/gce/cloud/gen/BUILD
+1
-4
main.go
pkg/cloudprovider/providers/gce/cloud/gen/main.go
+1
-1
No files found.
hack/update-cloudprovider-gce.sh
View file @
3cde2613
#!/bin/bash
#!/bin/bash
# Copyright 2018 The Kubernetes Authors.
# Copyright 2018 The Kubernetes Authors.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
...
@@ -12,6 +13,7 @@
...
@@ -12,6 +13,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
set
-o
errexit
set
-o
errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
...
...
hack/verify-cloudprovider-gce.sh
View file @
3cde2613
#!/bin/bash
#!/bin/bash
#!/bin/bash
# Copyright 2018 The Kubernetes Authors.
# Copyright 2018 The Kubernetes Authors.
#
#
...
...
pkg/cloudprovider/providers/gce/cloud/gen/BUILD
View file @
3cde2613
...
@@ -5,10 +5,7 @@ go_library(
...
@@ -5,10 +5,7 @@ go_library(
srcs = ["main.go"],
srcs = ["main.go"],
importpath = "k8s.io/kubernetes/pkg/cloudprovider/providers/gce/cloud/gen",
importpath = "k8s.io/kubernetes/pkg/cloudprovider/providers/gce/cloud/gen",
visibility = ["//visibility:private"],
visibility = ["//visibility:private"],
deps = [
deps = ["//pkg/cloudprovider/providers/gce/cloud/meta:go_default_library"],
"//pkg/cloudprovider/providers/gce/cloud/meta:go_default_library",
"//vendor/github.com/golang/glog:go_default_library",
],
)
)
go_binary(
go_binary(
...
...
pkg/cloudprovider/providers/gce/cloud/gen/main.go
View file @
3cde2613
...
@@ -1113,7 +1113,7 @@ func Test{{.Service}}Group(t *testing.T) {
...
@@ -1113,7 +1113,7 @@ func Test{{.Service}}Group(t *testing.T) {
tmpl
:=
template
.
Must
(
template
.
New
(
"unittest"
)
.
Parse
(
text
))
tmpl
:=
template
.
Must
(
template
.
New
(
"unittest"
)
.
Parse
(
text
))
// Sort keys so the output will be stable.
// Sort keys so the output will be stable.
var
keys
[]
string
var
keys
[]
string
for
k
,
_
:=
range
meta
.
AllServicesByGroup
{
for
k
:=
range
meta
.
AllServicesByGroup
{
keys
=
append
(
keys
,
k
)
keys
=
append
(
keys
,
k
)
}
}
sort
.
Strings
(
keys
)
sort
.
Strings
(
keys
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment