Documentation
¶
Overview ¶
Package objects provides functions to manage pure objects in Kubernetes
Index ¶
- Constants
- func Create(ctx context.Context, crudClient client.Client, object client.Object, ...) (client.Object, error)
- func Delete(ctx context.Context, crudClient client.Client, object client.Object, ...) error
- func Get(ctx context.Context, crudClient client.Client, objectKey client.ObjectKey, ...) error
- func List(ctx context.Context, crudClient client.Client, objectList client.ObjectList, ...) error
Constants ¶
View Source
const ( // RetryAttempts maximum number of attempts when it fails in `retry`. Mainly used in `RunUncheckedRetry` RetryAttempts = 5 // PollingTime polling interval (in seconds) between retries PollingTime = 5 )
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create( ctx context.Context, crudClient client.Client, object client.Object, opts ...client.CreateOption, ) (client.Object, error)
Create creates object in the Kubernetes cluster
func Delete ¶
func Delete( ctx context.Context, crudClient client.Client, object client.Object, opts ...client.DeleteOption, ) error
Delete deletes an object in the Kubernetes cluster
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.