corev1

package
v0.0.0-...-cb22ee8 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructCMVols

func ConstructCMVols(volNames []string) []corev1.Volume

func ConstructConfigMap

func ConstructConfigMap(ns string, name string) *corev1.ConfigMap

func ConstructEnvFrom

func ConstructEnvFrom(names []string, types []string) []corev1.EnvFromSource

func ConstructExpectedContainerSpec

func ConstructExpectedContainerSpec(options ...expectedContainerOption) corev1.Container

func ConstructExpectedPodSpec

func ConstructExpectedPodSpec(options ...ExpectedPodSpecOption) corev1.PodSpec

func ConstructMergedVols

func ConstructMergedVols(cmVolNames []string, secretVolNames []string) []corev1.Volume

func ConstructMounts

func ConstructMounts(names []string, paths []string) []corev1.VolumeMount

func ConstructSecret

func ConstructSecret(ns string, name string) *corev1.Secret

func ConstructSecretVols

func ConstructSecretVols(volNames []string) []corev1.Volume

func ConstructVolumeSources

func ConstructVolumeSources(cms []string, secrets []string) []corev1.Volume

func GetNS

func GetNS(name string, labels map[string]string) *corev1.Namespace

func GetSecret

func GetSecret(ns, name string, options ...expectedSecretOption) *corev1.Secret

func GetServiceAccount

func GetServiceAccount(name, namespace string) *corev1.ServiceAccount

func WithCommand

func WithCommand(cmd []string) expectedContainerOption

func WithEnv

func WithEnv(keys []string, vals []string) expectedContainerOption

func WithEnvFromSecretorCM

func WithEnvFromSecretorCM(names []string, types []string) expectedContainerOption

func WithImage

func WithImage(image string) expectedContainerOption

func WithImagePullPolicy

func WithImagePullPolicy(pullPolicy corev1.PullPolicy) expectedContainerOption

func WithName

func WithName(name string) expectedContainerOption

func WithPort

func WithPort(port int32) expectedContainerOption

func WithResources

func WithResources(cpuReq int64, cpuLim int64, memReq int64, memLim int64) expectedContainerOption

func WithSecretAnnotations

func WithSecretAnnotations(annotations map[string]string) expectedSecretOption

func WithSecretType

func WithSecretType(secretType string) expectedSecretOption

func WithSecurityContext

func WithSecurityContext(user int64) expectedContainerOption

func WithVolumeMounts

func WithVolumeMounts(names []string, paths []string) expectedContainerOption

Types

type ExpectedPodSpecOption

type ExpectedPodSpecOption func(*corev1.PodSpec)

func WithContainerOptions

func WithContainerOptions(options ...expectedContainerOption) ExpectedPodSpecOption

func WithRestartPolicy

func WithRestartPolicy(policy string) ExpectedPodSpecOption

func WithServiceAccount

func WithServiceAccount(sa string) ExpectedPodSpecOption

func WithVolumes

func WithVolumes(cms []string, secrets []string) ExpectedPodSpecOption

Jump to

Keyboard shortcuts

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