controller

package
v0.0.0-...-d60363c Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ResourceName is the base name used for MLflow resources (deployments, services, etc.)
	ResourceName = "mlflow"
	// ClusterRoleName is the name of the shared ClusterRole used by all MLflow instances
	ClusterRoleName = "mlflow"
	// ServiceAccountName is the name of the service account for MLflow deployments
	ServiceAccountName = "mlflow-sa"
	// TLSSecretName is the default name for the TLS secret used by the MLflow server
	TLSSecretName = "mlflow-tls"
	// StaticPrefix is the URL prefix for MLflow when deployed via the operator
	StaticPrefix = "/mlflow"
)

Variables

This section is empty.

Functions

func IsConsoleLinkAvailable

func IsConsoleLinkAvailable(discoveryClient discovery.DiscoveryInterface) (bool, error)

IsConsoleLinkAvailable checks if ConsoleLink CRD is available in the cluster using discovery API

func IsHTTPRouteAvailable

func IsHTTPRouteAvailable(discoveryClient discovery.DiscoveryInterface) (bool, error)

IsHTTPRouteAvailable checks if HTTPRoute CRD is available in the cluster using discovery API

Types

type HelmRenderer

type HelmRenderer struct {
	// contains filtered or unexported fields
}

HelmRenderer handles rendering of Helm charts

func NewHelmRenderer

func NewHelmRenderer(chartPath string) *HelmRenderer

NewHelmRenderer creates a new HelmRenderer

func (*HelmRenderer) RenderChart

func (h *HelmRenderer) RenderChart(mlflow *mlflowv1.MLflow, namespace string) ([]*unstructured.Unstructured, error)

RenderChart renders the Helm chart with the given values

type MLflowReconciler

type MLflowReconciler struct {
	client.Client
	Scheme               *runtime.Scheme
	Namespace            string
	ChartPath            string
	ConsoleLinkAvailable bool
	HTTPRouteAvailable   bool
}

MLflowReconciler reconciles a MLflow object

func (*MLflowReconciler) Reconcile

func (r *MLflowReconciler) 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.

func (*MLflowReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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