Documentation
¶
Index ¶
- Constants
- func DownloadClusterAgentYAML(ctx context.Context, url, ca string, token, clusterID string) ([]byte, error)
- func GetRuntime(kubernetesVersion string) string
- func PlanSecretFromMachine(obj *capi.Machine) string
- func SecretToNode(secret *corev1.Secret) (*plan.Node, error)
- type ErrWaiting
- type PlanStatus
- type PlanStore
- type Planner
Constants ¶
View Source
const ( JoinURLAnnotation = "rke.cattle.io/join-url" InitNodeLabel = "rke.cattle.io/init-node" EtcdRoleLabel = "rke.cattle.io/etcd-role" WorkerRoleLabel = "rke.cattle.io/worker-role" ControlPlaneRoleLabel = "rke.cattle.io/control-plane-role" MachineUIDLabel = "rke.cattle.io/machine" MachineNameLabel = "rke.cattle.io/machine-name" MachineNamespaceLabel = "rke.cattle.io/machine-namespace" LabelsAnnotation = "rke.cattle.io/labels" TaintsAnnotation = "rke.cattle.io/taints" RuntimeK3S = "k3s" RuntimeRKE2 = "rke2" SecretTypeMachinePlan = "rke.cattle.io/machine-plan" )
View Source
const ( NoPlanPlanStatus PlanStatus = "NoPlan" NoPlanPlanStatusMessage = "waiting for plan to be assigned" WaitingPlanStatus PlanStatus = "Waiting" WaitingPlanStatusMessage = "waiting for plan to be applied" InSyncPlanStatus PlanStatus = "InSync" InSyncPlanStatusMessage = "plan applied" ErrorStatus PlanStatus = "Error" )
Variables ¶
This section is empty.
Functions ¶
func GetRuntime ¶
func PlanSecretFromMachine ¶
Types ¶
type ErrWaiting ¶
type ErrWaiting string
func (ErrWaiting) Error ¶
func (e ErrWaiting) Error() string
type PlanStatus ¶
type PlanStatus string
func GetPlanStatusReasonMessage ¶
func GetPlanStatusReasonMessage(plan *plan.Node) (corev1.ConditionStatus, PlanStatus, string)
type PlanStore ¶
type PlanStore struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(secrets corecontrollers.SecretController, machineCache capicontrollers.MachineCache) *PlanStore
type Planner ¶
type Planner struct {
// contains filtered or unexported fields
}
func (*Planner) CurrentPlan ¶
Click to show internal directories.
Click to hide internal directories.