webhook

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IntelID    = "8086"
	MellanoxID = "15b3"
	MlxMaxVFs  = 128
)

Variables

View Source
var Codecs = serializer.NewCodecFactory(scheme)
View Source
var (
	InfiniBandIsRdmaPatch = map[string]interface{}{"op": "add", "path": "/spec/isRdma", "value": true}
)

Functions

func MutateCustomResource

func MutateCustomResource(ar v1.AdmissionReview) *v1.AdmissionResponse

func NewTLSKeypairReloader added in v1.2.0

func NewTLSKeypairReloader(certPath, keyPath string) (*tlsKeypairReloader, error)

func RetriveSupportedNics added in v1.1.0

func RetriveSupportedNics() error

func SetupInClusterClient

func SetupInClusterClient() error

func ValidateCustomResource

func ValidateCustomResource(ar v1.AdmissionReview) *v1.AdmissionResponse

Types

type Config

type Config struct {
	CertFile string
	KeyFile  string
}

Config contains the server (the webhook) cert and key.

Jump to

Keyboard shortcuts

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