webhookadmission

package
v2.6.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertSecrets

func CreateCertSecrets(cert, key []byte, ns string) (*v1.Secret, error)

CreateCertSecrets creates k8s secret to store self signed cert data

func CreateMutateWebhook

func CreateMutateWebhook(caBundle []byte, ns string) error

CreateMutateWebhook create new webhookconfig for stork if not exist already

func GenerateCertificate

func GenerateCertificate(cn string) ([]byte, []byte, error)

GenerateCertificate Self Signed certificate using given CN, returns x509 cert and priv key in PEM format

func GetTLSCertificate

func GetTLSCertificate(cert, priv []byte) (tls.Certificate, error)

GetTLSCertificate from pub and priv key

Types

type Controller

type Controller struct {
	Recorder record.EventRecorder
	Driver   volume.Driver

	SkipResource string
	// contains filtered or unexported fields
}

Controller for admission mutating webhook to initialise resources with stork as scheduler, if given resources are using driver supported by stork

func (*Controller) Start

func (c *Controller) Start() error

Start Starts the Webhook server

func (*Controller) Stop

func (c *Controller) Stop() error

Stop Stops the webhook server

Jump to

Keyboard shortcuts

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