app

package
v0.12.10 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 25 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(options *Options, config *rest.Config) (*App, error)

func (*App) RegisterPlugins

func (app *App) RegisterPlugins(plugins *plugins.BinderPlugins)

func (*App) Run

func (app *App) Run(ctx context.Context) error

type Options

type Options struct {
	SchedulerName                        string
	ResourceReservationNamespace         string
	ResourceReservationServiceAccount    string
	ResourceReservationPodImage          string
	ResourceReservationAppLabel          string
	ResourceReservationAllocationTimeout int
	ResourceReservationPodResourcesJSON  string
	ScalingPodNamespace                  string
	QPS                                  float64
	Burst                                int
	MaxConcurrentReconciles              int
	RateLimiterBaseDelaySeconds          int
	RateLimiterMaxDelaySeconds           int
	EnableLeaderElection                 bool
	MetricsAddr                          string
	ProbeAddr                            string
	FakeGPUNodes                         bool
	GpuCdiEnabled                        bool
	VolumeBindingTimeoutSeconds          int
	RuntimeClassName                     string
}

func InitOptions

func InitOptions(fs *pflag.FlagSet) *Options

Jump to

Keyboard shortcuts

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