mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-28 16:07:29 +00:00
add auto-generated files: ./hack/update-codegen.sh
Signed-off-by: Itamar Holder <iholder@redhat.com> Kubernetes-commit: 4bdaf6cbbde9d7bda89ff734691fc3195a1ecbd5
This commit is contained in:
parent
b4e9c91225
commit
9a7d64c561
39
applyconfigurations/core/v1/nodeswapstatus.go
Normal file
39
applyconfigurations/core/v1/nodeswapstatus.go
Normal file
@ -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
|
||||
}
|
@ -31,6 +31,7 @@ type NodeSystemInfoApplyConfiguration struct {
|
||||
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