Documentation
¶
Index ¶
Constants ¶
View Source
const ( LabelClusterApplyJob = "kloudlite.io/cluster-apply-job" LabelResourceGeneration = "kloudlite.io/resource-generation" LabelClusterDestroyJob = "kloudlite.io/cluster-apply-job" )
View Source
const ( ClusterPrerequisitesReady string = "cluster-prerequisites-ready" ClusterJobRBACReady string = `cluster-job-rbac-ready` ClusterCreateJobAppliedAndReady string = `cluster-create-job-applied-and-ready` ClusterDeleteJobApplied string = `cluster-delete-job-applied` DefaultsPatched string = "defaults-patched" KeyMsvcOutput string = "msvc-output" AnnotationCurrentStorageSize string = "kloudlite.io/msvc.storage-size" )
Variables ¶
View Source
var ApplyCheckList = []rApi.CheckMeta{ {Name: DefaultsPatched, Title: "Defaults Patched", Debug: true}, {Name: ClusterPrerequisitesReady, Title: "Cluster Pre-Requisites Ready"}, {Name: ClusterJobRBACReady, Title: "Cluster Lifecycle RBAC Ready", Debug: true}, {Name: ClusterCreateJobAppliedAndReady, Title: "Cluster Create Lifecycle Applied"}, }
View Source
var DeleteCheckList = []rApi.CheckMeta{
{Name: deleteClusterJob, Title: "Delete Cluster Lifecycle"},
}
Functions ¶
This section is empty.
Types ¶
type AwsClusterTFValues ¶ added in v1.1.0
type AwsClusterTFValues struct {
TrackerId string `json:"tracker_id"`
AwsRegion string `json:"aws_region"`
AwsAccessKey string `json:"aws_access_key"`
AwsSecretKey string `json:"aws_secret_key"`
AwsAssumeRole struct {
Enabled bool `json:"enabled"`
RoleARN string `json:"role_arn"`
ExternalID string `json:"external_id"`
} `json:"aws_assume_role"`
EnableNvidiaGPUSupport bool `json:"enable_nvidia_gpu_support"`
VpcID string `json:"vpc_id"`
K3sMasters struct {
InstanceType string `json:"instance_type"`
NvidiaGpuEnabled bool `json:"nvidia_gpu_enabled"`
RootVolumeSize int `json:"root_volume_size"`
RootVolumeType string `json:"root_volume_type"`
IAMInstanceProfile string `json:"iam_instance_profile"`
PublicDNSHost string `json:"public_dns_host"`
ClusterInternalDnsHost string `json:"cluster_internal_dns_host"`
Cloudflare TFCloudflareParams `json:"cloudflare"`
TaintMasterNodes bool `json:"taint_master_nodes"`
BackupToS3 struct {
Enabled bool `json:"enabled"`
} `json:"backup_to_s3"`
Nodes struct {
Role string `json:"role"`
AvailabilityZone string `json:"availability_zone"`
VpcSubnetId string `json:"vpc_subnet_id"`
LastRecreatedAt *metav1.Time `json:"last_recreated_at"`
KloudliteRelease string `json:"kloudlite_release"`
} `json:"nodes"`
} `json:"k3s_masters"`
KloudliteParams TFKloudliteParams `json:"kloudlite_params"`
}
type ClusterReconciler ¶
type ClusterReconciler struct {
client.Client
Scheme *runtime.Scheme
Env *env.Env
Name string
NotifyOnClusterUpdate func(ctx context.Context, obj *clustersv1.Cluster) error
// contains filtered or unexported fields
}
func (*ClusterReconciler) GetName ¶
func (r *ClusterReconciler) GetName() string
func (*ClusterReconciler) SetupWithManager ¶
type GCPServiceAccount ¶ added in v1.1.0
type GcpClusterTFValues ¶ added in v1.1.0
type GcpClusterTFValues struct {
GcpProjectId string `json:"gcp_project_id"`
GcpRegion string `json:"gcp_region"`
GcpCredentialsJson string `json:"gcp_credentials_json"`
K3sSerivceCIDR string `json:"k3s_service_cidr,omitempty"`
NamePrefix string `json:"name_prefix"`
ProvisionMode string `json:"provision_mode"`
Network string `json:"network"`
UseAsLonghornStorageNodes bool `json:"use_as_longhorn_storage_nodes"`
MachineType string `json:"machine_type"`
MachineState string `json:"machine_state"`
K3sDownloadURL string `json:"k3s_download_url"`
KloudliteRunnerDownloadURL string `json:"kloudlite_runner_download_url"`
ServiceAccount GCPServiceAccount `json:"service_account"`
Nodes map[string]TFGcpNode `json:"nodes"`
SaveSshKeyToPath string `json:"save_ssh_key_to_path,omitempty"`
SaveKubeconfigToPath string `json:"save_kubeconfig_to_path,omitempty"`
PublicDnsHost string `json:"public_dns_host"`
Cloudflare TFCloudflareParams `json:"cloudflare"`
KloudliteParams TFKloudliteParams `json:"kloudlite_params"`
Labels map[string]string `json:"labels"`
}
type TFCloudflareParams ¶ added in v1.1.0
type TFKloudliteAgentParams ¶ added in v1.1.0
type TFKloudliteParams ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.