mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Promote configurable pod resolv.conf (CustomPodDNS) to Beta
This commit is contained in:
parent
d6625f857a
commit
1a60276b6e
@ -191,7 +191,7 @@ const (
|
|||||||
CSIPersistentVolume utilfeature.Feature = "CSIPersistentVolume"
|
CSIPersistentVolume utilfeature.Feature = "CSIPersistentVolume"
|
||||||
|
|
||||||
// owner @MrHohn
|
// owner @MrHohn
|
||||||
// alpha: v1.9
|
// beta: v1.10
|
||||||
//
|
//
|
||||||
// Support configurable pod DNS parameters.
|
// Support configurable pod DNS parameters.
|
||||||
CustomPodDNS utilfeature.Feature = "CustomPodDNS"
|
CustomPodDNS utilfeature.Feature = "CustomPodDNS"
|
||||||
@ -272,7 +272,7 @@ var defaultKubernetesFeatureGates = map[utilfeature.Feature]utilfeature.FeatureS
|
|||||||
MountContainers: {Default: false, PreRelease: utilfeature.Alpha},
|
MountContainers: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
VolumeScheduling: {Default: false, PreRelease: utilfeature.Alpha},
|
VolumeScheduling: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
CSIPersistentVolume: {Default: true, PreRelease: utilfeature.Beta},
|
CSIPersistentVolume: {Default: true, PreRelease: utilfeature.Beta},
|
||||||
CustomPodDNS: {Default: false, PreRelease: utilfeature.Alpha},
|
CustomPodDNS: {Default: true, PreRelease: utilfeature.Beta},
|
||||||
BlockVolume: {Default: false, PreRelease: utilfeature.Alpha},
|
BlockVolume: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
StorageProtection: {Default: false, PreRelease: utilfeature.Alpha},
|
StorageProtection: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
ResourceLimitsPriorityFunction: {Default: false, PreRelease: utilfeature.Alpha},
|
ResourceLimitsPriorityFunction: {Default: false, PreRelease: utilfeature.Alpha},
|
||||||
|
@ -2808,7 +2808,6 @@ type PodSpec struct {
|
|||||||
// DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
|
// DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
|
||||||
// To have DNS options set along with hostNetwork, you have to specify DNS policy
|
// To have DNS options set along with hostNetwork, you have to specify DNS policy
|
||||||
// explicitly to 'ClusterFirstWithHostNet'.
|
// explicitly to 'ClusterFirstWithHostNet'.
|
||||||
// Note that 'None' policy is an alpha feature introduced in v1.9 and CustomPodDNS feature gate must be enabled to use it.
|
|
||||||
// +optional
|
// +optional
|
||||||
DNSPolicy DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,6,opt,name=dnsPolicy,casttype=DNSPolicy"`
|
DNSPolicy DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,6,opt,name=dnsPolicy,casttype=DNSPolicy"`
|
||||||
// NodeSelector is a selector which must be true for the pod to fit on a node.
|
// NodeSelector is a selector which must be true for the pod to fit on a node.
|
||||||
@ -2905,7 +2904,6 @@ type PodSpec struct {
|
|||||||
// Specifies the DNS parameters of a pod.
|
// Specifies the DNS parameters of a pod.
|
||||||
// Parameters specified here will be merged to the generated DNS
|
// Parameters specified here will be merged to the generated DNS
|
||||||
// configuration based on DNSPolicy.
|
// configuration based on DNSPolicy.
|
||||||
// This is an alpha feature introduced in v1.9 and CustomPodDNS feature gate must be enabled to use it.
|
|
||||||
// +optional
|
// +optional
|
||||||
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" protobuf:"bytes,26,opt,name=dnsConfig"`
|
DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty" protobuf:"bytes,26,opt,name=dnsConfig"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user