Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ClusterScoped represents a type of a cluster scoped CRD. ClusterScoped = apiextensionsv1beta1.ClusterScoped // NamespaceScoped represents a type of a namespaced scoped CRD. NamespaceScoped = apiextensionsv1beta1.NamespaceScoped )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the CRD client implementation using API calls to kubernetes.
func NewClient ¶
func NewClient(aeClient apiextensionscli.Interface, logger log.Logger) *Client
NewClient returns a new CRD client.
func NewCustomClient ¶
func NewCustomClient(aeClient apiextensionscli.Interface, time wraptime.Time, logger log.Logger) *Client
NewCustomClient returns a new CRD client letting you set all the required parameters
func (*Client) EnsurePresent ¶
EnsurePresent satisfies crd.Interface.
type Interface ¶
type Interface interface {
// EnsureCreated will ensure the the CRD is present, this also means that
// apart from creating the CRD if is not present it will wait until is
// ready, this is a blocking operation and will return an error if timesout
// waiting.
EnsurePresent(conf Conf) error
// WaitToBePresent will wait until the CRD is present, it will check if
// is present at regular intervals until it timesout, in case of timeout
// will return an error.
WaitToBePresent(name string, timeout time.Duration) error
// Delete will delete the CRD.
Delete(name string) error
}
Interface is the CRD client that knows how to interact with k8s to manage them.
Click to show internal directories.
Click to hide internal directories.