Documentation
¶
Index ¶
- Constants
- func Client() *kubernetes.Clientset
- func FindTokenVolumeName(volumes []corev1.Volume) string
- func FindVolumeMount(volumes []corev1.VolumeMount, name string) corev1.VolumeMount
- func GetAnnotationValue(pod corev1.Pod, name *registeredAnnotation, defaultValue string) string
- func GetDeploymentName(name string) (string, error)
- func InitLogrus(engine *gin.Engine)
- func Load(file string, c interface{})
- func Log() *logrus.Logger
- func LoggerWithLogrus(log *logrus.Logger) gin.HandlerFunc
- func Pod(raw []byte, pod *corev1.Pod) error
- func PotentialNamespace(req *v1beta1.AdmissionRequest, pod *corev1.Pod) string
- func PotentialPodName(metadata *metav1.ObjectMeta) string
- func ToAdmissionResponse(err error) *v1beta1.AdmissionResponse
- type KiamData
- type KiamInject
- type PatchOperation
- type WebHook
- type WebHookConfig
Constants ¶
View Source
const GIN = "[GIN]"
View Source
const (
KiamConfig = "kiam-config"
)
Variables ¶
This section is empty.
Functions ¶
func Client ¶
func Client() *kubernetes.Clientset
func FindTokenVolumeName ¶
func FindVolumeMount ¶
func FindVolumeMount(volumes []corev1.VolumeMount, name string) corev1.VolumeMount
func GetAnnotationValue ¶
func GetDeploymentName ¶
func InitLogrus ¶
func LoggerWithLogrus ¶
func LoggerWithLogrus(log *logrus.Logger) gin.HandlerFunc
func PotentialNamespace ¶
func PotentialNamespace(req *v1beta1.AdmissionRequest, pod *corev1.Pod) string
func PotentialPodName ¶
func PotentialPodName(metadata *metav1.ObjectMeta) string
Deal with potential empty fields, e.g., when the pod is created by a deployment
func ToAdmissionResponse ¶
func ToAdmissionResponse(err error) *v1beta1.AdmissionResponse
Types ¶
type KiamInject ¶
type PatchOperation ¶
type WebHook ¶
type WebHook struct { Config *WebHookConfig KiamConfig *KiamInject }
type WebHookConfig ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.