From 01c3b2be29633d8a73e9b28e8e58b9ca8bf5d1c6 Mon Sep 17 00:00:00 2001 From: Hans Rauer Date: Fri, 26 May 2023 12:02:50 +0200 Subject: [PATCH] fix lynt issues --- controllers/bentodeployment_controller.go | 6 +++--- tests/e2e/e2e_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/bentodeployment_controller.go b/controllers/bentodeployment_controller.go index 887c1a5..d8a2aa4 100644 --- a/controllers/bentodeployment_controller.go +++ b/controllers/bentodeployment_controller.go @@ -2794,8 +2794,8 @@ func GetIngressConfig(ctx context.Context, cliset *kubernetes.Clientset) (ingres } } - staticTlsSecretName := strings.TrimSpace(configMap.Data["ingress-static-tls-secret-name"]) - if tlsMode == TLSModeStatic && staticTlsSecretName == "" { + staticTLSSecretName := strings.TrimSpace(configMap.Data["ingress-static-tls-secret-name"]) + if tlsMode == TLSModeStatic && staticTLSSecretName == "" { err = errors.Wrapf(err, "TLS mode is static but ingress-static-tls-secret isn't set") return } @@ -2806,7 +2806,7 @@ func GetIngressConfig(ctx context.Context, cliset *kubernetes.Clientset) (ingres Path: path, PathType: pathType, TLSMode: tlsMode, - StaticTLSSecretName: staticTlsSecretName, + StaticTLSSecretName: staticTLSSecretName, } return diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index 5ba8ae1..ae28feb 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -136,7 +136,7 @@ var _ = Describe("yatai-deployment", Ordered, func() { ingress, err := cliset.NetworkingV1().Ingresses("yatai").Get(ctx, "test", metav1.GetOptions{}) Expect(err).To(BeNil(), "Failed to get ingress %s", "test") - // Test ingress tls mode behaviour + // Test ingress tls mode behavour By("Getting ConfigMap and retrieving values") configMap, err := cliset.CoreV1().ConfigMaps("yatai-deployment").Get(ctx, "network", metav1.GetOptions{}) Expect(err).To(BeNil(), "Failed to get ConfigMap %s", "network")