Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions controllers/backupcronjob/backupcronjob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ func (r *BackupCronJobReconciler) handleRegistryAuthSecret(ctx context.Context,

// First check the workspace namespace for the secret
registryAuthSecret := &corev1.Secret{}
err := r.Get(ctx, client.ObjectKey{
err := r.NonCachingClient.Get(ctx, client.ObjectKey{
Name: secretName,
Namespace: workspace.Namespace}, registryAuthSecret)
if err == nil {
Expand All @@ -488,7 +488,7 @@ func (r *BackupCronJobReconciler) handleRegistryAuthSecret(ctx context.Context,
log.Info("Registry auth secret not found in workspace namespace, checking operator namespace", "secretName", secretName)

// If the secret is not found in the workspace namespace, check the operator namespace as fallback
err = r.Get(ctx, client.ObjectKey{
err = r.NonCachingClient.Get(ctx, client.ObjectKey{
Name: secretName,
Namespace: dwOperatorConfig.Namespace}, registryAuthSecret)
if err != nil {
Expand Down
Loading