From e9d824151efea0882ef7685c6c5644bb23beaf5f Mon Sep 17 00:00:00 2001 From: Erik Westra Date: Mon, 18 Dec 2023 21:11:00 +0100 Subject: [PATCH] chore: Replace deprecated metrics-port with management-port Signed-off-by: Erik Westra --- common/flagdproxy/flagdproxy.go | 4 ++-- common/flagdproxy/flagdproxy_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/flagdproxy/flagdproxy.go b/common/flagdproxy/flagdproxy.go index fbb809935..360d357d9 100644 --- a/common/flagdproxy/flagdproxy.go +++ b/common/flagdproxy/flagdproxy.go @@ -120,7 +120,7 @@ func (f *FlagdProxyHandler) newFlagdProxyManifest(ownerReferences []metav1.Owner replicas := int32(1) args := []string{ "start", - "--metrics-port", + "--management-port", fmt.Sprintf("%d", f.config.ManagementPort), } if f.config.DebugLogging { @@ -165,7 +165,7 @@ func (f *FlagdProxyHandler) newFlagdProxyManifest(ownerReferences []metav1.Owner ContainerPort: int32(f.config.Port), }, { - Name: "metrics-port", + Name: "management-port", ContainerPort: int32(f.config.ManagementPort), }, }, diff --git a/common/flagdproxy/flagdproxy_test.go b/common/flagdproxy/flagdproxy_test.go index ae1d6a88d..49fd2594c 100644 --- a/common/flagdproxy/flagdproxy_test.go +++ b/common/flagdproxy/flagdproxy_test.go @@ -208,7 +208,7 @@ func TestFlagdProxyHandler_HandleFlagdProxy_CreateProxy(t *testing.T) { replicas := int32(1) args := []string{ "start", - "--metrics-port", + "--management-port", fmt.Sprintf("%d", 90), "--debug", } @@ -256,7 +256,7 @@ func TestFlagdProxyHandler_HandleFlagdProxy_CreateProxy(t *testing.T) { ContainerPort: int32(88), }, { - Name: "metrics-port", + Name: "management-port", ContainerPort: int32(90), }, },