applicationconfiguration

package
v0.1.1-0...-82ae068 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// WorkloadNamePath indicates field path of workload name
	WorkloadNamePath = "metadata.name"
)

Variables

This section is empty.

Functions

func Register

func Register(mgr manager.Manager)

Register will register application configuration validation to webhook

Types

type ValidatingHandler

type ValidatingHandler struct {
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
}

ValidatingHandler handles CloneSet

func (*ValidatingHandler) Handle

Handle validate ApplicationConfiguration Spec here

func (*ValidatingHandler) InjectClient

func (h *ValidatingHandler) InjectClient(c client.Client) error

InjectClient injects the client into the ValidatingHandler

func (*ValidatingHandler) InjectDecoder

func (h *ValidatingHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the ValidatingHandler

Jump to

Keyboard shortcuts

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