From 3cc1fd5175e0354c7b6376934177ed2a47859e9c Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Tue, 29 Aug 2023 15:03:30 +0300 Subject: [PATCH] Remove unused DSE_VERSION env variable (#510) * Remove unused DSE_VERSION env variable * Fix missing chars --- pkg/reconciliation/construct_podtemplatespec.go | 2 -- pkg/reconciliation/construct_podtemplatespec_test.go | 8 -------- 2 files changed, 10 deletions(-) diff --git a/pkg/reconciliation/construct_podtemplatespec.go b/pkg/reconciliation/construct_podtemplatespec.go index 0fc0ad63..748ab317 100644 --- a/pkg/reconciliation/construct_podtemplatespec.go +++ b/pkg/reconciliation/construct_podtemplatespec.go @@ -478,8 +478,6 @@ func buildInitContainers(dc *api.CassandraDatacenter, rackName string, baseTempl {Name: "RACK_NAME", Value: rackName}, {Name: "PRODUCT_VERSION", Value: serverVersion}, {Name: "PRODUCT_NAME", Value: dc.Spec.ServerType}, - // TODO remove this post 1.0 - {Name: "DSE_VERSION", Value: serverVersion}, } envDefaults = append(envDefaults, configEnvVar...) diff --git a/pkg/reconciliation/construct_podtemplatespec_test.go b/pkg/reconciliation/construct_podtemplatespec_test.go index 37b7d031..6d3fde95 100644 --- a/pkg/reconciliation/construct_podtemplatespec_test.go +++ b/pkg/reconciliation/construct_podtemplatespec_test.go @@ -362,10 +362,6 @@ func TestServerConfigInitContainerEnvVars(t *testing.T) { Name: "PRODUCT_NAME", Value: "cassandra", }, - { - Name: "DSE_VERSION", - Value: "3.11.10", - }, }, }, { @@ -393,10 +389,6 @@ func TestServerConfigInitContainerEnvVars(t *testing.T) { Name: "PRODUCT_NAME", Value: "cassandra", }, - { - Name: "DSE_VERSION", - Value: "3.11.10", - }, }, }, }