Documentation
¶
Index ¶
- func HealthCheckHandler(writer http.ResponseWriter, _ *http.Request)
- type SideCar
- type SidecarInjectorPatcher
- func (patcher *SidecarInjectorPatcher) PatchPodCreate(ctx context.Context, namespace string, pod corev1.Pod) ([]admission.PatchOperation, error)
- func (patcher *SidecarInjectorPatcher) PatchPodDelete(_ context.Context, _ string, _ corev1.Pod) ([]admission.PatchOperation, error)
- func (patcher *SidecarInjectorPatcher) PatchPodUpdate(_ context.Context, _ string, _ corev1.Pod, _ corev1.Pod) ([]admission.PatchOperation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheckHandler ¶
func HealthCheckHandler(writer http.ResponseWriter, _ *http.Request)
HealthCheckHandler HttpServer function to handle Health check
Types ¶
type SideCar ¶
type SideCar struct { Name string `yaml:"name"` InitContainers []corev1.Container `yaml:"initContainers"` Containers []corev1.Container `yaml:"containers"` Volumes []corev1.Volume `yaml:"volumes"` ImagePullSecrets []corev1.LocalObjectReference `yaml:"imagePullSecrets"` Annotations map[string]string `yaml:"annotations"` Labels map[string]string `yaml:"labels"` }
SideCar Kubernetes Sidecar Injector schema
type SidecarInjectorPatcher ¶
type SidecarInjectorPatcher struct { K8sClient kubernetes.Interface InjectPrefix string InjectName string SidecarDataKey string AllowAnnotationOverrides bool AllowLabelOverrides bool }
SidecarInjectorPatcher Sidecar Injector patcher
func (*SidecarInjectorPatcher) PatchPodCreate ¶
func (patcher *SidecarInjectorPatcher) PatchPodCreate(ctx context.Context, namespace string, pod corev1.Pod) ([]admission.PatchOperation, error)
PatchPodCreate Handle Pod Create Patch
func (*SidecarInjectorPatcher) PatchPodDelete ¶
func (patcher *SidecarInjectorPatcher) PatchPodDelete(_ context.Context, _ string, _ corev1.Pod) ([]admission.PatchOperation, error)
PatchPodDelete not supported, only support create
func (*SidecarInjectorPatcher) PatchPodUpdate ¶
func (patcher *SidecarInjectorPatcher) PatchPodUpdate(_ context.Context, _ string, _ corev1.Pod, _ corev1.Pod) ([]admission.PatchOperation, error)
PatchPodUpdate not supported, only support create
Click to show internal directories.
Click to hide internal directories.