From 3d30f6ae5ea43f3f78801a612086813b2a875467 Mon Sep 17 00:00:00 2001 From: Paul Abel Date: Thu, 28 Nov 2024 11:46:32 +0000 Subject: [PATCH] make special secrets array a pointer --- internal/k8s/controller.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/k8s/controller.go b/internal/k8s/controller.go index ff640cd7e2..1cfe976024 100644 --- a/internal/k8s/controller.go +++ b/internal/k8s/controller.go @@ -1781,7 +1781,7 @@ func (lbc *LoadBalancerController) handleSpecialSecretUpdate(secret *api_v1.Secr var specialTLSSecretsToUpdate []string secretNsName := generateSecretNSName(secret) - if ok := lbc.specialSecretValidation(secretNsName, secret, specialTLSSecretsToUpdate); !ok { + if ok := lbc.specialSecretValidation(secretNsName, secret, &specialTLSSecretsToUpdate); !ok { // if not ok bail early return } @@ -1803,12 +1803,12 @@ func (lbc *LoadBalancerController) writeSpecialSecrets(secret *api_v1.Secret, sp lbc.configurator.AddOrUpdateSpecialTLSSecrets(secret, specialTLSSecretsToUpdate) } -func (lbc *LoadBalancerController) specialSecretValidation(secretNsName string, secret *api_v1.Secret, specialTLSSecretsToUpdate []string) bool { +func (lbc *LoadBalancerController) specialSecretValidation(secretNsName string, secret *api_v1.Secret, specialTLSSecretsToUpdate *[]string) bool { if secretNsName == lbc.specialSecrets.defaultServerSecret { - lbc.validationTLSSpecialSecret(secret, configs.DefaultServerSecretFileName, &specialTLSSecretsToUpdate) + lbc.validationTLSSpecialSecret(secret, configs.DefaultServerSecretFileName, specialTLSSecretsToUpdate) } if secretNsName == lbc.specialSecrets.wildcardTLSSecret { - lbc.validationTLSSpecialSecret(secret, configs.WildcardSecretFileName, &specialTLSSecretsToUpdate) + lbc.validationTLSSpecialSecret(secret, configs.WildcardSecretFileName, specialTLSSecretsToUpdate) } return true }