Skip to content

Commit

Permalink
Revert unneeded changes
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Fox <[email protected]>
  • Loading branch information
kfox1111 committed Oct 1, 2024
1 parent ce9ebd6 commit daa06d3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/spireentry/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,16 +391,14 @@ func (r *entryReconciler) addClusterSPIFFEIDEntriesState(ctx context.Context, st
clusterSPIFFEID.NextStatus.Stats.NamespacesSelected += len(namespaces)

for i := range namespaces {
namespaceName := namespaces[i].Name

if namespace.IsIgnored(r.config.IgnoreNamespaces, namespaceName) {
if namespace.IsIgnored(r.config.IgnoreNamespaces, namespaces[i].Name) {
clusterSPIFFEID.NextStatus.Stats.NamespacesIgnored++
continue
}

log := log.WithValues(namespaceLogKey, objectName(&namespaces[i]))

pods, err := r.listNamespacePods(ctx, namespaceName, spec.PodSelector)
pods, err := r.listNamespacePods(ctx, namespaces[i].Name, spec.PodSelector)
switch {
case err == nil:
case apierrors.IsNotFound(err):
Expand Down

0 comments on commit daa06d3

Please sign in to comment.