Skip to content

Commit

Permalink
change variable name for secretbackup in reconciler
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes94 committed Aug 29, 2023
1 parent d807df5 commit 4e248bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fleetshard/pkg/central/reconciler/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ type CentralReconciler struct {
useRoutes bool
Resources bool
routeService *k8s.RouteService
secretService *k8s.SecretBackup
secretBackup *k8s.SecretBackup
secretCipher cipher.Cipher
egressProxyImage string
telemetry config.Telemetry
Expand Down Expand Up @@ -777,7 +777,7 @@ func (r *CentralReconciler) areSecretsStored(secretsStored []string) bool {

func (r *CentralReconciler) collectSecrets(ctx context.Context, remoteCentral *private.ManagedCentral) (map[string]*corev1.Secret, error) {
namespace := remoteCentral.Metadata.Namespace
secrets, err := r.secretService.CollectSecrets(ctx, namespace)
secrets, err := r.secretBackup.CollectSecrets(ctx, namespace)
if err != nil {
return secrets, fmt.Errorf("collecting secrets for namespace %s: %w", namespace, err)
}
Expand Down Expand Up @@ -1484,7 +1484,7 @@ func NewCentralReconciler(k8sClient ctrlClient.Client, central private.ManagedCe
useRoutes: opts.UseRoutes,
wantsAuthProvider: opts.WantsAuthProvider,
routeService: k8s.NewRouteService(k8sClient),
secretService: k8s.NewSecretBackup(k8sClient),
secretBackup: k8s.NewSecretBackup(k8sClient),
secretCipher: secretCipher, // pragma: allowlist secret
egressProxyImage: opts.EgressProxyImage,
telemetry: opts.Telemetry,
Expand Down

0 comments on commit 4e248bb

Please sign in to comment.