Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NSAnnotation = "shikanon.com/node-affinity"
)
Functions ¶
func RegisterMutatingHandler ¶
Types ¶
type PodAffinityMutatingHandler ¶
type PodAffinityMutatingHandler struct { Client ctrlClient.Client // contains filtered or unexported fields }
MutatingHandler handles Component
func (*PodAffinityMutatingHandler) Handle ¶
func (h *PodAffinityMutatingHandler) Handle(ctx context.Context, req ctrlAdmission.Request) ctrlAdmission.Response
pod affinity mutating rule function, can read the namespace labels to set pod affinity
func (*PodAffinityMutatingHandler) InjectDecoder ¶
func (h *PodAffinityMutatingHandler) InjectDecoder(d *ctrlAdmission.Decoder) error
InjectDecoder injects the decoder.
Click to show internal directories.
Click to hide internal directories.