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
0a9cdbb5
Commit
0a9cdbb5
authored
Feb 27, 2017
by
Avesh Agarwal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto-generated stuff.
parent
af537948
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
516 additions
and
0 deletions
+516
-0
BUILD
cmd/kube-apiserver/app/BUILD
+1
-0
BUILD
pkg/util/BUILD
+1
-0
BUILD
pkg/util/tolerations/BUILD
+40
-0
BUILD
plugin/BUILD
+1
-0
BUILD
plugin/pkg/admission/podtolerationrestriction/BUILD
+73
-0
BUILD
...tolerationrestriction/apis/podtolerationrestriction/BUILD
+44
-0
BUILD
...onrestriction/apis/podtolerationrestriction/install/BUILD
+34
-0
BUILD
...nrestriction/apis/podtolerationrestriction/v1alpha1/BUILD
+44
-0
zz_generated.conversion.go
...tolerationrestriction/v1alpha1/zz_generated.conversion.go
+63
-0
zz_generated.deepcopy.go
...odtolerationrestriction/v1alpha1/zz_generated.deepcopy.go
+67
-0
zz_generated.defaults.go
...odtolerationrestriction/v1alpha1/zz_generated.defaults.go
+37
-0
BUILD
...estriction/apis/podtolerationrestriction/validation/BUILD
+44
-0
zz_generated.deepcopy.go
...on/apis/podtolerationrestriction/zz_generated.deepcopy.go
+67
-0
No files found.
cmd/kube-apiserver/app/BUILD
View file @
0a9cdbb5
...
@@ -57,6 +57,7 @@ go_library(
...
@@ -57,6 +57,7 @@ go_library(
"//plugin/pkg/admission/persistentvolume/label:go_default_library",
"//plugin/pkg/admission/persistentvolume/label:go_default_library",
"//plugin/pkg/admission/podnodeselector:go_default_library",
"//plugin/pkg/admission/podnodeselector:go_default_library",
"//plugin/pkg/admission/podpreset:go_default_library",
"//plugin/pkg/admission/podpreset:go_default_library",
"//plugin/pkg/admission/podtolerationrestriction:go_default_library",
"//plugin/pkg/admission/resourcequota:go_default_library",
"//plugin/pkg/admission/resourcequota:go_default_library",
"//plugin/pkg/admission/security/podsecuritypolicy:go_default_library",
"//plugin/pkg/admission/security/podsecuritypolicy:go_default_library",
"//plugin/pkg/admission/securitycontext/scdeny:go_default_library",
"//plugin/pkg/admission/securitycontext/scdeny:go_default_library",
...
...
pkg/util/BUILD
View file @
0a9cdbb5
...
@@ -96,6 +96,7 @@ filegroup(
...
@@ -96,6 +96,7 @@ filegroup(
"//pkg/util/taints:all-srcs",
"//pkg/util/taints:all-srcs",
"//pkg/util/term:all-srcs",
"//pkg/util/term:all-srcs",
"//pkg/util/threading:all-srcs",
"//pkg/util/threading:all-srcs",
"//pkg/util/tolerations:all-srcs",
"//pkg/util/uuid:all-srcs",
"//pkg/util/uuid:all-srcs",
"//pkg/util/validation:all-srcs",
"//pkg/util/validation:all-srcs",
"//pkg/util/version:all-srcs",
"//pkg/util/version:all-srcs",
...
...
pkg/util/tolerations/BUILD
0 → 100644
View file @
0a9cdbb5
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_test",
)
go_library(
name = "go_default_library",
srcs = [
"doc.go",
"tolerations.go",
],
tags = ["automanaged"],
deps = ["//pkg/api:go_default_library"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
go_test(
name = "go_default_test",
srcs = ["tolerations_test.go"],
library = ":go_default_library",
tags = ["automanaged"],
deps = ["//pkg/api:go_default_library"],
)
plugin/BUILD
View file @
0a9cdbb5
...
@@ -30,6 +30,7 @@ filegroup(
...
@@ -30,6 +30,7 @@ filegroup(
"//plugin/pkg/admission/persistentvolume/label:all-srcs",
"//plugin/pkg/admission/persistentvolume/label:all-srcs",
"//plugin/pkg/admission/podnodeselector:all-srcs",
"//plugin/pkg/admission/podnodeselector:all-srcs",
"//plugin/pkg/admission/podpreset:all-srcs",
"//plugin/pkg/admission/podpreset:all-srcs",
"//plugin/pkg/admission/podtolerationrestriction:all-srcs",
"//plugin/pkg/admission/resourcequota:all-srcs",
"//plugin/pkg/admission/resourcequota:all-srcs",
"//plugin/pkg/admission/security:all-srcs",
"//plugin/pkg/admission/security:all-srcs",
"//plugin/pkg/admission/securitycontext/scdeny:all-srcs",
"//plugin/pkg/admission/securitycontext/scdeny:all-srcs",
...
...
plugin/pkg/admission/podtolerationrestriction/BUILD
0 → 100644
View file @
0a9cdbb5
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_test",
)
go_test(
name = "go_default_test",
srcs = ["admission_test.go"],
library = ":go_default_library",
tags = ["automanaged"],
deps = [
"//pkg/api:go_default_library",
"//pkg/client/clientset_generated/internalclientset:go_default_library",
"//pkg/client/clientset_generated/internalclientset/fake:go_default_library",
"//pkg/client/informers/informers_generated/internalversion:go_default_library",
"//pkg/kubeapiserver/admission:go_default_library",
"//pkg/util/tolerations:go_default_library",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction:go_default_library",
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
"//vendor:k8s.io/apiserver/pkg/admission",
],
)
go_library(
name = "go_default_library",
srcs = [
"admission.go",
"config.go",
],
tags = ["automanaged"],
deps = [
"//pkg/api:go_default_library",
"//pkg/api/v1:go_default_library",
"//pkg/client/clientset_generated/internalclientset:go_default_library",
"//pkg/client/informers/informers_generated/internalversion:go_default_library",
"//pkg/client/listers/core/internalversion:go_default_library",
"//pkg/kubeapiserver/admission:go_default_library",
"//pkg/util/tolerations:go_default_library",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction:go_default_library",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/install:go_default_library",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/v1alpha1:go_default_library",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/validation:go_default_library",
"//vendor:github.com/golang/glog",
"//vendor:k8s.io/apimachinery/pkg/api/errors",
"//vendor:k8s.io/apimachinery/pkg/apimachinery/announced",
"//vendor:k8s.io/apimachinery/pkg/apimachinery/registered",
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
"//vendor:k8s.io/apimachinery/pkg/runtime",
"//vendor:k8s.io/apimachinery/pkg/runtime/serializer",
"//vendor:k8s.io/apiserver/pkg/admission",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction:all-srcs",
],
tags = ["automanaged"],
)
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/BUILD
0 → 100644
View file @
0a9cdbb5
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = [
"doc.go",
"register.go",
"types.go",
"zz_generated.deepcopy.go",
],
tags = ["automanaged"],
deps = [
"//pkg/api:go_default_library",
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
"//vendor:k8s.io/apimachinery/pkg/conversion",
"//vendor:k8s.io/apimachinery/pkg/runtime",
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/install:all-srcs",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/v1alpha1:all-srcs",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/validation:all-srcs",
],
tags = ["automanaged"],
)
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/install/BUILD
0 → 100644
View file @
0a9cdbb5
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = ["install.go"],
tags = ["automanaged"],
deps = [
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction:go_default_library",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/v1alpha1:go_default_library",
"//vendor:k8s.io/apimachinery/pkg/apimachinery/announced",
"//vendor:k8s.io/apimachinery/pkg/apimachinery/registered",
"//vendor:k8s.io/apimachinery/pkg/runtime",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/v1alpha1/BUILD
0 → 100644
View file @
0a9cdbb5
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
)
go_library(
name = "go_default_library",
srcs = [
"defaults.go",
"doc.go",
"register.go",
"types.go",
"zz_generated.conversion.go",
"zz_generated.deepcopy.go",
"zz_generated.defaults.go",
],
tags = ["automanaged"],
deps = [
"//pkg/api:go_default_library",
"//pkg/api/v1:go_default_library",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction:go_default_library",
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
"//vendor:k8s.io/apimachinery/pkg/conversion",
"//vendor:k8s.io/apimachinery/pkg/runtime",
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/v1alpha1/zz_generated.conversion.go
0 → 100644
View file @
0a9cdbb5
// +build !ignore_autogenerated
/*
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.
*/
// This file was autogenerated by conversion-gen. Do not edit it manually!
package
v1alpha1
import
(
conversion
"k8s.io/apimachinery/pkg/conversion"
runtime
"k8s.io/apimachinery/pkg/runtime"
api
"k8s.io/kubernetes/pkg/api"
v1
"k8s.io/kubernetes/pkg/api/v1"
podtolerationrestriction
"k8s.io/kubernetes/plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction"
unsafe
"unsafe"
)
func
init
()
{
SchemeBuilder
.
Register
(
RegisterConversions
)
}
// RegisterConversions adds conversion functions to the given scheme.
// Public to allow building arbitrary schemes.
func
RegisterConversions
(
scheme
*
runtime
.
Scheme
)
error
{
return
scheme
.
AddGeneratedConversionFuncs
(
Convert_v1alpha1_Configuration_To_podtolerationrestriction_Configuration
,
Convert_podtolerationrestriction_Configuration_To_v1alpha1_Configuration
,
)
}
func
autoConvert_v1alpha1_Configuration_To_podtolerationrestriction_Configuration
(
in
*
Configuration
,
out
*
podtolerationrestriction
.
Configuration
,
s
conversion
.
Scope
)
error
{
out
.
Default
=
*
(
*
[]
api
.
Toleration
)(
unsafe
.
Pointer
(
&
in
.
Default
))
out
.
Whitelist
=
*
(
*
[]
api
.
Toleration
)(
unsafe
.
Pointer
(
&
in
.
Whitelist
))
return
nil
}
func
Convert_v1alpha1_Configuration_To_podtolerationrestriction_Configuration
(
in
*
Configuration
,
out
*
podtolerationrestriction
.
Configuration
,
s
conversion
.
Scope
)
error
{
return
autoConvert_v1alpha1_Configuration_To_podtolerationrestriction_Configuration
(
in
,
out
,
s
)
}
func
autoConvert_podtolerationrestriction_Configuration_To_v1alpha1_Configuration
(
in
*
podtolerationrestriction
.
Configuration
,
out
*
Configuration
,
s
conversion
.
Scope
)
error
{
out
.
Default
=
*
(
*
[]
v1
.
Toleration
)(
unsafe
.
Pointer
(
&
in
.
Default
))
out
.
Whitelist
=
*
(
*
[]
v1
.
Toleration
)(
unsafe
.
Pointer
(
&
in
.
Whitelist
))
return
nil
}
func
Convert_podtolerationrestriction_Configuration_To_v1alpha1_Configuration
(
in
*
podtolerationrestriction
.
Configuration
,
out
*
Configuration
,
s
conversion
.
Scope
)
error
{
return
autoConvert_podtolerationrestriction_Configuration_To_v1alpha1_Configuration
(
in
,
out
,
s
)
}
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/v1alpha1/zz_generated.deepcopy.go
0 → 100644
View file @
0a9cdbb5
// +build !ignore_autogenerated
/*
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.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package
v1alpha1
import
(
conversion
"k8s.io/apimachinery/pkg/conversion"
runtime
"k8s.io/apimachinery/pkg/runtime"
v1
"k8s.io/kubernetes/pkg/api/v1"
reflect
"reflect"
)
func
init
()
{
SchemeBuilder
.
Register
(
RegisterDeepCopies
)
}
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
func
RegisterDeepCopies
(
scheme
*
runtime
.
Scheme
)
error
{
return
scheme
.
AddGeneratedDeepCopyFuncs
(
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
DeepCopy_v1alpha1_Configuration
,
InType
:
reflect
.
TypeOf
(
&
Configuration
{})},
)
}
func
DeepCopy_v1alpha1_Configuration
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
{
in
:=
in
.
(
*
Configuration
)
out
:=
out
.
(
*
Configuration
)
*
out
=
*
in
if
in
.
Default
!=
nil
{
in
,
out
:=
&
in
.
Default
,
&
out
.
Default
*
out
=
make
([]
v1
.
Toleration
,
len
(
*
in
))
for
i
:=
range
*
in
{
if
err
:=
v1
.
DeepCopy_v1_Toleration
(
&
(
*
in
)[
i
],
&
(
*
out
)[
i
],
c
);
err
!=
nil
{
return
err
}
}
}
if
in
.
Whitelist
!=
nil
{
in
,
out
:=
&
in
.
Whitelist
,
&
out
.
Whitelist
*
out
=
make
([]
v1
.
Toleration
,
len
(
*
in
))
for
i
:=
range
*
in
{
if
err
:=
v1
.
DeepCopy_v1_Toleration
(
&
(
*
in
)[
i
],
&
(
*
out
)[
i
],
c
);
err
!=
nil
{
return
err
}
}
}
return
nil
}
}
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/v1alpha1/zz_generated.defaults.go
0 → 100644
View file @
0a9cdbb5
// +build !ignore_autogenerated
/*
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.
*/
// This file was autogenerated by defaulter-gen. Do not edit it manually!
package
v1alpha1
import
(
runtime
"k8s.io/apimachinery/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func
RegisterDefaults
(
scheme
*
runtime
.
Scheme
)
error
{
scheme
.
AddTypeDefaultingFunc
(
&
Configuration
{},
func
(
obj
interface
{})
{
SetObjectDefaults_Configuration
(
obj
.
(
*
Configuration
))
})
return
nil
}
func
SetObjectDefaults_Configuration
(
in
*
Configuration
)
{
SetDefaults_Configuration
(
in
)
}
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/validation/BUILD
0 → 100644
View file @
0a9cdbb5
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
load(
"@io_bazel_rules_go//go:def.bzl",
"go_library",
"go_test",
)
go_library(
name = "go_default_library",
srcs = ["validation.go"],
tags = ["automanaged"],
deps = [
"//pkg/api/validation:go_default_library",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction:go_default_library",
"//vendor:k8s.io/apimachinery/pkg/util/validation/field",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
go_test(
name = "go_default_test",
srcs = ["validation_test.go"],
library = ":go_default_library",
tags = ["automanaged"],
deps = [
"//pkg/api:go_default_library",
"//plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction:go_default_library",
],
)
plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/zz_generated.deepcopy.go
0 → 100644
View file @
0a9cdbb5
// +build !ignore_autogenerated
/*
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.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package
podtolerationrestriction
import
(
conversion
"k8s.io/apimachinery/pkg/conversion"
runtime
"k8s.io/apimachinery/pkg/runtime"
api
"k8s.io/kubernetes/pkg/api"
reflect
"reflect"
)
func
init
()
{
SchemeBuilder
.
Register
(
RegisterDeepCopies
)
}
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
func
RegisterDeepCopies
(
scheme
*
runtime
.
Scheme
)
error
{
return
scheme
.
AddGeneratedDeepCopyFuncs
(
conversion
.
GeneratedDeepCopyFunc
{
Fn
:
DeepCopy_podtolerationrestriction_Configuration
,
InType
:
reflect
.
TypeOf
(
&
Configuration
{})},
)
}
func
DeepCopy_podtolerationrestriction_Configuration
(
in
interface
{},
out
interface
{},
c
*
conversion
.
Cloner
)
error
{
{
in
:=
in
.
(
*
Configuration
)
out
:=
out
.
(
*
Configuration
)
*
out
=
*
in
if
in
.
Default
!=
nil
{
in
,
out
:=
&
in
.
Default
,
&
out
.
Default
*
out
=
make
([]
api
.
Toleration
,
len
(
*
in
))
for
i
:=
range
*
in
{
if
err
:=
api
.
DeepCopy_api_Toleration
(
&
(
*
in
)[
i
],
&
(
*
out
)[
i
],
c
);
err
!=
nil
{
return
err
}
}
}
if
in
.
Whitelist
!=
nil
{
in
,
out
:=
&
in
.
Whitelist
,
&
out
.
Whitelist
*
out
=
make
([]
api
.
Toleration
,
len
(
*
in
))
for
i
:=
range
*
in
{
if
err
:=
api
.
DeepCopy_api_Toleration
(
&
(
*
in
)[
i
],
&
(
*
out
)[
i
],
c
);
err
!=
nil
{
return
err
}
}
}
return
nil
}
}
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