Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetObjectGroupKind (0.1 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/printers/name.go

    	name := "<unknown>"
    	if acc, err := meta.Accessor(obj); err == nil {
    		if n := acc.GetName(); len(n) > 0 {
    			name = n
    		}
    	}
    
    	return printObj(w, name, p.Operation, p.ShortOutput, GetObjectGroupKind(obj))
    }
    
    func GetObjectGroupKind(obj runtime.Object) schema.GroupKind {
    	if obj == nil {
    		return schema.GroupKind{Kind: "<unknown>"}
    	}
    	groupVersionKind := obj.GetObjectKind().GroupVersionKind()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 28 23:24:54 UTC 2019
    - 3.9K bytes
    - Viewed (0)
Back to top