Documentation ¶
Index ¶
- func ConstructCMVols(volNames []string) []corev1.Volume
- func ConstructConfigMap(ns string, name string) *corev1.ConfigMap
- func ConstructEnvFrom(names []string, types []string) []corev1.EnvFromSource
- func ConstructExpectedContainerSpec(options ...expectedContainerOption) corev1.Container
- func ConstructExpectedPodSpec(options ...ExpectedPodSpecOption) corev1.PodSpec
- func ConstructMergedVols(cmVolNames []string, secretVolNames []string) []corev1.Volume
- func ConstructMounts(names []string, paths []string) []corev1.VolumeMount
- func ConstructSecret(ns string, name string) *corev1.Secret
- func ConstructSecretVols(volNames []string) []corev1.Volume
- func ConstructVolumeSources(cms []string, secrets []string) []corev1.Volume
- func GetNS(name string, labels map[string]string) *corev1.Namespace
- func GetSecret(ns, name string, options ...expectedSecretOption) *corev1.Secret
- func GetServiceAccount(name, namespace string) *corev1.ServiceAccount
- func WithCommand(cmd []string) expectedContainerOption
- func WithEnv(keys []string, vals []string) expectedContainerOption
- func WithEnvFromSecretorCM(names []string, types []string) expectedContainerOption
- func WithImage(image string) expectedContainerOption
- func WithImagePullPolicy(pullPolicy corev1.PullPolicy) expectedContainerOption
- func WithName(name string) expectedContainerOption
- func WithPort(port int32) expectedContainerOption
- func WithResources(cpuReq int64, cpuLim int64, memReq int64, memLim int64) expectedContainerOption
- func WithSecretAnnotations(annotations map[string]string) expectedSecretOption
- func WithSecretType(secretType string) expectedSecretOption
- func WithSecurityContext(user int64) expectedContainerOption
- func WithVolumeMounts(names []string, paths []string) expectedContainerOption
- type ExpectedPodSpecOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructCMVols ¶
func ConstructEnvFrom ¶
func ConstructEnvFrom(names []string, types []string) []corev1.EnvFromSource
func ConstructExpectedPodSpec ¶
func ConstructExpectedPodSpec(options ...ExpectedPodSpecOption) corev1.PodSpec
func ConstructMergedVols ¶
func ConstructMounts ¶
func ConstructMounts(names []string, paths []string) []corev1.VolumeMount
func ConstructSecretVols ¶
func ConstructVolumeSources ¶
func GetServiceAccount ¶
func GetServiceAccount(name, namespace string) *corev1.ServiceAccount
func WithCommand ¶
func WithCommand(cmd []string) expectedContainerOption
func WithEnvFromSecretorCM ¶
func WithImagePullPolicy ¶
func WithImagePullPolicy(pullPolicy corev1.PullPolicy) expectedContainerOption
func WithResources ¶
func WithSecretAnnotations ¶
func WithSecretType ¶
func WithSecretType(secretType string) expectedSecretOption
func WithSecurityContext ¶
func WithSecurityContext(user int64) expectedContainerOption
func WithVolumeMounts ¶
Types ¶
type ExpectedPodSpecOption ¶
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
Click to show internal directories.
Click to hide internal directories.