server

package
v0.0.0-...-2c1c132 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 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.MustCreateLabel(group)

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

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

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

	// StatusTag holds the error code for the context.
	StatusTag = monitoring.MustCreateLabel(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 Aeraki CRD resources,
	// e.g. cluster.local.
	// DefaultKubernetesDomain = "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 (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