webhook

package
v0.0.0-...-7b27278 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunWebhook

func RunWebhook(wp *PullerWebhookParameters, stop chan struct{})

Types

type PullerWebhookParameters

type PullerWebhookParameters struct {
	// Webhook port
	Port uint

	// CACertFile is the path to the x509 CA bundle file.
	CACertFile string

	// CertFile is the path to the x509 certificate for https.
	CertFile string

	// KeyFile is the path to the x509 private key matching `CertFile`.
	KeyFile string

	// WebhookConfigFile is the path to the mutatingwebhookconfiguration
	WebhookConfigFile string

	// Namespace is the namespace in which the deployment and service resides.
	Namespace string

	// Name of the webhook
	WebhookName string

	// The webhook deployment name
	DeploymentName string

	// RegistrySecretFile is the name of the yaml file containing the registry secret
	RegistrySecretFile string

	Clientset clientset.Interface
}

func DefaultArgs

func DefaultArgs() *PullerWebhookParameters

func (*PullerWebhookParameters) String

func (p *PullerWebhookParameters) String() string

func (*PullerWebhookParameters) Validate

func (p *PullerWebhookParameters) Validate() error

Validate tests if the PullerWebhookParameters has valid params.

type Webhook

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

func NewWebhook

func NewWebhook(p PullerWebhookParameters) (*Webhook, error)

NewWebhook creates a new instance of the admission webhook controller.

func (*Webhook) Run

func (wh *Webhook) Run(stopCh <-chan struct{})

Run implements the webhook server

Jump to

Keyboard shortcuts

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