controller

package
v0.0.0-...-d529167 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevenvReconciler

type DevenvReconciler struct {
	client.Client
	Scheme                  *runtime.Scheme
	Recorder                record.EventRecorder
	PendingNodesForDeletion []string
}

DevenvReconciler reconciles a Devenv object

func (*DevenvReconciler) Reconcile

func (r *DevenvReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. the Devenv object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.18.2/pkg/reconcile

func (*DevenvReconciler) SetupWithManager

func (r *DevenvReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type DevenvStatusUpdate

type DevenvStatusUpdate struct {
	ControlPlane   []tanuudevv1alpha1.NodeInfo
	Workers        []tanuudevv1alpha1.NodeInfo
	Gpus           []tanuudevv1alpha1.NodeInfo
	IpAddress      string
	CloudProvider  string
	Status         string
	KubeConfig     string
	Services       []string
	WorkerReplicas int
	GpuReplicas    int
	WorkerSelector string
	CtrlSelector   string
	GpuSelector    string
}

DevenvStatusUpdate represents the status information you want to update for a Devenv object.

type Environment

type Environment struct {
	Name                    string
	ControlPlane            string
	Workers                 string
	Gpus                    string
	TailScaleClientID       string
	TailScaleClientSecret   string
	GitHubToken             string
	Gpu                     bool
	K8sVersion              string
	TalosVersion            string
	OnePasswordConnectToken string
}

type KubeConfig

type KubeConfig struct {
	Host    string
	Tailnet string
}

Jump to

Keyboard shortcuts

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