Documentation ¶
Index ¶
- Constants
- type Interface
- type Manager
- func (m Manager) GetReferenceVars(variables map[string]testkube.Variable)
- func (m Manager) GetSecretEnvs() (secretEnvs map[string]string)
- func (m Manager) ObfuscateSecrets(p []byte) []byte
- func (m Manager) ObfuscateStringSlice(values []string) []string
- func (m Manager) PrepareEnvs(envs map[string]string, variables map[string]testkube.Variable) []corev1.EnvVar
- func (m Manager) PrepareGitCredentials(usernameSecret, tokenSecret *testkube.SecretRef) (envVars []corev1.EnvVar)
- func (m Manager) PrepareSecrets(secretEnvs map[string]string, variables map[string]testkube.Variable) (secretEnvVars []corev1.EnvVar)
Constants ¶
View Source
const ( // SecretEnvVarPrefix is a prefix for secret env vars SecretEnvVarPrefix = "RUNNER_SECRET_ENV" // SecretVarPrefix is a prefix for secret vars SecretVarPrefix = "RUNNER_SECRET_VAR_" // ConfigMapVarPrefix is a prefix for config map vars ConfigMapVarPrefix = "RUNNER_CONFIGMAP_VAR_" // GitUsernameEnvVarName is git username environment var name GitUsernameEnvVarName = "RUNNER_GITUSERNAME" // GitTokenEnvVarName is git token environment var name GitTokenEnvVarName = "RUNNER_GITTOKEN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // PrepareSecrets prepares secret env vars based on secret envs and variables PrepareSecrets(secretEnvs map[string]string, variables map[string]testkube.Variable) (secretEnvVars []corev1.EnvVar) // PrepareEnvs prepares env vars based on envs and variables PrepareEnvs(envs map[string]string, variables map[string]testkube.Variable) []corev1.EnvVar // PrepareGitCredentials prepares git credentials PrepareGitCredentials(usernameSecret, tokenSecret *testkube.SecretRef) (envVars []corev1.EnvVar) // GetSecretEnvs get secret envs GetSecretEnvs() (secretEnvs map[string]string) // GetReferenceVars gets reference vars GetReferenceVars(variables map[string]testkube.Variable) // ObfuscateSecrets obfuscates secret values ObfuscateSecrets(p []byte) []byte // ObfuscateStringSlice obfuscates string slice values ObfuscateStringSlice(values []string) []string }
Interface is responsible for exchanging envs and vars with executor pod
type Manager ¶
Manager manages secret and config map exchange from job pods using env
func NewManagerWithVars ¶
NewManagerWithVars returns an implementation of the Manager with variables
func (Manager) GetReferenceVars ¶
GetReferenceVars gets reference vars
func (Manager) GetSecretEnvs ¶
GetSecretEnvs gets secret envs
func (Manager) ObfuscateSecrets ¶
ObfuscateSecrets obfuscates secret values
func (Manager) ObfuscateStringSlice ¶ added in v1.15.10
ObfuscateStringSlice obfuscates string slice values
func (Manager) PrepareEnvs ¶
func (m Manager) PrepareEnvs(envs map[string]string, variables map[string]testkube.Variable) []corev1.EnvVar
PrepareEnvs prepares env vars based on envs and variables
Click to show internal directories.
Click to hide internal directories.