Skip to content

Commit

Permalink
Fixing linting error
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Stout <[email protected]>
  • Loading branch information
neilisaur committed Mar 15, 2024
1 parent ce4d32e commit 43e20b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ func DecorateEnvVars(ctx context.Context, envVars []v1.EnvVar, taskEnvironmentVa

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

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

Expand Down

0 comments on commit 43e20b6

Please sign in to comment.