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
Click to show internal directories.
Click to hide internal directories.