capi

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2023 License: UPL-1.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCAPIClusterReady

func IsCAPIClusterReady(ctx context.Context, client dynamic.Interface, state *variables.Variables, plog *provisioning.Logger) error

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 (c *CAPIClient) CreateImagePullSecrets(ctx context.Context, adminDi dynamic.Interface, v *variables.Variables) error

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 (c *CAPIClient) CreateOrUpdateYAMLDocuments(ctx context.Context, managedDi dynamic.Interface, v *variables.Variables) error

func (*CAPIClient) DeleteCluster

DeleteCluster deletes the cluster

func (*CAPIClient) DeleteHangingResources

func (c *CAPIClient) DeleteHangingResources(ctx context.Context, p dynamic.Interface, v *variables.Variables) error

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

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

func (c *CAPIClient) UpdateVerrazzano(ctx context.Context, adminDi dynamic.Interface, v *variables.Variables) error

type CreateOrUpdateResult

type CreateOrUpdateResult struct {
	// contains filtered or unexported fields
}

func NewCreateOrUpdateResult

func NewCreateOrUpdateResult() *CreateOrUpdateResult

func (*CreateOrUpdateResult) Add

func (*CreateOrUpdateResult) Contains

func (c *CreateOrUpdateResult) Contains(resource string, u *unstructured.Unstructured) bool

func (*CreateOrUpdateResult) Merge

type NameAndNamespace

type NameAndNamespace struct {
	Name      string
	Namespace string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL