Documentation ¶
Overview ¶
Package kubeutil GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- Variables
- func AllWatchableGroupVersionKinds(ctx context.Context, conf *rest.Config) (gvks []schema.GroupVersionKind, err error)
- func Annotate(o AnnotationsAccessor, key string, value string) bool
- func AppendAnnotate(o AnnotationsAccessor, key string, value string)
- func ApplyCRDs(ctx context.Context, c *rest.Config, ...) error
- func ApplyNamespace(ctx context.Context, c *rest.Config, namespace string) (*corev1.Namespace, error)
- func GetAnnotate(o AnnotationsAccessor, key string) string
- func GetConfig(kubeConfigPath string) (*rest.Config, error)
- func GetLabel(o LabelsAccessor, key string) string
- func Intersection[E comparable](a []E, b []E) (c []E)
- func Label(o LabelsAccessor, key string, value string)
- func LoadConfig(kubeConfigPath string) (*rest.Config, error)
- func ToCRD(d *CustomResourceDefinition) *apiextensionsv1.CustomResourceDefinition
- func Union[E comparable](a []E, b []E) (c []E)
- type AnnotationsAccessor
- type CustomResourceDefinition
- type LabelsAccessor
- type Object
- type ObjectList
Constants ¶
This section is empty.
Variables ¶
View Source
var FieldOwner = client.FieldOwner("kubepkg")
Functions ¶
func AllWatchableGroupVersionKinds ¶ added in v0.1.0
func AppendAnnotate ¶ added in v0.2.0
func AppendAnnotate(o AnnotationsAccessor, key string, value string)
func ApplyCRDs ¶
func ApplyCRDs(ctx context.Context, c *rest.Config, crds ...*apiextensionsv1.CustomResourceDefinition) error
func ApplyNamespace ¶
func GetAnnotate ¶ added in v0.1.0
func GetAnnotate(o AnnotationsAccessor, key string) string
func GetLabel ¶ added in v0.1.0
func GetLabel(o LabelsAccessor, key string) string
func Intersection ¶ added in v0.2.0
func Intersection[E comparable](a []E, b []E) (c []E)
func Label ¶ added in v0.1.0
func Label(o LabelsAccessor, key string, value string)
func ToCRD ¶
func ToCRD(d *CustomResourceDefinition) *apiextensionsv1.CustomResourceDefinition
func Union ¶ added in v0.2.0
func Union[E comparable](a []E, b []E) (c []E)
Types ¶
type AnnotationsAccessor ¶ added in v0.1.0
type CustomResourceDefinition ¶
type CustomResourceDefinition struct { GroupVersion schema.GroupVersion KindType runtime.Object ListKindType runtime.Object SpecType any Plural string ShortNames []string }
func (CustomResourceDefinition) RuntimeDoc ¶ added in v0.2.0
func (v CustomResourceDefinition) RuntimeDoc(names ...string) ([]string, bool)
type LabelsAccessor ¶ added in v0.1.0
type Object ¶
func NewForGroupVersionKind ¶
func NewForGroupVersionKind(gvk schema.GroupVersionKind) (Object, error)
type ObjectList ¶
type ObjectList = client.ObjectList
func ObjectListFromRuntimeObject ¶
func ObjectListFromRuntimeObject(ro runtime.Object) (ObjectList, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package client GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
|
Package client GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE |
Package clusterinfo GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
|
Package clusterinfo GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE |
Click to show internal directories.
Click to hide internal directories.