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)
- 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 ClientFromContext(ctx context.Context) client.Client
- func ContextWithClient(ctx context.Context, c client.Client) context.Context
- 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 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
- func Union[E comparable](a []E, b []E) (c []E)
- type AnnotationsAccessor
- type CustomResourceDefinition
- type KubeClient
- 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 Annotate ¶ added in v0.1.0
func Annotate(o AnnotationsAccessor, key string, value string)
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 ContextWithClient ¶ added in v0.2.0
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 KubeClient ¶ added in v0.2.0
type KubeClient struct { // Paths to a kubeconfig. Only required if out-of-cluster. Kubeconfig string `flag:",omitempty"` // contains filtered or unexported fields }
func (*KubeClient) InjectContext ¶ added in v0.2.0
func (c *KubeClient) InjectContext(ctx context.Context) context.Context
func (KubeClient) RuntimeDoc ¶ added in v0.2.0
func (v KubeClient) 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)
Click to show internal directories.
Click to hide internal directories.