Documentation ¶
Index ¶
- type Client
- func (c *Client) AnyFrameworkVersionExistsInCluster(framework string) bool
- func (c *Client) AnyInstanceExistsInCluster(name, version string) bool
- func (c *Client) CRDsInstalled() error
- func (c *Client) FrameworkExistsInCluster(name string) bool
- func (c *Client) FrameworkVersionInClusterOutOfSync(framework, mostRecentVersion string) bool
- func (c *Client) InstallFrameworkObjToCluster(obj *v1alpha1.Framework) (*v1alpha1.Framework, error)
- func (c *Client) InstallFrameworkVersionObjToCluster(obj *v1alpha1.FrameworkVersion) (*v1alpha1.FrameworkVersion, error)
- func (c *Client) InstallInstanceObjToCluster(obj *v1alpha1.Instance) (*v1alpha1.Instance, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a KUDO Client providing access to a clientset
func (*Client) AnyFrameworkVersionExistsInCluster ¶
AnyFrameworkVersionExistsInCluster checks if any FrameworkVersion object matches to the given Framework name in the cluster
func (*Client) AnyInstanceExistsInCluster ¶
AnyInstanceExistsInCluster checks if any FrameworkVersion object matches to the given Framework name in the cluster. An Instance has two identifiers:
- Spec.FrameworkVersion.Name spec: frameworkVersion: name: kafka-2.11-2.4.0
- LabelSelector metadata: creationTimestamp: "2019-02-28T14:39:20Z" generation: 1 labels: controller-tools.k8s.io: "1.0" framework: kafka
This function also just returns true if the Instance matches a specific FrameworkVersion of a Framework
func (*Client) CRDsInstalled ¶
CRDsInstalled checks for essential CRDs of KUDO to be installed
func (*Client) FrameworkExistsInCluster ¶
FrameworkExistsInCluster checks if a given Framework object is installed on the current k8s cluster
func (*Client) FrameworkVersionInClusterOutOfSync ¶
FrameworkVersionInClusterOutOfSync checks if any FrameworkVersion object matches a given Framework name and if not it returns false. False means that for the given Framework the most recent official FrameworkVersion is not installed in the cluster or an error occurred.
func (*Client) InstallFrameworkObjToCluster ¶
InstallFrameworkObjToCluster expects a valid Framework obj to install
func (*Client) InstallFrameworkVersionObjToCluster ¶
func (c *Client) InstallFrameworkVersionObjToCluster(obj *v1alpha1.FrameworkVersion) (*v1alpha1.FrameworkVersion, error)
InstallFrameworkVersionObjToCluster expects a valid Framework obj to install