multicluster-service-account: admiralty.io/multicluster-service-account/pkg/automount Index | Files

package automount

import "admiralty.io/multicluster-service-account/pkg/automount"

Index

Package Files

automount.go

func NewServer Uses

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

func NewWebhook Uses

func NewWebhook(mgr manager.Manager) (*admission.Webhook, error)

https://kubernetes.slack.com/archives/CAR30FCJZ/p1547254570666900

type Handler Uses

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 Uses

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

func (*Handler) InjectClient Uses

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

InjectClient injects the client.

func (*Handler) InjectDecoder Uses

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

InjectDecoder injects the decoder.

Package automount imports 20 packages (graph) and is imported by 1 packages. Updated 2019-07-10. Refresh now. Tools for package owners.