Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { ModifyContainerConfig(pod *v1.Pod, config *container.Config) ModifyHostConfig(pod *v1.Pod, hostConfig *container.HostConfig) }
Provider is interface for security context modification
func NewSimpleSecurityContextProvider ¶
func NewSimpleSecurityContextProvider() Provider
NewSimpleSecurityContextProvider initialises and returns security context provider
type SimpleSecurityContextProvider ¶
type SimpleSecurityContextProvider struct{}
SimpleSecurityContextProvider is object ot define security context provider
func (SimpleSecurityContextProvider) ModifyContainerConfig ¶
func (s SimpleSecurityContextProvider) ModifyContainerConfig(pod *v1.Pod, config *container.Config)
ModifyContainerConfig changes security context of container
func (SimpleSecurityContextProvider) ModifyHostConfig ¶
func (s SimpleSecurityContextProvider) ModifyHostConfig(pod *v1.Pod, hostConfig *container.HostConfig)
ModifyHostConfig modifies security context of host
Click to show internal directories.
Click to hide internal directories.