automount

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer added in v0.3.0

func NewServer(mgr manager.Manager, namespace string) (*webhook.Server, error)

Types

type Handler

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

Handler handles pod admission requests, mutating pods that request service account imports. It is implemented by the service-account-import-admission-controller command, via controller-runtime. If a pod is annotated with the "multicluster.admiralty.io/service-account-import.name" key, where the value is a comma-separated list of service account import names, for each service account import, a volume is added to the pod, sourced from the first secret listed by the service account import, and mounted in each of the pod's containers under /var/run/secrets/admiralty.io/serviceaccountimports/%s, where %s is the service account import name.

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, req atypes.Request) atypes.Response

func (*Handler) InjectClient

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

InjectClient injects the client.

func (*Handler) InjectDecoder

func (h *Handler) InjectDecoder(d atypes.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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