Remove feature gate to GA the setHostnameAsFQDN feature
This commit is contained in:
parent
6ede5ca95f
commit
baa88b26cd
@ -584,11 +584,6 @@ func dropDisabledFields(
|
|||||||
podSpec.PreemptionPolicy = nil
|
podSpec.PreemptionPolicy = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if !utilfeature.DefaultFeatureGate.Enabled(features.SetHostnameAsFQDN) && !setHostnameAsFQDNInUse(oldPodSpec) {
|
|
||||||
// Set SetHostnameAsFQDN to nil only if feature is disabled and it is not used
|
|
||||||
podSpec.SetHostnameAsFQDN = nil
|
|
||||||
}
|
|
||||||
|
|
||||||
dropDisabledPodAffinityTermFields(podSpec, oldPodSpec)
|
dropDisabledPodAffinityTermFields(podSpec, oldPodSpec)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -883,14 +878,6 @@ func multiplePodIPsInUse(podStatus *api.PodStatus) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// setHostnameAsFQDNInUse returns true if any pod's spec defines setHostnameAsFQDN field.
|
|
||||||
func setHostnameAsFQDNInUse(podSpec *api.PodSpec) bool {
|
|
||||||
if podSpec == nil || podSpec.SetHostnameAsFQDN == nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return *podSpec.SetHostnameAsFQDN
|
|
||||||
}
|
|
||||||
|
|
||||||
// SeccompAnnotationForField takes a pod seccomp profile field and returns the
|
// SeccompAnnotationForField takes a pod seccomp profile field and returns the
|
||||||
// converted annotation value
|
// converted annotation value
|
||||||
func SeccompAnnotationForField(field *api.SeccompProfile) string {
|
func SeccompAnnotationForField(field *api.SeccompProfile) string {
|
||||||
|
@ -581,6 +581,7 @@ const (
|
|||||||
// owner: @javidiaz
|
// owner: @javidiaz
|
||||||
// alpha: v1.19
|
// alpha: v1.19
|
||||||
// beta: v1.20
|
// beta: v1.20
|
||||||
|
// GA: v1.22
|
||||||
//
|
//
|
||||||
// Allow setting the Fully Qualified Domain Name (FQDN) in the hostname of a Pod. If a Pod does not
|
// Allow setting the Fully Qualified Domain Name (FQDN) in the hostname of a Pod. If a Pod does not
|
||||||
// have FQDN, this feature has no effect.
|
// have FQDN, this feature has no effect.
|
||||||
@ -844,7 +845,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
ExternalPolicyForExternalIP: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.22
|
ExternalPolicyForExternalIP: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.22
|
||||||
AnyVolumeDataSource: {Default: false, PreRelease: featuregate.Alpha},
|
AnyVolumeDataSource: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
DefaultPodTopologySpread: {Default: true, PreRelease: featuregate.Beta},
|
DefaultPodTopologySpread: {Default: true, PreRelease: featuregate.Beta},
|
||||||
SetHostnameAsFQDN: {Default: true, PreRelease: featuregate.Beta},
|
SetHostnameAsFQDN: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, //remove in 1.24
|
||||||
WinOverlay: {Default: true, PreRelease: featuregate.Beta},
|
WinOverlay: {Default: true, PreRelease: featuregate.Beta},
|
||||||
WinDSR: {Default: false, PreRelease: featuregate.Alpha},
|
WinDSR: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
DisableAcceleratorUsageMetrics: {Default: true, PreRelease: featuregate.Beta},
|
DisableAcceleratorUsageMetrics: {Default: true, PreRelease: featuregate.Beta},
|
||||||
|
Loading…
Reference in New Issue
Block a user