app

package
v0.12.21 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	K8sInterface    kubernetes.Interface
	Client          client.WithWatch
	InformerFactory informers.SharedInformerFactory
	Options         *Options
	// contains filtered or unexported fields
}

func New

func New() (*App, error)

func (*App) RegisterPlugins

func (app *App) RegisterPlugins(admissionPlugins *admissionplugins.KaiAdmissionPlugins)

func (*App) Run

func (app *App) Run() error

type Options

type Options struct {
	SchedulerName               string
	QPS                         float64
	Burst                       int
	RateLimiterBaseDelaySeconds int
	RateLimiterMaxDelaySeconds  int
	EnableLeaderElection        bool
	MetricsAddr                 string
	ProbeAddr                   string
	WebhookPort                 int
	FakeGPUNodes                bool
	GPUSharingEnabled           bool
	GPUPodRuntimeClassName      string
}

func InitOptions

func InitOptions() *Options

Jump to

Keyboard shortcuts

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