scope

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VpcDefaultCIDR = "10.0.0.0/16"

	ClusterNameLabel      = "cluster.kurator.dev/cluster-name"
	ClusterNamespaceLabel = "cluster.kurator.dev/cluster-namespace"
	BucketNamePrefix      = "kuratorcluster-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	// record original object so we can mutate it directly
	Cluster   *clusterv1alpha1.Cluster
	UID       string
	InfraType clusterv1alpha1.ClusterInfraType
	types.NamespacedName
	CredentialSecretRef string
	Version             string
	Region              string
	VpcCIDR             string
	PodCIDR             []string
	ServiceCIDR         []string
	CNIType             string

	ControlPlane *Instance
	Workers      []*Instance

	EnablePodIdentity bool
	BucketName        string
}

func NewCluster

func NewCluster(cluster *clusterv1alpha1.Cluster) *Cluster

func (*Cluster) MatchingLabels

func (c *Cluster) MatchingLabels() ctrlclient.MatchingLabels

func (*Cluster) SecretName

func (c *Cluster) SecretName() string

func (*Cluster) StackName

func (c *Cluster) StackName() string

func (*Cluster) StackSuffix

func (c *Cluster) StackSuffix() string

type Instance

type Instance struct {
	Replicas     int
	InstanceType string
	SSHKey       string
	ImageOS      string

	RootVolume  *InstanceVolume
	DataVolumes []InstanceVolume
}

type InstanceVolume

type InstanceVolume struct {
	DeviceName string
	Size       int64
	Type       string
}

Jump to

Keyboard shortcuts

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