Documentation ¶
Index ¶
- func ApplyCustomResourceDefinition(ctx context.Context, c client.Interface, ...) error
- func ApplyCustomResourceDefinitions(ctx context.Context, c client.Interface, ...) error
- func ApplyCustomResourceRawDefinitions(ctx context.Context, cc client.Interface, raw []byte) error
- func CheckCustomResourceDefinition(ctx context.Context, c client.Interface, ...) error
- func CreateOrForceUpdate(ctx context.Context, cc client.Client, resource client.Object) error
- func CreateOrPatch(ctx context.Context, cc client.Client, resource client.Object) error
- func DeleteIfExists(ctx context.Context, cc client.Client, resource client.Object) error
- func FindLatestPod(list *v1.PodList) *v1.Pod
- func GetIfExists(ctx context.Context, cc client.Client, object client.Object) (bool, error)
- func NewExtentionsAPIClient(cfg *rest.Config) (client.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCustomResourceDefinition ¶
func ApplyCustomResourceDefinition(ctx context.Context, c client.Interface, crd *apiextv1.CustomResourceDefinition) error
ApplyCustomResourceDefinition is responsible for applying the CRD to the cluster
func ApplyCustomResourceDefinitions ¶
func ApplyCustomResourceDefinitions(ctx context.Context, c client.Interface, list []*apiextv1.CustomResourceDefinition) error
ApplyCustomResourceDefinitions s responsible for applying a collection of CRDs
func ApplyCustomResourceRawDefinitions ¶
ApplyCustomResourceRawDefinitions reads the definitions from the raw bytes
func CheckCustomResourceDefinition ¶
func CheckCustomResourceDefinition(ctx context.Context, c client.Interface, crd *apiextv1.CustomResourceDefinition) error
CheckCustomResourceDefinition ensures the CRD is ok to go
func CreateOrForceUpdate ¶
CreateOrForceUpdate either creates or forces the update of the resource
func CreateOrPatch ¶
CreateOrPatch either creates or patches the resource
func DeleteIfExists ¶
DeleteIfExists deletes the resource is it exists
func FindLatestPod ¶
FindLatestPod returns the latest pod in the list
func GetIfExists ¶
GetIfExists retrieves an object if it exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.