From 344aeac870a0e10f705a5d3d50260cd56144b8b4 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 13 Oct 2022 12:55:25 +0000 Subject: [PATCH] Convert string interpolations with missing arguments to literals --- GZCTF/Services/K8sService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GZCTF/Services/K8sService.cs b/GZCTF/Services/K8sService.cs index 569d1c5d4..6a697b040 100644 --- a/GZCTF/Services/K8sService.cs +++ b/GZCTF/Services/K8sService.cs @@ -261,12 +261,12 @@ private void InitK8s(bool withAuth, RegistryConfig? registry) { var auth = Codec.Base64.Encode($"{registry.UserName}:{registry.Password}"); var dockerjson = Codec.Base64.EncodeToBytes( - $"{{\"auths\":" + + "{{\\\"auths\\\":" + $"{{\"{registry.ServerAddress}\":" + $"{{\"auth\":\"{auth}\"," + $"\"username\":\"{registry.UserName}\"," + $"\"password\":\"{registry.Password}\"" + - $"}}}}}}"); + "}}}}}}"); var dockerjsonBytes = Codec.Base64.EncodeToBytes(dockerjson); var secret = new V1Secret() {