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
2193f989
Commit
2193f989
authored
Jul 12, 2018
by
hangaoshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add generated code files
parent
0875ffe1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
316 additions
and
0 deletions
+316
-0
.golint_failures
hack/.golint_failures
+1
-0
BUILD
staging/src/BUILD
+1
-0
BUILD
staging/src/k8s.io/apiserver/pkg/apis/config/BUILD
+31
-0
BUILD
staging/src/k8s.io/apiserver/pkg/apis/config/v1alpha1/BUILD
+37
-0
zz_generated.conversion.go
...erver/pkg/apis/config/v1alpha1/zz_generated.conversion.go
+97
-0
zz_generated.deepcopy.go
...iserver/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go
+61
-0
zz_generated.defaults.go
...iserver/pkg/apis/config/v1alpha1/zz_generated.defaults.go
+32
-0
zz_generated.deepcopy.go
...k8s.io/apiserver/pkg/apis/config/zz_generated.deepcopy.go
+56
-0
No files found.
hack/.golint_failures
View file @
2193f989
...
@@ -530,6 +530,7 @@ staging/src/k8s.io/apiserver/pkg/apis/audit
...
@@ -530,6 +530,7 @@ staging/src/k8s.io/apiserver/pkg/apis/audit
staging/src/k8s.io/apiserver/pkg/apis/audit/v1alpha1
staging/src/k8s.io/apiserver/pkg/apis/audit/v1alpha1
staging/src/k8s.io/apiserver/pkg/apis/audit/v1beta1
staging/src/k8s.io/apiserver/pkg/apis/audit/v1beta1
staging/src/k8s.io/apiserver/pkg/apis/audit/validation
staging/src/k8s.io/apiserver/pkg/apis/audit/validation
staging/src/k8s.io/apiserver/pkg/apis/config/v1alpha1
staging/src/k8s.io/apiserver/pkg/apis/example
staging/src/k8s.io/apiserver/pkg/apis/example
staging/src/k8s.io/apiserver/pkg/apis/example/v1
staging/src/k8s.io/apiserver/pkg/apis/example/v1
staging/src/k8s.io/apiserver/pkg/apis/example2
staging/src/k8s.io/apiserver/pkg/apis/example2
...
...
staging/src/BUILD
View file @
2193f989
...
@@ -68,6 +68,7 @@ filegroup(
...
@@ -68,6 +68,7 @@ filegroup(
"//staging/src/k8s.io/apiserver/pkg/admission:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/admission:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/apis/apiserver:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/apis/apiserver:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/apis/audit:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/apis/audit:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/apis/config:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/apis/example:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/apis/example:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/apis/example2:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/apis/example2:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/audit:all-srcs",
"//staging/src/k8s.io/apiserver/pkg/audit:all-srcs",
...
...
staging/src/k8s.io/apiserver/pkg/apis/config/BUILD
0 → 100644
View file @
2193f989
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"doc.go",
"types.go",
"zz_generated.deepcopy.go",
],
importmap = "k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/apis/config",
importpath = "k8s.io/apiserver/pkg/apis/config",
visibility = ["//visibility:public"],
deps = ["//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//staging/src/k8s.io/apiserver/pkg/apis/config/v1alpha1:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
staging/src/k8s.io/apiserver/pkg/apis/config/v1alpha1/BUILD
0 → 100644
View file @
2193f989
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",
],
importmap = "k8s.io/kubernetes/vendor/k8s.io/apiserver/pkg/apis/config/v1alpha1",
importpath = "k8s.io/apiserver/pkg/apis/config/v1alpha1",
visibility = ["//visibility:public"],
deps = [
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//staging/src/k8s.io/apiserver/pkg/apis/config:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
staging/src/k8s.io/apiserver/pkg/apis/config/v1alpha1/zz_generated.conversion.go
0 → 100644
View file @
2193f989
// +build !ignore_autogenerated
/*
Copyright 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.
*/
// Code generated by conversion-gen. DO NOT EDIT.
package
v1alpha1
import
(
v1
"k8s.io/apimachinery/pkg/apis/meta/v1"
conversion
"k8s.io/apimachinery/pkg/conversion"
runtime
"k8s.io/apimachinery/pkg/runtime"
config
"k8s.io/apiserver/pkg/apis/config"
)
func
init
()
{
localSchemeBuilder
.
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_DebuggingConfiguration_To_config_DebuggingConfiguration
,
Convert_config_DebuggingConfiguration_To_v1alpha1_DebuggingConfiguration
,
Convert_v1alpha1_LeaderElectionConfiguration_To_config_LeaderElectionConfiguration
,
Convert_config_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration
,
)
}
func
autoConvert_v1alpha1_DebuggingConfiguration_To_config_DebuggingConfiguration
(
in
*
DebuggingConfiguration
,
out
*
config
.
DebuggingConfiguration
,
s
conversion
.
Scope
)
error
{
out
.
EnableProfiling
=
in
.
EnableProfiling
out
.
EnableContentionProfiling
=
in
.
EnableContentionProfiling
return
nil
}
// Convert_v1alpha1_DebuggingConfiguration_To_config_DebuggingConfiguration is an autogenerated conversion function.
func
Convert_v1alpha1_DebuggingConfiguration_To_config_DebuggingConfiguration
(
in
*
DebuggingConfiguration
,
out
*
config
.
DebuggingConfiguration
,
s
conversion
.
Scope
)
error
{
return
autoConvert_v1alpha1_DebuggingConfiguration_To_config_DebuggingConfiguration
(
in
,
out
,
s
)
}
func
autoConvert_config_DebuggingConfiguration_To_v1alpha1_DebuggingConfiguration
(
in
*
config
.
DebuggingConfiguration
,
out
*
DebuggingConfiguration
,
s
conversion
.
Scope
)
error
{
out
.
EnableProfiling
=
in
.
EnableProfiling
out
.
EnableContentionProfiling
=
in
.
EnableContentionProfiling
return
nil
}
// Convert_config_DebuggingConfiguration_To_v1alpha1_DebuggingConfiguration is an autogenerated conversion function.
func
Convert_config_DebuggingConfiguration_To_v1alpha1_DebuggingConfiguration
(
in
*
config
.
DebuggingConfiguration
,
out
*
DebuggingConfiguration
,
s
conversion
.
Scope
)
error
{
return
autoConvert_config_DebuggingConfiguration_To_v1alpha1_DebuggingConfiguration
(
in
,
out
,
s
)
}
func
autoConvert_v1alpha1_LeaderElectionConfiguration_To_config_LeaderElectionConfiguration
(
in
*
LeaderElectionConfiguration
,
out
*
config
.
LeaderElectionConfiguration
,
s
conversion
.
Scope
)
error
{
if
err
:=
v1
.
Convert_Pointer_bool_To_bool
(
&
in
.
LeaderElect
,
&
out
.
LeaderElect
,
s
);
err
!=
nil
{
return
err
}
out
.
LeaseDuration
=
in
.
LeaseDuration
out
.
RenewDeadline
=
in
.
RenewDeadline
out
.
RetryPeriod
=
in
.
RetryPeriod
out
.
ResourceLock
=
in
.
ResourceLock
return
nil
}
// Convert_v1alpha1_LeaderElectionConfiguration_To_config_LeaderElectionConfiguration is an autogenerated conversion function.
func
Convert_v1alpha1_LeaderElectionConfiguration_To_config_LeaderElectionConfiguration
(
in
*
LeaderElectionConfiguration
,
out
*
config
.
LeaderElectionConfiguration
,
s
conversion
.
Scope
)
error
{
return
autoConvert_v1alpha1_LeaderElectionConfiguration_To_config_LeaderElectionConfiguration
(
in
,
out
,
s
)
}
func
autoConvert_config_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration
(
in
*
config
.
LeaderElectionConfiguration
,
out
*
LeaderElectionConfiguration
,
s
conversion
.
Scope
)
error
{
if
err
:=
v1
.
Convert_bool_To_Pointer_bool
(
&
in
.
LeaderElect
,
&
out
.
LeaderElect
,
s
);
err
!=
nil
{
return
err
}
out
.
LeaseDuration
=
in
.
LeaseDuration
out
.
RenewDeadline
=
in
.
RenewDeadline
out
.
RetryPeriod
=
in
.
RetryPeriod
out
.
ResourceLock
=
in
.
ResourceLock
return
nil
}
// Convert_config_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration is an autogenerated conversion function.
func
Convert_config_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration
(
in
*
config
.
LeaderElectionConfiguration
,
out
*
LeaderElectionConfiguration
,
s
conversion
.
Scope
)
error
{
return
autoConvert_config_LeaderElectionConfiguration_To_v1alpha1_LeaderElectionConfiguration
(
in
,
out
,
s
)
}
staging/src/k8s.io/apiserver/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go
0 → 100644
View file @
2193f989
// +build !ignore_autogenerated
/*
Copyright 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.
*/
// Code generated by deepcopy-gen. DO NOT EDIT.
package
v1alpha1
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
DebuggingConfiguration
)
DeepCopyInto
(
out
*
DebuggingConfiguration
)
{
*
out
=
*
in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebuggingConfiguration.
func
(
in
*
DebuggingConfiguration
)
DeepCopy
()
*
DebuggingConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
DebuggingConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
LeaderElectionConfiguration
)
DeepCopyInto
(
out
*
LeaderElectionConfiguration
)
{
*
out
=
*
in
if
in
.
LeaderElect
!=
nil
{
in
,
out
:=
&
in
.
LeaderElect
,
&
out
.
LeaderElect
*
out
=
new
(
bool
)
**
out
=
**
in
}
out
.
LeaseDuration
=
in
.
LeaseDuration
out
.
RenewDeadline
=
in
.
RenewDeadline
out
.
RetryPeriod
=
in
.
RetryPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionConfiguration.
func
(
in
*
LeaderElectionConfiguration
)
DeepCopy
()
*
LeaderElectionConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
LeaderElectionConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
staging/src/k8s.io/apiserver/pkg/apis/config/v1alpha1/zz_generated.defaults.go
0 → 100644
View file @
2193f989
// +build !ignore_autogenerated
/*
Copyright 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.
*/
// Code generated by defaulter-gen. DO NOT EDIT.
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
{
return
nil
}
staging/src/k8s.io/apiserver/pkg/apis/config/zz_generated.deepcopy.go
0 → 100644
View file @
2193f989
// +build !ignore_autogenerated
/*
Copyright 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.
*/
// Code generated by deepcopy-gen. DO NOT EDIT.
package
config
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
DebuggingConfiguration
)
DeepCopyInto
(
out
*
DebuggingConfiguration
)
{
*
out
=
*
in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DebuggingConfiguration.
func
(
in
*
DebuggingConfiguration
)
DeepCopy
()
*
DebuggingConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
DebuggingConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func
(
in
*
LeaderElectionConfiguration
)
DeepCopyInto
(
out
*
LeaderElectionConfiguration
)
{
*
out
=
*
in
out
.
LeaseDuration
=
in
.
LeaseDuration
out
.
RenewDeadline
=
in
.
RenewDeadline
out
.
RetryPeriod
=
in
.
RetryPeriod
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionConfiguration.
func
(
in
*
LeaderElectionConfiguration
)
DeepCopy
()
*
LeaderElectionConfiguration
{
if
in
==
nil
{
return
nil
}
out
:=
new
(
LeaderElectionConfiguration
)
in
.
DeepCopyInto
(
out
)
return
out
}
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