apiserver: k8s.io/apiserver/pkg/admission/plugin/webhook/object Index | Files

package object

import "k8s.io/apiserver/pkg/admission/plugin/webhook/object"

Package object defines the utilities that are used by the webhook plugin to decide if a webhook should run, as long as either the old object or the new object has labels matching the webhook config's objectSelector.

Index

Package Files

doc.go matcher.go

type Matcher Uses

type Matcher struct {
}

Matcher decides if a request selected by the ObjectSelector.

func (*Matcher) MatchObjectSelector Uses

func (m *Matcher) MatchObjectSelector(h webhook.WebhookAccessor, attr admission.Attributes) (bool, *apierrors.StatusError)

MatchObjectSelector decideds whether the request matches the ObjectSelector of the webhook. Only when they match, the webhook is called.

Package object imports 7 packages (graph) and is imported by 2 packages. Updated 2019-11-02. Refresh now. Tools for package owners.