subst

package
v0.0.0-...-d7ecc2e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSecretValueNotFound = fmt.Errorf("secret value not found")

Functions

func ReplaceSettingsFieldWithEnvRefToSecretField

func ReplaceSettingsFieldWithEnvRefToSecretField(
	req req,
	settings settings,
	dstField string,
	srcSecretRefField string,
	envVarNamePrefix string,
	parseScalarString bool,
) bool

ReplaceSettingsFieldWithEnvRefToSecretField substitute users settings field with ref to ENV var where value from k8s secret is stored in

func ReplaceSettingsFieldWithMountedFile

func ReplaceSettingsFieldWithMountedFile(
	req req,
	settings *api.Settings,
	srcSecretRefField string,
) bool

func ReplaceSettingsFieldWithSecretFieldValue

func ReplaceSettingsFieldWithSecretFieldValue(
	req req,
	settings settings,
	dstField string,
	srcSecretRefField string,
	secretGet SecretGetter,
) bool

ReplaceSettingsFieldWithSecretFieldValue substitute users settings field with the value read from k8s secret

Types

type SecretGetter

type SecretGetter func(namespace, name string) (*core.Secret, error)

Jump to

Keyboard shortcuts

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