workload

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SecretEnvParser = NewSecretEnvParser()
	RawEnvParser    = NewRawEnvParser()
)

Functions

func MagicEnvVar

func MagicEnvVar(k, v string) *corev1.EnvVar

MagicEnvVar generates a specialized EnvVar based on the key and value of environment.

Examples:

MagicEnvVar("secret_key", "secret://my_secret/my_key")
MagicEnvVar("key", "value")

func NewJobGenerator

func NewJobGenerator(ctx modules.GeneratorContext) (modules.Generator, error)

func NewWorkloadGenerator

func NewWorkloadGenerator(ctx modules.GeneratorContext) (modules.Generator, error)

func NewWorkloadServiceGenerator

func NewWorkloadServiceGenerator(ctx modules.GeneratorContext) (modules.Generator, error)

NewWorkloadServiceGenerator returns a new workloadServiceGenerator instance.

func NewWorkloadServiceGeneratorFunc

func NewWorkloadServiceGeneratorFunc(ctx modules.GeneratorContext) modules.NewGeneratorFunc

NewWorkloadServiceGeneratorFunc returns a new NewGeneratorFunc that returns a workloadServiceGenerator instance.

Types

type MagicEnvParser

type MagicEnvParser interface {
	Match(k, v string) (matched bool)
	Gen(k, v string) *corev1.EnvVar
}

MagicEnvParser is an interface for environment variable parsers.

func NewRawEnvParser

func NewRawEnvParser() MagicEnvParser

NewRawEnvParser creates a new instance of RawEnvParser.

func NewSecretEnvParser

func NewSecretEnvParser() MagicEnvParser

NewSecretEnvParser creates a new instance of SecretEnvParser.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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