Documentation ¶
Index ¶
Constants ¶
View Source
const (
InjectedPersistentPodStateKey = "kruise.io/injected-persistent-pod-state"
)
Variables ¶
View Source
var ( // HandlerGetterMap contains admission webhook handlers HandlerGetterMap = map[string]types.HandlerGetter{ "mutate-pod": func(mgr manager.Manager) admission.Handler { return &PodCreateHandler{ Client: mgr.GetClient(), Decoder: admission.NewDecoder(mgr.GetScheme()), } }, } )
Functions ¶
func SelectorPersistentPodState ¶ added in v1.2.0
func SelectorPersistentPodState(reader client.Reader, ref appsv1alpha1.TargetReference, ns string) *appsv1alpha1.PersistentPodState
Types ¶
type PodCreateHandler ¶
type PodCreateHandler struct { // To use the client, you need to do the following: // - uncomment it // - import sigs.k8s.io/controller-runtime/pkg/client // - uncomment the InjectClient method at the bottom of this file. Client client.Client // Decoder decodes objects Decoder *admission.Decoder }
PodCreateHandler handles Pod
Click to show internal directories.
Click to hide internal directories.