Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrReference = errors.New("reference error")
)
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.
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 ¶
func (g *RemoteCluster) Config(ctx context.Context) (*clientcmdapi.Config, error)
Config implements the remotecluster.Generator interface.
func (*RemoteCluster) ID ¶
func (g *RemoteCluster) ID() *cd.ResourceIdentifier
ID implements the remotecluster.Generator interface.