Bug 2038961

Summary: Jenkins sync plugin does not synchronize ConfigMap having label role=jenkins-agent
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: JenkinsAssignee: Gabe Montero <gmontero>
Status: CLOSED ERRATA QA Contact: Priti Kumari <pkumari>
Severity: high Docs Contact:
Priority: high    
Version: 4.10CC: adam.kaplan, aos-bugs, gmontero, pbhattac, spandura
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: performance improvements introduced with 1.0.48 of the OpenShift Sync Jenkins Plugin incorrectly specified the labels accepted for ConfigMaps and ImageStreams intended to map into Jenkins Kubernetes Plugin Pod Templates Consequence: OpenShift Sync Plugin no longer would import Pod Templates from ConfigMaps or ImageStreams with the 'jenkins-agent' label. Fix: The accepted label specification for the watch was corrected. Result: OpenShift Sync Plugin again imports Pod Templates from ConfigMaps or ImageStreams with the 'jenkins-agent' label.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-24 16:50:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 2034839    
Bug Blocks: 2038960    

Comment 6 Priti Kumari 2022-01-20 11:19:30 UTC
Verified with 4.9.0-0.nightly-2022-01-19-045232 with Role=jenkins-agent

$ oc logs pod/jenkins-1-z2k5w | grep my-pod-template
2022-01-20 11:15:03 INFO    io.fabric8.jenkins.openshiftsync.ConfigMapInformer onAdd ConfigMap informer received add event for: {}my-pod-template

pkumari$ oc rsh jenkins-1-z2k5w
sh-4.4$ cat /var/lib/jenkins/plugins/openshift-sync/META-INF/MANIFEST.MF |grep Implementation-Version
Implementation-Version: 1.0.52

Comment 8 errata-xmlrpc 2022-01-24 16:50:18 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 (OpenShift Container Platform 4.9.17 bug fix 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.