Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gvk ¶
type Gvk struct { Group string `json:"group,omitempty" yaml:"group,omitempty"` Version string `json:"version,omitempty" yaml:"version,omitempty"` Kind string `json:"kind,omitempty" yaml:"kind,omitempty"` }
Gvk identifies a Kubernetes API type. https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/api-group.md
func ClusterLevelGvks ¶
func ClusterLevelGvks() []Gvk
ClusterLevelGvks returns a slice of cluster-level Gvks
func (Gvk) IsClusterKind ¶
IsClusterKind returns true if x is a cluster-level Gvk
func (Gvk) IsLessThan ¶
IsLessThan returns true if self is less than the argument.
func (Gvk) IsSelected ¶
IsSelected returns true if `selector` selects `x`; otherwise, false. If `selector` and `x` are the same, return true. If `selector` is nil, it is considered a wildcard match, returning true. If selector fields are empty, they are considered wildcards matching anything in the corresponding fields, e.g.
this item:
<Group: "extensions", Version: "v1beta1", Kind: "Deployment">
is selected by
<Group: "", Version: "", Kind: "Deployment">
but rejected by
<Group: "apps", Version: "", Kind: "Deployment">