Documentation
¶
Index ¶
- func ContainsKind(list []string, kind string) bool
- func ConvertToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
- func GetGroupFromGVK(str string) (group string)
- func GetKindFromGVK(str string) (apiVersion string, kind string)
- func GetObjectWithTombstone(obj interface{}) interface{}
- func LabelSelectorContainsWildcard(v *metav1.LabelSelector) bool
- func NewUnstructured(apiVersion, kind, namespace, name string) *unstructured.Unstructured
- func NewUnstructuredWithSpec(apiVersion, kind, namespace, name string, spec map[string]interface{}) *unstructured.Unstructured
- func SkipSubResources(kind string) bool
- func SplitSubresource(s string) (kind string, subresource string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsKind ¶
func ConvertToUnstructured ¶
func ConvertToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
func GetGroupFromGVK ¶ added in v1.7.4
GetGroupFromGVK - get group GVK
func GetKindFromGVK ¶
GetKindFromGVK - get kind and APIVersion from GVK
func GetObjectWithTombstone ¶
func GetObjectWithTombstone(obj interface{}) interface{}
func LabelSelectorContainsWildcard ¶
func LabelSelectorContainsWildcard(v *metav1.LabelSelector) bool
func NewUnstructured ¶
func NewUnstructured(apiVersion, kind, namespace, name string) *unstructured.Unstructured
func NewUnstructuredWithSpec ¶
func NewUnstructuredWithSpec(apiVersion, kind, namespace, name string, spec map[string]interface{}) *unstructured.Unstructured
func SkipSubResources ¶
SkipSubResources skip list of resources which don't have an API group.
func SplitSubresource ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.