Merge pull request #101294 from twosigma/gasethostnamefqdn
Promote setHostnameAsFQDN feature to GA
This commit is contained in:
@@ -619,11 +619,6 @@ func dropDisabledFields(
|
||||
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)
|
||||
}
|
||||
|
||||
@@ -918,14 +913,6 @@ func multiplePodIPsInUse(podStatus *api.PodStatus) bool {
|
||||
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
|
||||
// converted annotation value
|
||||
func SeccompAnnotationForField(field *api.SeccompProfile) string {
|
||||
|
Reference in New Issue
Block a user