mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 09:45:09 +02:00
calculateDepdencies on a copy of envvars
This commit is contained in:
@@ -290,8 +290,9 @@ func IsSrcRemoteFileURL(rawurl string) bool {
|
||||
return err == nil
|
||||
}
|
||||
|
||||
func UpdateConfigEnv(newEnvs []instructions.KeyValuePair, config *v1.Config, replacementEnvs []string) error {
|
||||
for index, pair := range newEnvs {
|
||||
func UpdateConfigEnv(envVars []instructions.KeyValuePair, config *v1.Config, replacementEnvs []string) error {
|
||||
newEnvs := make([]instructions.KeyValuePair, len(envVars))
|
||||
for index, pair := range envVars {
|
||||
expandedKey, err := ResolveEnvironmentReplacement(pair.Key, replacementEnvs, false)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user