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
ff4a814c
Commit
ff4a814c
authored
Apr 28, 2017
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate set generation to go genrule
and move ./types to staging
parent
91475306
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
72 additions
and
7 deletions
+72
-7
.linted_packages
hack/.linted_packages
+1
-0
BUILD
pkg/util/sets/types/BUILD
+1
-1
doc.go
pkg/util/sets/types/doc.go
+21
-0
BUILD
staging/src/k8s.io/apimachinery/pkg/util/sets/BUILD
+35
-6
BUILD
staging/src/k8s.io/apimachinery/pkg/util/sets/types/BUILD
+14
-0
types.go
staging/src/k8s.io/apimachinery/pkg/util/sets/types/types.go
+0
-0
No files found.
hack/.linted_packages
View file @
ff4a814c
...
@@ -254,6 +254,7 @@ pkg/util/netsh
...
@@ -254,6 +254,7 @@ pkg/util/netsh
pkg/util/rand
pkg/util/rand
pkg/util/runtime
pkg/util/runtime
pkg/util/sets
pkg/util/sets
pkg/util/sets/types
pkg/util/tail
pkg/util/tail
pkg/util/validation
pkg/util/validation
pkg/util/validation/field
pkg/util/validation/field
...
...
pkg/util/sets/types/BUILD
View file @
ff4a814c
...
@@ -9,7 +9,7 @@ load(
...
@@ -9,7 +9,7 @@ load(
go_library(
go_library(
name = "go_default_library",
name = "go_default_library",
srcs = ["
types
.go"],
srcs = ["
doc
.go"],
tags = ["automanaged"],
tags = ["automanaged"],
)
)
...
...
pkg/util/sets/types/doc.go
0 → 100644
View file @
ff4a814c
/*
Copyright 2017 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 sets only exists until heapster rebases
// TODO genericapiserver remove this empty package. Godep fails without this because heapster relies
// on this package. This will allow us to start splitting packages, but will force
// heapster to update on their next kube rebase.
package
sets
staging/src/k8s.io/apimachinery/pkg/util/sets/BUILD
View file @
ff4a814c
...
@@ -2,22 +2,32 @@ package(default_visibility = ["//visibility:public"])
...
@@ -2,22 +2,32 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"])
licenses(["notice"])
load("@io_kubernetes_build//defs:go.bzl", "go_genrule")
load(
load(
"@io_bazel_rules_go//go:def.bzl",
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_library",
"go_test",
"go_test",
)
)
go_test(
go_library(
name = "go_default_test",
name = "go_default_library",
srcs = ["set_test.go"],
srcs = [
library = ":go_default_library",
"byte.go",
"doc.go",
"empty.go",
"int.go",
"int64.go",
"string.go",
],
tags = ["automanaged"],
tags = ["automanaged"],
)
)
go_
library
(
go_
genrule
(
name = "
go_default_library
",
name = "
set-gen
",
srcs = [
srcs = [
"//hack/boilerplate:boilerplate.go.txt",
],
outs = [
"byte.go",
"byte.go",
"doc.go",
"doc.go",
"empty.go",
"empty.go",
...
@@ -25,5 +35,24 @@ go_library(
...
@@ -25,5 +35,24 @@ go_library(
"int64.go",
"int64.go",
"string.go",
"string.go",
],
],
cmd = """
$(location //cmd/libs/go2idl/set-gen) \
--input-dirs ./vendor/k8s.io/apimachinery/pkg/util/sets/types \
--output-base $(GENDIR)/vendor/k8s.io/apimachinery/pkg/util \
--go-header-file $(location //hack/boilerplate:boilerplate.go.txt) \
--output-package sets
""",
go_deps = [
"//vendor/k8s.io/apimachinery/pkg/util/sets/types:go_default_library",
],
tools = [
"//cmd/libs/go2idl/set-gen",
],
)
go_test(
name = "go_default_test",
srcs = ["set_test.go"],
library = ":go_default_library",
tags = ["automanaged"],
tags = ["automanaged"],
)
)
staging/src/k8s.io/apimachinery/pkg/util/sets/types/BUILD
0 → 100644
View file @
ff4a814c
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = ["types.go"],
tags = ["automanaged"],
)
pkg/util/sets/types/types.go
→
staging/src/k8s.io/apimachinery/
pkg/util/sets/types/types.go
View file @
ff4a814c
File moved
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