Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isEmptyUnstructuredObject (2.45 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/webhook_converter.go

    			}
    		}
    
    		convertedMetaData[fld] = responseField
    	}
    
    	return nil
    }
    
    // isEmptyUnstructuredObject returns true if in is an empty unstructured object, i.e. an unstructured object that does
    // not have any field except apiVersion and kind.
    func isEmptyUnstructuredObject(in runtime.Object) bool {
    	u, ok := in.(*unstructured.Unstructured)
    	if !ok {
    		return false
    	}
    	if len(u.Object) != 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 19:37:55 UTC 2023
    - 20.6K bytes
    - Viewed (0)
Back to top