Skip to content

Commit 6e345f1

Browse files
committed
Remove legacy environment variables
1 parent 7edd62b commit 6e345f1

File tree

2 files changed

+4
-22
lines changed

2 files changed

+4
-22
lines changed

flyteplugins/go/tasks/pluginmachinery/flytek8s/k8s_resource_adds.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -99,24 +99,6 @@ func GetExecutionEnvVars(id pluginsCore.TaskExecutionID, consoleURL string) []v1
9999
v1.EnvVar{
100100
Name: "FLYTE_INTERNAL_TASK_VERSION",
101101
Value: taskID.GetVersion(),
102-
},
103-
// Historic Task Definition Level env variables.
104-
// Remove these once SDK is migrated to use the new ones.
105-
v1.EnvVar{
106-
Name: "FLYTE_INTERNAL_PROJECT",
107-
Value: taskID.GetProject(),
108-
},
109-
v1.EnvVar{
110-
Name: "FLYTE_INTERNAL_DOMAIN",
111-
Value: taskID.GetDomain(),
112-
},
113-
v1.EnvVar{
114-
Name: "FLYTE_INTERNAL_NAME",
115-
Value: taskID.GetName(),
116-
},
117-
v1.EnvVar{
118-
Name: "FLYTE_INTERNAL_VERSION",
119-
Value: taskID.GetVersion(),
120102
})
121103

122104
}

flyteplugins/go/tasks/pluginmachinery/flytek8s/k8s_resource_adds_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ func TestGetExecutionEnvVars(t *testing.T) {
2828
}{
2929
{
3030
"no-console-url",
31-
12,
31+
8,
3232
"",
3333
nil,
3434
},
3535
{
3636
"with-console-url",
37-
13,
37+
9,
3838
"scheme://host/path",
3939
&v12.EnvVar{
4040
Name: "FLYTE_EXECUTION_URL",
@@ -43,7 +43,7 @@ func TestGetExecutionEnvVars(t *testing.T) {
4343
},
4444
{
4545
"with-console-url-ending-in-single-slash",
46-
13,
46+
9,
4747
"scheme://host/path/",
4848
&v12.EnvVar{
4949
Name: "FLYTE_EXECUTION_URL",
@@ -52,7 +52,7 @@ func TestGetExecutionEnvVars(t *testing.T) {
5252
},
5353
{
5454
"with-console-url-ending-in-multiple-slashes",
55-
13,
55+
9,
5656
"scheme://host/path////",
5757
&v12.EnvVar{
5858
Name: "FLYTE_EXECUTION_URL",

0 commit comments

Comments
 (0)