Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Skip CA Secret Upsert for Namespace in Terminating state #395

Merged
merged 1 commit into from
Mar 12, 2024
Merged
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: 4 additions & 0 deletions pkg/controller/vault/vault_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2100,6 +2100,10 @@ func (r *ReconcileVault) distributeCACertificate(ctx context.Context, v *vaultv1
}

for _, namespace := range namespaceList.Items {
// Skip the namespace if it's being deleted
if namespace.DeletionTimestamp != nil {
continue
}
namespaces = append(namespaces, namespace.Name)
}
} else {
Expand Down
Loading