server

package
v0.0.0-...-0f2ddd3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupTag holds the resource group for the context.
	GroupTag = monitoring.CreateLabel(group)

	// VersionTag holds the resource version for the context.
	VersionTag = monitoring.CreateLabel(version)

	// ResourceTag holds the resource name for the context.
	ResourceTag = monitoring.CreateLabel(resourceTag)

	// ReasonTag holds the error reason for the context.
	ReasonTag = monitoring.CreateLabel(reason)

	// StatusTag holds the error code for the context.
	StatusTag = monitoring.CreateLabel(status)
)

Functions

This section is empty.

Types

type Options

type Options struct {
	// Schemas provides a description of all configuration resources.
	Schemas collection.Schemas

	// DomainSuffix is the DNS domain suffix for Pilot CRD resources,
	// e.g. cluster.local.
	DomainSuffix string

	// Port where the webhook is served. the number should be greater than 1024 for non-root
	// user, because non-root user cannot bind port number less than 1024
	// Mainly used for testing. Webhook server is started by Istiod.
	Port uint

	// Use an existing mux instead of creating our own.
	Mux *http.ServeMux
}

Options contains the configuration for the Istio Pilot validation admission controller.

func DefaultArgs

func DefaultArgs() Options

DefaultArgs allocates an Options struct initialized with Webhook's default configuration.

func (Options) String

func (o Options) String() string

String produces a stringified version of the arguments for debugging.

func (Options) Validate

func (o Options) Validate() error

Validate tests if the Options has valid params.

type Webhook

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

Webhook implements the validating admission webhook for validating Istio configuration.

func New

func New(o Options) (*Webhook, error)

New creates a new instance of the admission webhook server.

Jump to

Keyboard shortcuts

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