Documentation ¶
Index ¶
Constants ¶
View Source
const ( AnnotationLowWaterLevel string = "webhook-demo.com/low-water-level" AnnotationHighWaterLevel string = "webhook-demo.com/high-water-level" AnnotationScheduleCompensation string = "webhook-demo.com/schedule-compensation" OnDemandNodeLabelKey string = "node.kubernetes.io/capacity" OnDemandValue string = "on-demand" SpotNodeLabelKey string = "node.kubernetes.io/capacity" SpotValue string = "spot" PDC string = "controller.kubernetes.io/pod-deletion-cost" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MutatingAdmission ¶
type MutatingAdmission struct { Decoder admission.Decoder Client *kubernetes.Clientset }
MutatingAdmission mutates API request if necessary.
func (*MutatingAdmission) GetAnnotationsOfDeployment ¶
func (a *MutatingAdmission) GetAnnotationsOfDeployment(ctx context.Context, pod *corev1.Pod) (*UserStrategy, error)
type UserStrategy ¶
type ValidatingAdmission ¶
Click to show internal directories.
Click to hide internal directories.