Bug 2103075

Summary: Listing secrets in all namespaces with a specific labelSelector does not work properly
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: kube-apiserverAssignee: Antonio Ojea <aojeagar>
Status: CLOSED ERRATA QA Contact: Ke Wang <kewang>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.11CC: akashem, aojeagar, mfojtik, nweinber, prubenda, qili, rsevilla, svetsa, wking, wlewis, xxia
Target Milestone: ---Keywords: FastFix
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 11:19:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2094012    
Bug Blocks:    

Comment 2 Ke Wang 2022-07-04 02:57:21 UTC
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.

Comment 4 errata-xmlrpc 2022-08-10 11:19:39 UTC
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