I tried with 4.11 ci build(No one nightly build available). Did a quick test with attached script reproducer.sh,
Steps as below,
$ oc version
Client Version: 4.11.0-fc.0
Kustomize Version: v4.5.4
Server Version: 4.11.0-0.ci-2022-07-03-073357
Kubernetes Version: v1.24.0-2362+2dd8bb16eb2fd8-dirty
$ bash ./reproducer.sh
...
namespace/foo-43 created
secret/fubar-1 created
secret/fubar-2 created
secret/fubar-1 created
secret/fubar-2 created
$ oc get secrets -A -l foo=bar | wc -l
501
Listed all secrets with label, got the expected results, since the bug has label FastFix, no need wait nightly currently, so move the bug VERIFIED.Will re-test it when nightly build is available.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2022:5069