utils

package
v0.0.0-...-0e85028 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildVolumeBuilderForConfigMaps

func BuildVolumeBuilderForConfigMaps(configMaps []v1alpha1.ConfigMap) []*volume.Builder

BuildVolumeBuilderForConfigMaps builds VolumeBuilders for ConfigMaps

func BuildVolumeBuilderForSecrets

func BuildVolumeBuilderForSecrets(secrets []v1alpha1.Secret) []*volume.Builder

BuildVolumeBuilderForSecrets builds VolumeBuilders for Secrets

func BuildVolumeMountsForConfigMaps

func BuildVolumeMountsForConfigMaps(configMaps []v1alpha1.ConfigMap) []corev1.VolumeMount

BuildVolumeMountsForConfigMaps builds VolumeMounts for ConfigMaps

func BuildVolumeMountsForSecrets

func BuildVolumeMountsForSecrets(secrets []v1alpha1.Secret) []corev1.VolumeMount

BuildVolumeMountsForSecrets builds VolumeMounts for Secrets

func CreateVolumeBuilders

func CreateVolumeBuilders(configMaps []v1alpha1.ConfigMap, secrets []v1alpha1.Secret) []*volume.Builder

CreateVolumeBuilders build Volume needed in execution of experiments

func CreateVolumeMounts

func CreateVolumeMounts(configMaps []v1alpha1.ConfigMap, secrets []v1alpha1.Secret) []corev1.VolumeMount

CreateVolumeMounts mounts Volume needed in execution of experiments

func RemoveString

func RemoveString(slice []string, s string) (result []string)

RemoveString removes a particular string from a slice of strings

Types

type ENVDetails

type ENVDetails struct {
	ENV []corev1.EnvVar
}

ENVDetails contains the ENV details

func (*ENVDetails) SetEnv

func (envDetails *ENVDetails) SetEnv(key, value string) *ENVDetails

SetEnv sets the env inside envDetails struct

type VolumeOpts

type VolumeOpts struct {
	VolumeMounts   []corev1.VolumeMount
	VolumeBuilders []*volume.Builder
}

VolumeOpts is a strcuture for all volume related operations

func (*VolumeOpts) VolumeOperations

func (volumeOpts *VolumeOpts) VolumeOperations(configMaps []v1alpha1.ConfigMap, secrets []v1alpha1.Secret)

VolumeOperations filles up VolumeOpts strucuture

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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