mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
add auto-generated files: ./hack/update-codegen.sh
Signed-off-by: Itamar Holder <iholder@redhat.com>
This commit is contained in:
parent
a53a517022
commit
4bdaf6cbbd
32
pkg/apis/core/v1/zz_generated.conversion.go
generated
32
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -1162,6 +1162,16 @@ func RegisterConversions(s *runtime.Scheme) error {
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*corev1.NodeSwapStatus)(nil), (*core.NodeSwapStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_v1_NodeSwapStatus_To_core_NodeSwapStatus(a.(*corev1.NodeSwapStatus), b.(*core.NodeSwapStatus), scope)
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*core.NodeSwapStatus)(nil), (*corev1.NodeSwapStatus)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_core_NodeSwapStatus_To_v1_NodeSwapStatus(a.(*core.NodeSwapStatus), b.(*corev1.NodeSwapStatus), scope)
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := s.AddGeneratedConversionFunc((*corev1.NodeSystemInfo)(nil), (*core.NodeSystemInfo)(nil), func(a, b interface{}, scope conversion.Scope) error {
|
||||
return Convert_v1_NodeSystemInfo_To_core_NodeSystemInfo(a.(*corev1.NodeSystemInfo), b.(*core.NodeSystemInfo), scope)
|
||||
}); err != nil {
|
||||
@ -5419,6 +5429,26 @@ func Convert_core_NodeStatus_To_v1_NodeStatus(in *core.NodeStatus, out *corev1.N
|
||||
return autoConvert_core_NodeStatus_To_v1_NodeStatus(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_NodeSwapStatus_To_core_NodeSwapStatus(in *corev1.NodeSwapStatus, out *core.NodeSwapStatus, s conversion.Scope) error {
|
||||
out.Capacity = (*int64)(unsafe.Pointer(in.Capacity))
|
||||
return nil
|
||||
}
|
||||
|
||||
// Convert_v1_NodeSwapStatus_To_core_NodeSwapStatus is an autogenerated conversion function.
|
||||
func Convert_v1_NodeSwapStatus_To_core_NodeSwapStatus(in *corev1.NodeSwapStatus, out *core.NodeSwapStatus, s conversion.Scope) error {
|
||||
return autoConvert_v1_NodeSwapStatus_To_core_NodeSwapStatus(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_core_NodeSwapStatus_To_v1_NodeSwapStatus(in *core.NodeSwapStatus, out *corev1.NodeSwapStatus, s conversion.Scope) error {
|
||||
out.Capacity = (*int64)(unsafe.Pointer(in.Capacity))
|
||||
return nil
|
||||
}
|
||||
|
||||
// Convert_core_NodeSwapStatus_To_v1_NodeSwapStatus is an autogenerated conversion function.
|
||||
func Convert_core_NodeSwapStatus_To_v1_NodeSwapStatus(in *core.NodeSwapStatus, out *corev1.NodeSwapStatus, s conversion.Scope) error {
|
||||
return autoConvert_core_NodeSwapStatus_To_v1_NodeSwapStatus(in, out, s)
|
||||
}
|
||||
|
||||
func autoConvert_v1_NodeSystemInfo_To_core_NodeSystemInfo(in *corev1.NodeSystemInfo, out *core.NodeSystemInfo, s conversion.Scope) error {
|
||||
out.MachineID = in.MachineID
|
||||
out.SystemUUID = in.SystemUUID
|
||||
@ -5430,6 +5460,7 @@ func autoConvert_v1_NodeSystemInfo_To_core_NodeSystemInfo(in *corev1.NodeSystemI
|
||||
out.KubeProxyVersion = in.KubeProxyVersion
|
||||
out.OperatingSystem = in.OperatingSystem
|
||||
out.Architecture = in.Architecture
|
||||
out.Swap = (*core.NodeSwapStatus)(unsafe.Pointer(in.Swap))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -5449,6 +5480,7 @@ func autoConvert_core_NodeSystemInfo_To_v1_NodeSystemInfo(in *core.NodeSystemInf
|
||||
out.KubeProxyVersion = in.KubeProxyVersion
|
||||
out.OperatingSystem = in.OperatingSystem
|
||||
out.Architecture = in.Architecture
|
||||
out.Swap = (*corev1.NodeSwapStatus)(unsafe.Pointer(in.Swap))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
28
pkg/apis/core/zz_generated.deepcopy.go
generated
28
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -3004,7 +3004,7 @@ func (in *NodeStatus) DeepCopyInto(out *NodeStatus) {
|
||||
copy(*out, *in)
|
||||
}
|
||||
out.DaemonEndpoints = in.DaemonEndpoints
|
||||
out.NodeInfo = in.NodeInfo
|
||||
in.NodeInfo.DeepCopyInto(&out.NodeInfo)
|
||||
if in.Images != nil {
|
||||
in, out := &in.Images, &out.Images
|
||||
*out = make([]ContainerImage, len(*in))
|
||||
@ -3052,9 +3052,35 @@ func (in *NodeStatus) DeepCopy() *NodeStatus {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NodeSwapStatus) DeepCopyInto(out *NodeSwapStatus) {
|
||||
*out = *in
|
||||
if in.Capacity != nil {
|
||||
in, out := &in.Capacity, &out.Capacity
|
||||
*out = new(int64)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSwapStatus.
|
||||
func (in *NodeSwapStatus) DeepCopy() *NodeSwapStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NodeSwapStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NodeSystemInfo) DeepCopyInto(out *NodeSystemInfo) {
|
||||
*out = *in
|
||||
if in.Swap != nil {
|
||||
in, out := &in.Swap, &out.Swap
|
||||
*out = new(NodeSwapStatus)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
29
pkg/generated/openapi/zz_generated.openapi.go
generated
29
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -510,6 +510,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
|
||||
"k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref),
|
||||
"k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref),
|
||||
"k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref),
|
||||
"k8s.io/api/core/v1.NodeSwapStatus": schema_k8sio_api_core_v1_NodeSwapStatus(ref),
|
||||
"k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref),
|
||||
"k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref),
|
||||
"k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref),
|
||||
@ -26146,6 +26147,26 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op
|
||||
}
|
||||
}
|
||||
|
||||
func schema_k8sio_api_core_v1_NodeSwapStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "NodeSwapStatus represents swap memory information.",
|
||||
Type: []string{"object"},
|
||||
Properties: map[string]spec.Schema{
|
||||
"capacity": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Total amount of swap memory in bytes.",
|
||||
Type: []string{"integer"},
|
||||
Format: "int64",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func schema_k8sio_api_core_v1_NodeSystemInfo(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
@ -26233,10 +26254,18 @@ func schema_k8sio_api_core_v1_NodeSystemInfo(ref common.ReferenceCallback) commo
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"swap": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Swap Info reported by the node.",
|
||||
Ref: ref("k8s.io/api/core/v1.NodeSwapStatus"),
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"machineID", "systemUUID", "bootID", "kernelVersion", "osImage", "containerRuntimeVersion", "kubeletVersion", "kubeProxyVersion", "operatingSystem", "architecture"},
|
||||
},
|
||||
},
|
||||
Dependencies: []string{
|
||||
"k8s.io/api/core/v1.NodeSwapStatus"},
|
||||
}
|
||||
}
|
||||
|
||||
|
2458
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
2458
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -2872,6 +2872,13 @@ message NodeStatus {
|
||||
optional NodeFeatures features = 13;
|
||||
}
|
||||
|
||||
// NodeSwapStatus represents swap memory information.
|
||||
message NodeSwapStatus {
|
||||
// Total amount of swap memory in bytes.
|
||||
// +optional
|
||||
optional int64 capacity = 1;
|
||||
}
|
||||
|
||||
// NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
|
||||
message NodeSystemInfo {
|
||||
// MachineID reported by the node. For unique machine identification
|
||||
@ -2907,6 +2914,9 @@ message NodeSystemInfo {
|
||||
|
||||
// The Architecture reported by the node
|
||||
optional string architecture = 10;
|
||||
|
||||
// Swap Info reported by the node.
|
||||
optional NodeSwapStatus swap = 11;
|
||||
}
|
||||
|
||||
// ObjectFieldSelector selects an APIVersioned field of an object.
|
||||
|
@ -1335,6 +1335,15 @@ func (NodeStatus) SwaggerDoc() map[string]string {
|
||||
return map_NodeStatus
|
||||
}
|
||||
|
||||
var map_NodeSwapStatus = map[string]string{
|
||||
"": "NodeSwapStatus represents swap memory information.",
|
||||
"capacity": "Total amount of swap memory in bytes.",
|
||||
}
|
||||
|
||||
func (NodeSwapStatus) SwaggerDoc() map[string]string {
|
||||
return map_NodeSwapStatus
|
||||
}
|
||||
|
||||
var map_NodeSystemInfo = map[string]string{
|
||||
"": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.",
|
||||
"machineID": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html",
|
||||
@ -1347,6 +1356,7 @@ var map_NodeSystemInfo = map[string]string{
|
||||
"kubeProxyVersion": "Deprecated: KubeProxy Version reported by the node.",
|
||||
"operatingSystem": "The Operating System reported by the node",
|
||||
"architecture": "The Architecture reported by the node",
|
||||
"swap": "Swap Info reported by the node.",
|
||||
}
|
||||
|
||||
func (NodeSystemInfo) SwaggerDoc() map[string]string {
|
||||
|
@ -3002,7 +3002,7 @@ func (in *NodeStatus) DeepCopyInto(out *NodeStatus) {
|
||||
copy(*out, *in)
|
||||
}
|
||||
out.DaemonEndpoints = in.DaemonEndpoints
|
||||
out.NodeInfo = in.NodeInfo
|
||||
in.NodeInfo.DeepCopyInto(&out.NodeInfo)
|
||||
if in.Images != nil {
|
||||
in, out := &in.Images, &out.Images
|
||||
*out = make([]ContainerImage, len(*in))
|
||||
@ -3050,9 +3050,35 @@ func (in *NodeStatus) DeepCopy() *NodeStatus {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NodeSwapStatus) DeepCopyInto(out *NodeSwapStatus) {
|
||||
*out = *in
|
||||
if in.Capacity != nil {
|
||||
in, out := &in.Capacity, &out.Capacity
|
||||
*out = new(int64)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSwapStatus.
|
||||
func (in *NodeSwapStatus) DeepCopy() *NodeSwapStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(NodeSwapStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *NodeSystemInfo) DeepCopyInto(out *NodeSystemInfo) {
|
||||
*out = *in
|
||||
if in.Swap != nil {
|
||||
in, out := &in.Swap, &out.Swap
|
||||
*out = new(NodeSwapStatus)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,39 @@
|
||||
/*
|
||||
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 applyconfiguration-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
// NodeSwapStatusApplyConfiguration represents a declarative configuration of the NodeSwapStatus type for use
|
||||
// with apply.
|
||||
type NodeSwapStatusApplyConfiguration struct {
|
||||
Capacity *int64 `json:"capacity,omitempty"`
|
||||
}
|
||||
|
||||
// NodeSwapStatusApplyConfiguration constructs a declarative configuration of the NodeSwapStatus type for use with
|
||||
// apply.
|
||||
func NodeSwapStatus() *NodeSwapStatusApplyConfiguration {
|
||||
return &NodeSwapStatusApplyConfiguration{}
|
||||
}
|
||||
|
||||
// WithCapacity sets the Capacity field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Capacity field is set to the value of the last call.
|
||||
func (b *NodeSwapStatusApplyConfiguration) WithCapacity(value int64) *NodeSwapStatusApplyConfiguration {
|
||||
b.Capacity = &value
|
||||
return b
|
||||
}
|
@ -21,16 +21,17 @@ package v1
|
||||
// NodeSystemInfoApplyConfiguration represents a declarative configuration of the NodeSystemInfo type for use
|
||||
// with apply.
|
||||
type NodeSystemInfoApplyConfiguration struct {
|
||||
MachineID *string `json:"machineID,omitempty"`
|
||||
SystemUUID *string `json:"systemUUID,omitempty"`
|
||||
BootID *string `json:"bootID,omitempty"`
|
||||
KernelVersion *string `json:"kernelVersion,omitempty"`
|
||||
OSImage *string `json:"osImage,omitempty"`
|
||||
ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"`
|
||||
KubeletVersion *string `json:"kubeletVersion,omitempty"`
|
||||
KubeProxyVersion *string `json:"kubeProxyVersion,omitempty"`
|
||||
OperatingSystem *string `json:"operatingSystem,omitempty"`
|
||||
Architecture *string `json:"architecture,omitempty"`
|
||||
MachineID *string `json:"machineID,omitempty"`
|
||||
SystemUUID *string `json:"systemUUID,omitempty"`
|
||||
BootID *string `json:"bootID,omitempty"`
|
||||
KernelVersion *string `json:"kernelVersion,omitempty"`
|
||||
OSImage *string `json:"osImage,omitempty"`
|
||||
ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"`
|
||||
KubeletVersion *string `json:"kubeletVersion,omitempty"`
|
||||
KubeProxyVersion *string `json:"kubeProxyVersion,omitempty"`
|
||||
OperatingSystem *string `json:"operatingSystem,omitempty"`
|
||||
Architecture *string `json:"architecture,omitempty"`
|
||||
Swap *NodeSwapStatusApplyConfiguration `json:"swap,omitempty"`
|
||||
}
|
||||
|
||||
// NodeSystemInfoApplyConfiguration constructs a declarative configuration of the NodeSystemInfo type for use with
|
||||
@ -118,3 +119,11 @@ func (b *NodeSystemInfoApplyConfiguration) WithArchitecture(value string) *NodeS
|
||||
b.Architecture = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithSwap sets the Swap field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Swap field is set to the value of the last call.
|
||||
func (b *NodeSystemInfoApplyConfiguration) WithSwap(value *NodeSwapStatusApplyConfiguration) *NodeSystemInfoApplyConfiguration {
|
||||
b.Swap = value
|
||||
return b
|
||||
}
|
||||
|
@ -6528,6 +6528,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
elementType:
|
||||
scalar: string
|
||||
elementRelationship: atomic
|
||||
- name: io.k8s.api.core.v1.NodeSwapStatus
|
||||
map:
|
||||
fields:
|
||||
- name: capacity
|
||||
type:
|
||||
scalar: numeric
|
||||
- name: io.k8s.api.core.v1.NodeSystemInfo
|
||||
map:
|
||||
fields:
|
||||
@ -6567,6 +6573,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
type:
|
||||
scalar: string
|
||||
default: ""
|
||||
- name: swap
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.NodeSwapStatus
|
||||
- name: systemUUID
|
||||
type:
|
||||
scalar: string
|
||||
|
@ -856,6 +856,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
||||
return &applyconfigurationscorev1.NodeSpecApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodeStatus"):
|
||||
return &applyconfigurationscorev1.NodeStatusApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodeSwapStatus"):
|
||||
return &applyconfigurationscorev1.NodeSwapStatusApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("NodeSystemInfo"):
|
||||
return &applyconfigurationscorev1.NodeSystemInfoApplyConfiguration{}
|
||||
case corev1.SchemeGroupVersion.WithKind("ObjectFieldSelector"):
|
||||
|
Loading…
Reference in New Issue
Block a user