Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsNotEstablished ¶
IsNotEstablished asserts notEstablishedError.
Types ¶
type CRDClient ¶
type CRDClient struct {
// contains filtered or unexported fields
}
func (*CRDClient) EnsureCreated ¶
func (c *CRDClient) EnsureCreated(ctx context.Context, crd *apiextensionsv1.CustomResourceDefinition, b backoff.Interface) error
EnsureCreated ensures the given CRD exists, is active (aka. established) and does not have conflicting names.
func (*CRDClient) EnsureDeleted ¶
func (c *CRDClient) EnsureDeleted(ctx context.Context, crd *apiextensionsv1.CustomResourceDefinition, b backoff.Interface) error
EnsureDeleted ensures the given CRD does not exist.
type Config ¶
type Config struct { K8sExtClient apiextensionsclient.Interface Logger micrologger.Logger }
type Interface ¶
type Interface interface { EnsureCreated(ctx context.Context, customResource *apiextensionsv1.CustomResourceDefinition, backOff backoff.Interface) error EnsureDeleted(ctx context.Context, customResource *apiextensionsv1.CustomResourceDefinition, backOff backoff.Interface) error }
Click to show internal directories.
Click to hide internal directories.