From 0f9b45e45e30af75062f6c651cf74b705230ec5d Mon Sep 17 00:00:00 2001 From: Corey Daley Date: Tue, 14 Nov 2023 12:49:24 -0500 Subject: [PATCH] OCPBUGS-19358: Allow GIT_LFS_SKIP_SMUDGE environment variable --- build/v1/consts.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/v1/consts.go b/build/v1/consts.go index 3310b9e0a82..653ec7c53bd 100644 --- a/build/v1/consts.go +++ b/build/v1/consts.go @@ -164,9 +164,10 @@ const ( StatusReasonBuildPodEvicted StatusReason = "BuildPodEvicted" ) -// env vars -// WhitelistEnvVarNames is a list of special env vars allows s2i containers -var WhitelistEnvVarNames = []string{"BUILD_LOGLEVEL", "GIT_SSL_NO_VERIFY", "HTTP_PROXY", "HTTPS_PROXY", "LANG", "NO_PROXY"} +// WhitelistEnvVarNames is a list of environment variable names that are allowed to be specified +// in a buildconfig and merged into the created build pods, the code for this is located in +// openshift/openshift-controller-manager +var WhitelistEnvVarNames = []string{"BUILD_LOGLEVEL", "GIT_SSL_NO_VERIFY", "GIT_LFS_SKIP_SMUDGE", "HTTP_PROXY", "HTTPS_PROXY", "LANG", "NO_PROXY"} // env vars const (