webhooks

package
v0.0.0-...-82207cb Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

TODO: describe package here.

Index

Constants

View Source
const (
	KnativeServiceLabel = "serving.knative.dev/service"

	// UserPortName is the name of the user port. The pod injector will rewrite this port, and update the PORT
	// environment variable to the new value. Intentionally chosen to match Knatives user port name.
	UserPortName = "user-port"

	// DefaultUserPortRewrite is the default value that the pod injector will rewrite the user port to be. If this port
	// is already taken, it will increment by 1 until it finds one that isn't specified as a container port.
	DefaultUserPortRewrite = int32(8080)

	// DefaultCloudstatePort is the default port used if no user port can be determined.
	DefaultCloudstatePort = int32(8013)

	PortEnvVar = "PORT"

	CloudstateSidecarName = "cloudstate-sidecar"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PodInjector

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

func NewPodInjector

func NewPodInjector(client client.Client, log logr.Logger, store stores.Stores, config *config.OperatorConfig) *PodInjector

func (*PodInjector) Handle

+kubebuilder:webhook:path=/inject-v1-pod,mutating=true,failurePolicy=fail,groups="",resources=pods,verbs=create;update,versions=v1,name=pod-injector.cloudstate.io

func (*PodInjector) InjectDecoder

func (i *PodInjector) InjectDecoder(d *admission.Decoder) error

Jump to

Keyboard shortcuts

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