Version: v0.0.0-...-52ad18b Latest Latest

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type EnvVar

type EnvVar struct {
	// Name is the environment name for the parameter.
	Name string
	// Value is the value of the parameter.
	Value interface{}
	// Secret indicates whether to the value contains sensitive information and
	// should be stored in a secret.
	Secret bool

EnvVar represents a value for a Distribution configuration parameter.

func (EnvVar) EnvValue

func (e EnvVar) EnvValue() (string, error)

EnvValue returns the string that represents Value and can be used a value for the environment variable.

type List

type List []EnvVar

List is a list of configuration parameters.

func (List) EnvVars

func (l List) EnvVars(secretName string) ([]corev1.EnvVar, error)

EnvVars returns a list of environment variables to set in the container. Secret values are sourced from the secret.

func (List) SecretData

func (l List) SecretData() (map[string]string, error)

SecretData returns a data for the secret that should be used with the EnvVars method.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL