code: func gvkWithDefaults(actual, defaultGVK schema.GroupVersionKind) schema.GroupVersionKind {
  	if len(actual.Kind) == 0 {
  		actual.Kind = defaultGVK.Kind
  	}
  	if len(actual.Version) == 0 && len(actual.Group) == 0 {
  		actual.Group = defaultGVK.Group
  		actual.Version = defaultGVK.Version
  	}
  	if len(actual.Version) == 0 && actual.Group == defaultGVK.Group {
  		actual.Version = defaultGVK.Version
  	}
  	return actual
  }
docs: // gvkWithDefaults returns group kind and version defaulting from provided default