controller

package
v0.0.0-...-e6b8f73 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverPath                  = "/bin/driver"
	DestDriverPath              = "/opt/app-root/src/bin/driver"
	PodImageKey                 = "pod-image"
	DriverImageKey              = "driver-image"
	DriverServiceAccountKey     = "driver-serviceaccount"
	PodCheckingIntervalKey      = "pod-checking-interval"
	ImagePullPolicyKey          = "image-pull-policy"
	GrpcPortKey                 = "grpc-port"
	GrpcServiceKey              = "grpc-service"
	GrpcServerSecretKey         = "grpc-server-secret"
	GrpcClientSecretKey         = "grpc-client-secret"
	GrpcServerCertEnv           = "GRPC_SERVER_CERT"
	GrpcServerKeyEnv            = "GRPC_SERVER_KEY"
	GrpcClientCaEnv             = "GRPC_CLIENT_CA"
	DefaultPodImage             = "quay.io/yhwang/lm-eval-aas-flask:test"
	DefaultDriverImage          = "quay.io/yhwang/lm-eval-aas-driver:test"
	DefaultDriverServiceAccount = "driver"
	DefaultPodCheckingInterval  = time.Second * 10
	DefaultImagePullPolicy      = corev1.PullAlways
	DefaultGrpcPort             = 8082
	DefaultGrpcService          = "lm-eval-grpc"
	DefaultGrpcServerSecret     = "grpc-server-cert"
	DefaultGrpcClientSecret     = "grpc-client-cert"
)

Variables

This section is empty.

Functions

func StartGrpcServer

func StartGrpcServer(ctx context.Context, ctor *LMEvalJobReconciler) error

Types

type LMEvalJobReconciler

type LMEvalJobReconciler struct {
	client.Client
	Scheme    *runtime.Scheme
	Recorder  record.EventRecorder
	ConfigMap string
	Namespace string
	// contains filtered or unexported fields
}

LMEvalJobReconciler reconciles a LMEvalJob object

func (*LMEvalJobReconciler) Reconcile

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

func (*LMEvalJobReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type ServiceOptions

type ServiceOptions struct {
	PodImage             string
	DriverImage          string
	DriverServiceAccount string
	PodCheckingInterval  time.Duration
	ImagePullPolicy      corev1.PullPolicy
	GrpcPort             int
	GrpcService          string
	GrpcServerSecret     string
	GrpcClientSecret     string
	// contains filtered or unexported fields
}

type TLSMode

type TLSMode int
const (
	TLSMode_None TLSMode = 0
	TLSMode_TLS  TLSMode = 1
	TLSMode_mTLS TLSMode = 2
)

Jump to

Keyboard shortcuts

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