pod

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Affinity

func Affinity(podAntiAffinitySelector map[string]string, nodeAffinity *corev1.NodeAffinity) *corev1.Affinity

Affinity returns a corev1.Affinity struct

func BuildEnvironment

func BuildEnvironment(opts interface{}) []corev1.EnvVar

func ContainerPortTCP

func ContainerPortTCP(name string, port int32) corev1.ContainerPort

ContainerPortTCP returns a TCP corev1.ContainerPort

func ContainerPorts

func ContainerPorts(ports ...corev1.ContainerPort) []corev1.ContainerPort

ContainerPorts returns a list of corev1.ContainerPort

func ExecProbe

func ExecProbe(command string, cfg saasv1alpha1.ProbeSpec) *corev1.Probe

ExecProbe returns a exec type corev1.Probe struct

func GenerateExternalSecretFn

func GenerateExternalSecretFn(name, namespace, secretStoreName, secretStoreKind string, refreshInterval metav1.Duration, labels map[string]string,
	opts interface{}) func(client.Object) (*externalsecretsv1beta1.ExternalSecret, error)

GenerateExternalSecretFn generates a ExternalSecret

func HTTPProbe

func HTTPProbe(path string, port intstr.IntOrString, scheme corev1.URIScheme, cfg saasv1alpha1.ProbeSpec) *corev1.Probe

HTTPProbe returns an HTTP corev1.Probe struct

func HTTPProbeWithHeaders

func HTTPProbeWithHeaders(path string, port intstr.IntOrString, scheme corev1.URIScheme, cfg saasv1alpha1.ProbeSpec, headers map[string]string) *corev1.Probe

func Image

func Image(image saasv1alpha1.ImageSpec) string

func ImagePullSecrets

func ImagePullSecrets(ips *string) []corev1.LocalObjectReference

func TCPProbe

func TCPProbe(port intstr.IntOrString, cfg saasv1alpha1.ProbeSpec) *corev1.Probe

TCPProbe returns a TCP corev1.Probe struct

Types

type ClearTextValue

type ClearTextValue struct {
	Value string
}

func (*ClearTextValue) ToEnvVar

func (ctv *ClearTextValue) ToEnvVar(key string) corev1.EnvVar

type EnvVarValue

type EnvVarValue interface {
	ToEnvVar(key string) corev1.EnvVar
}

type SecretValue

type SecretValue struct {
	Value saasv1alpha1.SecretReference
}

func (*SecretValue) ToEnvVar

func (sv *SecretValue) ToEnvVar(key string) corev1.EnvVar

Jump to

Keyboard shortcuts

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