Add the HostnameOverride field to the Pod API

Kubernetes-commit: 8b3814c4ab8971dc4c1bef32457a595c5a6eaa63
This commit is contained in:
HirazawaUi
2025-06-27 19:41:18 +08:00
committed by Kubernetes Publisher
parent 06fcc8a075
commit 8d8a532ad4
2 changed files with 12 additions and 0 deletions

View File

@@ -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
}

View File

@@ -7449,6 +7449,9 @@ var schemaYAML = typed.YAMLObject(`types:
- name: hostname
type:
scalar: string
- name: hostnameOverride
type:
scalar: string
- name: imagePullSecrets
type:
list: