mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-30 21:30:16 +00:00 
			
		
		
		
	pkg/api: move HasObjectMetaSystemFieldValues into apimachinery
This commit is contained in:
		| @@ -226,3 +226,9 @@ func NewUIDPreconditions(uid string) *Preconditions { | ||||
| 	u := types.UID(uid) | ||||
| 	return &Preconditions{UID: &u} | ||||
| } | ||||
|  | ||||
| // HasObjectMetaSystemFieldValues returns true if fields that are managed by the system on ObjectMeta have values. | ||||
| func HasObjectMetaSystemFieldValues(meta *ObjectMeta) bool { | ||||
| 	return !meta.CreationTimestamp.Time.IsZero() || | ||||
| 		len(meta.UID) != 0 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user