From 6da8e18eff05301b13bba799362ca5093fbb209b Mon Sep 17 00:00:00 2001 From: Shalva Kakauridze <47898136+skakauridze-clgx@users.noreply.github.com> Date: Wed, 15 Nov 2023 10:12:26 -0800 Subject: [PATCH] Revert PR: https://github.com/google/kf/pull/1049 (#1063) PR: https://github.com/google/kf/pull/1049 is breaking .net Core applications, where lower case environment variables are expected. Proposing this change, before better fix is available Fixes # ## Proposed Changes * * * ## Release Notes ```release-note ``` --- pkg/kf/commands/apps/set_env.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/kf/commands/apps/set_env.go b/pkg/kf/commands/apps/set_env.go index 5d4b21710..119bc1794 100644 --- a/pkg/kf/commands/apps/set_env.go +++ b/pkg/kf/commands/apps/set_env.go @@ -17,7 +17,6 @@ package apps import ( "context" "fmt" - "strings" "time" v1alpha1 "github.com/google/kf/v2/pkg/apis/kf/v1alpha1" @@ -65,7 +64,7 @@ func NewSetEnvCommand(p *config.KfParams, client apps.Client) *cobra.Command { value := args[2] toSet := []corev1.EnvVar{ - {Name: strings.ToUpper(name), Value: value}, + {Name: name, Value: value}, } app, err := client.Transform(cmd.Context(), p.Space, appName, func(app *v1alpha1.App) error {