Skip to content

Commit

Permalink
fix lynt issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rauerhans committed May 26, 2023
1 parent 4d00d64 commit 01c3b2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions controllers/bentodeployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -2806,7 +2806,7 @@ func GetIngressConfig(ctx context.Context, cliset *kubernetes.Clientset) (ingres
Path: path,
PathType: pathType,
TLSMode: tlsMode,
StaticTLSSecretName: staticTlsSecretName,
StaticTLSSecretName: staticTLSSecretName,
}

return
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 01c3b2b

Please sign in to comment.