Skip to content

Commit

Permalink
Better naming for variable
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Stout <[email protected]>
  • Loading branch information
neilisaur committed Mar 14, 2024
1 parent 928d943 commit 46059b3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ func DecorateEnvVars(ctx context.Context, envVars []v1.EnvVar, taskEnvironmentVa
envFroms := []v1.EnvFromSource{}

for _, secretName := range config.GetK8sPluginConfig().DefaultEnvVarsFromSecrets {
requireExist := true
secretRef := v1.SecretEnvSource{v1.LocalObjectReference{Name: secretName}, &requireExist}
optional := true
secretRef := v1.SecretEnvSource{v1.LocalObjectReference{Name: secretName}, &optional}
envFroms = append(envFroms, v1.EnvFromSource{SecretRef: &secretRef})
}

for _, cmName := range config.GetK8sPluginConfig().DefaultEnvVarsFromConfigMaps {
requireExist := true
cmRef := v1.ConfigMapEnvSource{v1.LocalObjectReference{Name: cmName}, &requireExist}
optional := true
cmRef := v1.ConfigMapEnvSource{v1.LocalObjectReference{Name: cmName}, &optional}
envFroms = append(envFroms, v1.EnvFromSource{ConfigMapRef: &cmRef})
}

Expand Down

0 comments on commit 46059b3

Please sign in to comment.