builder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package builder is based on the controller-runtime webhook builder. It's modified to support building webhooks for the unified admission controller that supports creating webhooks for both native and custom resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder builds a Webhook.

func WebhookManagedBy

func WebhookManagedBy(m manager.Manager) *Builder

WebhookManagedBy adds the manager to the builder.

func (*Builder) Complete

func (blder *Builder) Complete(c tkAdmission.Controller) error

Complete builds the webhook.

func (*Builder) MutatePath

func (blder *Builder) MutatePath(path string) *Builder

MutatePath is the mutation webhook endpoint path to use when registering the mutating webhook.

func (*Builder) ValidatePath

func (blder *Builder) ValidatePath(path string) *Builder

ValidatePath is the validating webhook endpoint path to use when registering the validating webhook.

Jump to

Keyboard shortcuts

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