Documentation ¶
Index ¶
- func AllWatchableGroupVersionKinds(ctx context.Context, conf *rest.Config) (gvks []schema.GroupVersionKind, err error)
- func Annotate(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 KubeConfigFromClient(c client.Client) *rest.Config
- func Label(o LabelsAccessor, key string, value string)
- func NewClient(kubeConfigPath string) (client.Client, error)
- func ToCRD(d *CustomResourceDefinition) *apiextensionsv1.CustomResourceDefinition
- type AnnotationsAccessor
- type CustomResourceDefinition
- type LabelsAccessor
- type Object
- type ObjectList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllWatchableGroupVersionKinds ¶ added in v0.1.0
func Annotate ¶ added in v0.1.0
func Annotate(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 Label ¶ added in v0.1.0
func Label(o LabelsAccessor, key string, value string)
func ToCRD ¶
func ToCRD(d *CustomResourceDefinition) *apiextensionsv1.CustomResourceDefinition
Types ¶
type AnnotationsAccessor ¶ added in v0.1.0
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)
Click to show internal directories.
Click to hide internal directories.