Documentation ¶
Index ¶
- func DeleteCluster(ctx context.Context, client dynamic.Interface, v *variables.Variables) error
- type CAPIClient
- func (c *CAPIClient) CreateOrUpdateAllObjects(ctx context.Context, kubernetesInterface kubernetes.Interface, ...) (*CreateOrUpdateResult, error)
- func (c *CAPIClient) CreateOrUpdateYAMLDocuments(ctx context.Context, managedDi dynamic.Interface, v *variables.Variables) error
- func (c *CAPIClient) DeleteHangingResources(ctx context.Context, p dynamic.Interface, cruResult *CreateOrUpdateResult, ...) error
- func (c *CAPIClient) InstallAndRegisterVerrazzano(ctx context.Context, ki kubernetes.Interface, di, adminDi dynamic.Interface, ...) error
- func (c *CAPIClient) InstallModules(ctx context.Context, ki kubernetes.Interface, di dynamic.Interface, ...) error
- func (c *CAPIClient) UpdateCluster(ctx context.Context, ki kubernetes.Interface, di dynamic.Interface, ...) error
- func (c *CAPIClient) WaitForCAPIClusterReady(ctx context.Context, client dynamic.Interface, state *variables.Variables) error
- type CreateOrUpdateResult
- type NameAndNamespace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CAPIClient ¶
type CAPIClient struct {
// contains filtered or unexported fields
}
func NewCAPIClient ¶
func NewCAPIClient() *CAPIClient
func (*CAPIClient) CreateOrUpdateAllObjects ¶
func (c *CAPIClient) CreateOrUpdateAllObjects(ctx context.Context, kubernetesInterface kubernetes.Interface, dynamicInterface dynamic.Interface, v *variables.Variables) (*CreateOrUpdateResult, error)
CreateOrUpdateAllObjects creates or updates all cluster result
func (*CAPIClient) CreateOrUpdateYAMLDocuments ¶ added in v0.2.0
func (*CAPIClient) DeleteHangingResources ¶
func (c *CAPIClient) DeleteHangingResources(ctx context.Context, p dynamic.Interface, cruResult *CreateOrUpdateResult, namespace string) error
func (*CAPIClient) InstallAndRegisterVerrazzano ¶
func (c *CAPIClient) InstallAndRegisterVerrazzano(ctx context.Context, ki kubernetes.Interface, di, adminDi dynamic.Interface, v *variables.Variables) error
func (*CAPIClient) InstallModules ¶ added in v0.3.0
func (c *CAPIClient) InstallModules(ctx context.Context, ki kubernetes.Interface, di dynamic.Interface, v *variables.Variables) error
func (*CAPIClient) UpdateCluster ¶
func (c *CAPIClient) UpdateCluster(ctx context.Context, ki kubernetes.Interface, di dynamic.Interface, v *variables.Variables) error
UpdateCluster upgrades the CAPI cluster by going through the following stages: 1. update the CAPI credentials using the cloud credential. This keeps the cloud credential up-to-date 2. update the control plane, and then wait for the control plane to be ready 3. update the worker nodes, and then wait for the worker nodes to be ready 4. update the remaining cluster resources, and then wait for the cluster to be ready
func (*CAPIClient) WaitForCAPIClusterReady ¶
func (c *CAPIClient) WaitForCAPIClusterReady(ctx context.Context, client dynamic.Interface, state *variables.Variables) error
WaitForCAPIClusterReady waits for the CAPI cluster resource to reach "Ready" status, and its Machines
type CreateOrUpdateResult ¶
type CreateOrUpdateResult struct {
// contains filtered or unexported fields
}
func NewCreateOrUpdateResult ¶
func NewCreateOrUpdateResult() *CreateOrUpdateResult
func (*CreateOrUpdateResult) Add ¶
func (c *CreateOrUpdateResult) Add(resource string, u *unstructured.Unstructured)
func (*CreateOrUpdateResult) Contains ¶
func (c *CreateOrUpdateResult) Contains(resource string, u *unstructured.Unstructured) bool
func (*CreateOrUpdateResult) Merge ¶
func (c *CreateOrUpdateResult) Merge(c2 *CreateOrUpdateResult)
type NameAndNamespace ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.