Description of problem: Jenkins sync plugin does not synchronize ConfigMap having label role=jenkins-agent but only role=jenkins-slave on 4.x Version-Release number of selected component (if applicable): 1.0.51 How reproducible: Always Steps to Reproduce: 1. create a project. Just say testing 2. Create ConfigMap as suggested in https://docs.openshift.com/container-platform/4.9/openshift_images/using_images/images-other-jenkins.html#images-other-jenkins-config-kubernetes_images-other-jenkins with PodTemplate e.g. ``` kind: ConfigMap apiVersion: v1 metadata: name: my-pod-template labels: role: jenkins-agent data: template1: |- <org.csanchez.jenkins.plugins.kubernetes.PodTemplate> <inheritFrom></inheritFrom> <name>template1</name> <instanceCap>2147483647</instanceCap> <idleMinutes>0</idleMinutes> <label>template1</label> <serviceAccount>jenkins</serviceAccount> <nodeSelector></nodeSelector> <volumes/> <containers> <org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate> <name>jnlp</name> <image>openshift/jenkins-agent-maven-35-centos7:v3.10</image> <privileged>false</privileged> <alwaysPullImage>true</alwaysPullImage> <workingDir>/tmp</workingDir> <command></command> <args>${computer.jnlpmac} ${computer.name}</args> <ttyEnabled>false</ttyEnabled> <resourceRequestCpu></resourceRequestCpu> <resourceRequestMemory></resourceRequestMemory> <resourceLimitCpu></resourceLimitCpu> <resourceLimitMemory></resourceLimitMemory> <envVars/> </org.csanchez.jenkins.plugins.kubernetes.ContainerTemplate> </containers> <envVars/> <annotations/> <imagePullSecrets/> <nodeProperties/> </org.csanchez.jenkins.plugins.kubernetes.PodTemplate> ``` 3. Restart Jenkins (ex - delete the Jenkins pod) 4. Actual results: Can not find the configmap in the logs. However once changed the configmap label to `role=jenkins-slave` sync works properly. Logs with role=jenkins-agent ``` 2021-12-22 07:56:21 INFO io.fabric8.jenkins.openshiftsync.ConfigMapInformer start Starting configMap informer for {} !!testing 2021-12-22 07:56:21 INFO io.fabric8.jenkins.openshiftsync.ConfigMapInformer start ConfigMap informer started for namespace: {}testing 2021-12-22 07:56:21 INFO io.fabric8.jenkins.openshiftsync.ImageStreamInformer start Starting ImageStream informer for {} !!testing 2021-12-22 07:56:21 INFO io.fabric8.jenkins.openshiftsync.ImageStreamInformer start ImageStream informer started for namespace: {}testing 2021-12-22 07:56:21 INFO io.fabric8.jenkins.openshiftsync.SecretInformer start Starting secret informer {} !!testing ``` Logs with role=jenkins-slave ``` 2021-12-22 10:14:09 INFO org.openshift.jenkins.plugins.openshiftlogin.OpenShiftOAuth2SecurityRealm initializeHttpsProxyAuthenticator Checking if HTTPS proxy initialization is required ... 2021-12-22 10:14:09 INFO io.fabric8.jenkins.openshiftsync.ConfigMapInformer onAdd ConfigMap informer received add event for: {}my-pod-template 2021-12-22 10:14:09 INFO io.fabric8.jenkins.openshiftsync.BuildInformer onAdd Build informer received add event for: {}openshift-jee-sample-1 2021-12-22 10:14:09 INFO io.fabric8.jenkins.openshiftsync.PodTemplateUtils addAgents Adding PodTemplate(s) for testing ``` Expected results: configmap wit label role=jenkins-agent should sync with jenkins plugin. Additional info:
Need to do Jenkins image plugin bump ... moving back to Post
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 (Moderate: OpenShift Container Platform 4.10.3 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:0056
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days