apiserver

package
v1.6.4-pre.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 39 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const LeaderElectionID = "porch-server"
View Source
const NameIndexKey = "metadata.name"

Variables

View Source
var (
	// Scheme defines methods for serializing and deserializing API objects.
	Scheme = runtime.NewScheme()
	// Codecs provides methods for retrieving codecs and serializers for specific
	// versions and content types.
	Codecs = serializer.NewCodecFactory(Scheme)
)

Functions

This section is empty.

Types

type CompletedConfig

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

CompletedConfig embeds a private pointer that cannot be instantiated outside of this package.

func (CompletedConfig) New

func (c CompletedConfig) New(ctx context.Context) (manager.Manager, *PorchServer, error)

New returns a new manager with PorchServer and FunctionConfigReconciler registered from the given config.

type Config

type Config struct {
	GenericConfig *genericapiserver.RecommendedConfig
	ExtraConfig   ExtraConfig
}

Config defines the config for the apiserver

func (*Config) Complete

func (cfg *Config) Complete() CompletedConfig

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

type ExtraConfig

type ExtraConfig struct {
	CoreAPIKubeconfigPath string

	GRPCRuntimeOptions engine.GRPCRuntimeOptions
	CacheOptions       cachetypes.CacheOptions

	PodEvaluatorOptions podevaluator.PodEvaluatorOptions

	ExecEvaluatorOptions engine.ExecutableEvaluatorOptions
	HAOptions            HAConfig

	PodNameSpace  string
	FunctionStore *functionconfigs.FunctionConfigStore

	ProbePort int

	LifecyclePolicy lifecycle.Options
}

ExtraConfig holds custom apiserver config

type HAConfig

type HAConfig struct {
	LeaderElection bool
	LeaseDuration  time.Duration
	RenewDeadline  time.Duration
	RetryPeriod    time.Duration
}

type PorchServer

type PorchServer struct {
	GenericAPIServer *genericapiserver.GenericAPIServer
	// contains filtered or unexported fields
}

PorchServer contains state for a Kubernetes cluster master/api server.

func (*PorchServer) NeedLeaderElection

func (s *PorchServer) NeedLeaderElection() bool

func (*PorchServer) Start

func (s *PorchServer) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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