Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AnnotationEnableInjection is an annotation used to enable injection of the heist agent into a Pod. AnnotationEnableInjection = "heist.youniqx.com/inject-agent" // AnnotationAgentStatus is an annotation used by the heist operator to keep track of the injection status in Pods. AnnotationAgentStatus = "heist.youniqx.com/agent-status" // AnnotationAgentImage is an annotation used to customize the injected agent image. AnnotationAgentImage = "heist.youniqx.com/agent-image" // AnnotationAgentPreload is an annotation used to customize whether an // InitContainer is created to make sure the secret is there before the // main container starts. AnnotationAgentPreload = "heist.youniqx.com/agent-preload" // AnnotationAgentMountPaths is an annotation used to customize paths where secrets can be written. AnnotationAgentMountPaths = "heist.youniqx.com/agent-paths" // AgentStatusInjected is the value of the AnnotationAgentStatus annotation when the agent has already been injected. AgentStatusInjected = "injected" )
Variables ¶
This section is empty.
Functions ¶
func EscapeJSONPointer ¶
Types ¶
type Handler ¶
type Handler struct { Log logr.Logger VaultAPI vault.API K8sClient client.Client Filter operator.AnnotationFilter VaultAddress string AuthMountPath string Config *Config }
func (*Handler) Mutate ¶
func (h *Handler) Mutate(req *v1.AdmissionRequest) *v1.AdmissionResponse
Mutate takes an admission request and performs mutation if necessary, returning the final API response.
func (*Handler) NewInjector ¶
Click to show internal directories.
Click to hide internal directories.