clusteropenstack

package
v0.2.44 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReference = errors.New("reference error")
)
View Source
var (
	// ErrWorkloadPoolMissing is returned when we expect to find a machine deployment
	// for a workload pool, but can't.  This is an indication that Argo hasn't yet
	// sychronized the resources correctly.  We risk a race otherwise where it gets
	// created when we check for existence, it gets created, and we immediately delete it.
	ErrWorkloadPoolMissing = errors.New("unable to locate expected workload pool")
)

Functions

func CAPIClusterName

func CAPIClusterName(cluster *unikornv1.KubernetesCluster) string

CAPIClusterName generates the cluster name that will be generated by helm for the given cluster's name. This is referred to by the cluster autoscaler for example.

func KubeconfigSecretName

func KubeconfigSecretName(cluster *unikornv1.KubernetesCluster) string

KubeconfigSecretName generates the kubeconfig secret name that will be generated by CAPI for the given cluster's name.

func New

func New(getApplication application.GetterFunc, options *kubernetesprovisioners.ClusterOpenstackOptions, clusterManagerPrefix string) *application.Provisioner

New returns a new initialized provisioner object.

Types

type Provisioner

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

Provisioner encapsulates control plane provisioning.

func (*Provisioner) PostProvision

func (p *Provisioner) PostProvision(ctx context.Context) error

PostHook implements the apllication PostProvisionHook interface.

func (*Provisioner) ReleaseName

func (p *Provisioner) ReleaseName(ctx context.Context) string

ReleaseName implements the application.ReleaseNamer interface.

func (*Provisioner) Values

func (p *Provisioner) Values(ctx context.Context, version *string) (interface{}, error)

Generate implements the application.Generator interface.

type RemoteCluster

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

func NewRemoteCluster

func NewRemoteCluster(cluster *unikornv1.KubernetesCluster) *RemoteCluster

NewRemoteCluster return a new instance of a remote cluster generator.

func (*RemoteCluster) Config

Config implements the remotecluster.Generator interface.

func (*RemoteCluster) ID

ID implements the remotecluster.Generator interface.

Jump to

Keyboard shortcuts

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