capi

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: UPL-1.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCAPIClusterReady added in v0.14.0

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) CreateClusterProvisionerConfigMap added in v0.16.0

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

func (*CAPIClient) CreateImagePullSecrets added in v0.22.0

func (c *CAPIClient) CreateImagePullSecrets(ctx context.Context, ki kubernetes.Interface, 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 added in v0.2.0

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

func (*CAPIClient) DeleteCluster added in v0.15.0

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.22.0

func (c *CAPIClient) DeleteImagePullSecrets(ctx context.Context, managedDi dynamic.Interface) error

func (*CAPIClient) DeleteVerrazzanoResources added in v0.8.0

func (c *CAPIClient) DeleteVerrazzanoResources(ctx context.Context, managedDi, 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) InstallModules added in v0.3.0

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.15.0

func (c *CAPIClient) UpdateVerrazzano(ctx context.Context, ki kubernetes.Interface, managedDi, 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