Documentation ¶
Overview ¶
Package constructors provides functions to prepare new objects (as described by the name of the function) This implements factory pattern.
Index ¶
- func CapabilityObjectList(capList []string) []apiv1.Capability
- func DefaultContainerSecurityContext() *apiv1.SecurityContext
- func DefaultEntrypoint() []string
- func DefaultPodSecurityContext() *apiv1.PodSecurityContext
- func DefaultProbrImageName() string
- func PodSpec(baseName string, namespace string) *apiv1.Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CapabilityObjectList ¶
func CapabilityObjectList(capList []string) []apiv1.Capability
CapabilityObjectList converts a list of strings into a list of capability objects
func DefaultContainerSecurityContext ¶
func DefaultContainerSecurityContext() *apiv1.SecurityContext
DefaultContainerSecurityContext returns an SC with the drop capabilities specified in config vars
func DefaultEntrypoint ¶
func DefaultEntrypoint() []string
DefaultEntrypoint is used by all default pods
func DefaultPodSecurityContext ¶
func DefaultPodSecurityContext() *apiv1.PodSecurityContext
DefaultPodSecurityContext returns a basic PSC
func DefaultProbrImageName ¶
func DefaultProbrImageName() string
DefaultProbrImageName joins the registry and image name specified in config vars
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.