constructors

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package constructors provides functions to prepare new objects (as described by the name of the function) This implements factory pattern.

Index

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

func PodSpec

func PodSpec(baseName string, namespace string) *apiv1.Pod

PodSpec constructs a simple pod object

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL