Documentation ¶
Index ¶
- Constants
- func MutateDaemonSet(ds *appsv1.DaemonSet, sliceName string) *appsv1.DaemonSet
- func MutateDeployment(deploy *appsv1.Deployment, sliceName string) *appsv1.Deployment
- func MutatePod(pod *corev1.Pod, sliceName string) *corev1.Pod
- func MutateStatefulset(ss *appsv1.StatefulSet, sliceName string) *appsv1.StatefulSet
- func NewWebhookClient() *webhookClient
- type SliceInfoProvider
- type WebhookServer
Constants ¶
View Source
const ( AdmissionWebhookAnnotationStatusKey = "kubeslice.io/status" PodInjectLabelKey = "kubeslice.io/pod-type" )
Variables ¶
This section is empty.
Functions ¶
func MutateDaemonSet ¶
func MutateDeployment ¶
func MutateDeployment(deploy *appsv1.Deployment, sliceName string) *appsv1.Deployment
func MutateStatefulset ¶
func MutateStatefulset(ss *appsv1.StatefulSet, sliceName string) *appsv1.StatefulSet
func NewWebhookClient ¶
func NewWebhookClient() *webhookClient
Types ¶
type SliceInfoProvider ¶
type WebhookServer ¶
type WebhookServer struct { Client client.Client SliceInfoClient SliceInfoProvider // contains filtered or unexported fields }
func (*WebhookServer) InjectDecoder ¶
func (wh *WebhookServer) InjectDecoder(d *admission.Decoder) error
func (*WebhookServer) MutationRequired ¶
func (wh *WebhookServer) MutationRequired(metadata metav1.ObjectMeta, ctx context.Context, kind string) (bool, string)
Click to show internal directories.
Click to hide internal directories.