Documentation ¶
Index ¶
- func IsCAPIClusterReady(ctx context.Context, client dynamic.Interface, state *variables.Variables, ...) error
- type CAPIClient
- func (c *CAPIClient) CreateImagePullSecrets(ctx context.Context, adminDi dynamic.Interface, v *variables.Variables) error
- 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) DeleteCluster(ctx context.Context, di dynamic.Interface, ki kubernetes.Interface, ...) error
- func (c *CAPIClient) DeleteHangingResources(ctx context.Context, p dynamic.Interface, v *variables.Variables) error
- func (c *CAPIClient) DeleteImagePullSecrets(ctx context.Context, adminKi kubernetes.Interface, v *variables.Variables) error
- func (c *CAPIClient) DeleteVerrazzanoResources(ctx context.Context, adminDi dynamic.Interface, v *variables.Variables) error
- func (c *CAPIClient) UpdateCluster(ctx context.Context, ki kubernetes.Interface, di dynamic.Interface, ...) error
- func (c *CAPIClient) UpdateVerrazzano(ctx context.Context, adminDi dynamic.Interface, v *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(plog *provisioning.Logger) *CAPIClient
func (*CAPIClient) CreateImagePullSecrets ¶ added in v0.3.0
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 ¶
func (*CAPIClient) DeleteCluster ¶
func (c *CAPIClient) DeleteCluster(ctx context.Context, di dynamic.Interface, ki kubernetes.Interface, v *variables.Variables) error
DeleteCluster deletes the cluster
func (*CAPIClient) DeleteHangingResources ¶
func (*CAPIClient) DeleteImagePullSecrets ¶ added in v0.3.0
func (c *CAPIClient) DeleteImagePullSecrets(ctx context.Context, adminKi kubernetes.Interface, v *variables.Variables) error
func (*CAPIClient) DeleteVerrazzanoResources ¶ added in v0.2.0
func (c *CAPIClient) DeleteVerrazzanoResources(ctx context.Context, adminDi dynamic.Interface, v *variables.Variables) error
DeleteVerrazzanoResources deletes the Verrazzano resource on the managed cluster, and the VerrazzanoManagedCluster on the admin cluster
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) UpdateVerrazzano ¶ added in v0.2.0
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)