server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PollingInterval = 5 * time.Second
	PollingTimeout  = 2 * time.Minute
)

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(kubeConfig string) (clientcmd.ClientConfig, error)

func WaitingWebhooks

func WaitingWebhooks(ctx context.Context, clientSet *kubernetes.Clientset, releaseName string) error

WaitingWebhooks waits for the admission webhook server to registered successfully.

Types

type APIServer

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

func NewServer

func NewServer(opts sconfig.Options) (*APIServer, error)

func (*APIServer) ListenAndServe

func (s *APIServer) ListenAndServe(opts sconfig.Options, listenOpts *dlserver.ListenOpts) error

type PostStartHook

type PostStartHook func(int) error

type Router

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

func NewRouter

func NewRouter(mgmt *config.Scaled) *Router

func (*Router) Routes

func (r *Router) Routes() http.Handler

Routes adds additional customize routes to the default router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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