mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	update PodSpec.Host to PodSpec.NodeName in /pkg/api/types.go and /pkg/api/v1beta3/types.go
This commit is contained in:
		@@ -1007,8 +1007,8 @@ func ValidatePodStatusUpdate(newPod, oldPod *api.Pod) errs.ValidationErrorList {
 | 
			
		||||
	allErrs = append(allErrs, ValidateObjectMetaUpdate(&oldPod.ObjectMeta, &newPod.ObjectMeta).Prefix("metadata")...)
 | 
			
		||||
 | 
			
		||||
	// TODO: allow change when bindings are properly decoupled from pods
 | 
			
		||||
	if newPod.Spec.Host != oldPod.Spec.Host {
 | 
			
		||||
		allErrs = append(allErrs, errs.NewFieldInvalid("status.host", newPod.Spec.Host, "pod host cannot be changed directly"))
 | 
			
		||||
	if newPod.Spec.NodeName != oldPod.Spec.NodeName {
 | 
			
		||||
		allErrs = append(allErrs, errs.NewFieldInvalid("status.nodeName", newPod.Spec.NodeName, "pod nodename cannot be changed directly"))
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// For status update we ignore changes to pod spec.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user