v1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMap

func ConfigMap(name, namespace string, opt ...ConfigMapOption) *corev1.ConfigMap

func Container

func Container(opt ...ContainerOption) *corev1.Container

func PersistentVolumeClaim

func PersistentVolumeClaim(name, namespace string, opt ...PersistentVolumeClaimOption) *corev1.PersistentVolumeClaim

func PodSpec

func PodSpec(opt ...PodSpecOption) *corev1.PodSpec

func Secret

func Secret(name, namespace string, opt ...SecretOption) *corev1.Secret

func Service

func Service(name, namespace string, opt ...ServiceOption) *corev1.Service

func Volume

func Volume(name string, opt ...VolumeOption) *corev1.Volume

Types

type ConfigMapOption

type ConfigMapOption func(*corev1.ConfigMap)

func WithConfigMapData

func WithConfigMapData(name string, value string) ConfigMapOption

type ContainerOption

type ContainerOption func(*corev1.Container)

func WithContainerArgs

func WithContainerArgs(args []string) ContainerOption

func WithContainerCommand

func WithContainerCommand(command []string) ContainerOption

func WithContainerEnv

func WithContainerEnv(env corev1.EnvVar) ContainerOption

func WithContainerEnvFrom

func WithContainerEnvFrom(envSource corev1.EnvFromSource) ContainerOption

func WithContainerEnvFromValue

func WithContainerEnvFromValue(name string, value string) ContainerOption

func WithContainerImage

func WithContainerImage(image string) ContainerOption

func WithContainerName

func WithContainerName(name string) ContainerOption

func WithContainerPort

func WithContainerPort(port int32) ContainerOption

func WithContainerVolumeMounts

func WithContainerVolumeMounts(name string, readonly bool, mountPath string, subPath string) ContainerOption

type PersistentVolumeClaimOption

type PersistentVolumeClaimOption func(*corev1.PersistentVolumeClaim)

type PodSpecOption

type PodSpecOption func(*corev1.PodSpec)

func WithPodSpecContainer

func WithPodSpecContainer(container *corev1.Container) PodSpecOption

func WithPodSpecVolume

func WithPodSpecVolume(volume *corev1.Volume) PodSpecOption

type SecretOption

type SecretOption func(*corev1.Secret)

func WithSecretData

func WithSecretData(name string, data []byte) SecretOption

type ServiceOption

type ServiceOption func(*corev1.Service)

func WithServiceLabels

func WithServiceLabels(m map[string]string) ServiceOption

func WithServiceOwnerReference

func WithServiceOwnerReference(ownerReference metav1.OwnerReference) ServiceOption

func WithServicePort

func WithServicePort(name string, protocol corev1.Protocol, port int32, targetPort int32) ServiceOption

func WithServiceSelector

func WithServiceSelector(m map[string]string) ServiceOption

type VolumeOption

type VolumeOption func(*corev1.Volume)

func WithVolumeSourceConfigMap

func WithVolumeSourceConfigMap(name string) VolumeOption

func WithVolumeSourcePersistentVolumeClaim

func WithVolumeSourcePersistentVolumeClaim(name string) VolumeOption

func WithVolumeSourceSecret

func WithVolumeSourceSecret(name string) VolumeOption

Jump to

Keyboard shortcuts

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