mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-26 07:02:01 +00:00
generated: Add os field to Pod Spec
Kubernetes-commit: 41f8f95fc5dee7613673dc6edd98a85c2c1d4c18
This commit is contained in:
parent
c151c2c688
commit
c64db8cfcf
43
applyconfigurations/core/v1/podos.go
Normal file
43
applyconfigurations/core/v1/podos.go
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
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
|
||||||
|
|
||||||
|
import (
|
||||||
|
v1 "k8s.io/api/core/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
// PodOSApplyConfiguration represents an declarative configuration of the PodOS type for use
|
||||||
|
// with apply.
|
||||||
|
type PodOSApplyConfiguration struct {
|
||||||
|
Name *v1.OSName `json:"name,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// PodOSApplyConfiguration constructs an declarative configuration of the PodOS type for use with
|
||||||
|
// apply.
|
||||||
|
func PodOS() *PodOSApplyConfiguration {
|
||||||
|
return &PodOSApplyConfiguration{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithName sets the Name 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 Name field is set to the value of the last call.
|
||||||
|
func (b *PodOSApplyConfiguration) WithName(value v1.OSName) *PodOSApplyConfiguration {
|
||||||
|
b.Name = &value
|
||||||
|
return b
|
||||||
|
}
|
@ -60,6 +60,7 @@ type PodSpecApplyConfiguration struct {
|
|||||||
Overhead *corev1.ResourceList `json:"overhead,omitempty"`
|
Overhead *corev1.ResourceList `json:"overhead,omitempty"`
|
||||||
TopologySpreadConstraints []TopologySpreadConstraintApplyConfiguration `json:"topologySpreadConstraints,omitempty"`
|
TopologySpreadConstraints []TopologySpreadConstraintApplyConfiguration `json:"topologySpreadConstraints,omitempty"`
|
||||||
SetHostnameAsFQDN *bool `json:"setHostnameAsFQDN,omitempty"`
|
SetHostnameAsFQDN *bool `json:"setHostnameAsFQDN,omitempty"`
|
||||||
|
OS *PodOSApplyConfiguration `json:"os,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodSpecApplyConfiguration constructs an declarative configuration of the PodSpec type for use with
|
// PodSpecApplyConfiguration constructs an declarative configuration of the PodSpec type for use with
|
||||||
@ -398,3 +399,11 @@ func (b *PodSpecApplyConfiguration) WithSetHostnameAsFQDN(value bool) *PodSpecAp
|
|||||||
b.SetHostnameAsFQDN = &value
|
b.SetHostnameAsFQDN = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithOS sets the OS 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 OS field is set to the value of the last call.
|
||||||
|
func (b *PodSpecApplyConfiguration) WithOS(value *PodOSApplyConfiguration) *PodSpecApplyConfiguration {
|
||||||
|
b.OS = value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -5226,6 +5226,13 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: ip
|
- name: ip
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
|
- name: io.k8s.api.core.v1.PodOS
|
||||||
|
map:
|
||||||
|
fields:
|
||||||
|
- name: name
|
||||||
|
type:
|
||||||
|
scalar: string
|
||||||
|
default: ""
|
||||||
- name: io.k8s.api.core.v1.PodReadinessGate
|
- name: io.k8s.api.core.v1.PodReadinessGate
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
@ -5354,6 +5361,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
elementType:
|
elementType:
|
||||||
scalar: string
|
scalar: string
|
||||||
elementRelationship: atomic
|
elementRelationship: atomic
|
||||||
|
- name: os
|
||||||
|
type:
|
||||||
|
namedType: io.k8s.api.core.v1.PodOS
|
||||||
- name: overhead
|
- name: overhead
|
||||||
type:
|
type:
|
||||||
map:
|
map:
|
||||||
|
@ -661,6 +661,8 @@ func ForKind(kind schema.GroupVersionKind) interface{} {
|
|||||||
return &applyconfigurationscorev1.PodDNSConfigOptionApplyConfiguration{}
|
return &applyconfigurationscorev1.PodDNSConfigOptionApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("PodIP"):
|
case corev1.SchemeGroupVersion.WithKind("PodIP"):
|
||||||
return &applyconfigurationscorev1.PodIPApplyConfiguration{}
|
return &applyconfigurationscorev1.PodIPApplyConfiguration{}
|
||||||
|
case corev1.SchemeGroupVersion.WithKind("PodOS"):
|
||||||
|
return &applyconfigurationscorev1.PodOSApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("PodReadinessGate"):
|
case corev1.SchemeGroupVersion.WithKind("PodReadinessGate"):
|
||||||
return &applyconfigurationscorev1.PodReadinessGateApplyConfiguration{}
|
return &applyconfigurationscorev1.PodReadinessGateApplyConfiguration{}
|
||||||
case corev1.SchemeGroupVersion.WithKind("PodSecurityContext"):
|
case corev1.SchemeGroupVersion.WithKind("PodSecurityContext"):
|
||||||
|
Loading…
Reference in New Issue
Block a user