mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-15 22:58:24 +00:00
Add the HostnameOverride field to the Pod API
Kubernetes-commit: 8b3814c4ab8971dc4c1bef32457a595c5a6eaa63
This commit is contained in:
committed by
Kubernetes Publisher
parent
06fcc8a075
commit
8d8a532ad4
@@ -65,6 +65,7 @@ type PodSpecApplyConfiguration struct {
|
||||
SchedulingGates []PodSchedulingGateApplyConfiguration `json:"schedulingGates,omitempty"`
|
||||
ResourceClaims []PodResourceClaimApplyConfiguration `json:"resourceClaims,omitempty"`
|
||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||
HostnameOverride *string `json:"hostnameOverride,omitempty"`
|
||||
}
|
||||
|
||||
// PodSpecApplyConfiguration constructs a declarative configuration of the PodSpec type for use with
|
||||
@@ -453,3 +454,11 @@ func (b *PodSpecApplyConfiguration) WithResources(value *ResourceRequirementsApp
|
||||
b.Resources = value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithHostnameOverride sets the HostnameOverride 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 HostnameOverride field is set to the value of the last call.
|
||||
func (b *PodSpecApplyConfiguration) WithHostnameOverride(value string) *PodSpecApplyConfiguration {
|
||||
b.HostnameOverride = &value
|
||||
return b
|
||||
}
|
||||
|
@@ -7449,6 +7449,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: hostname
|
||||
type:
|
||||
scalar: string
|
||||
- name: hostnameOverride
|
||||
type:
|
||||
scalar: string
|
||||
- name: imagePullSecrets
|
||||
type:
|
||||
list:
|
||||
|
Reference in New Issue
Block a user