title: Use imagePullSecrets in Jenkins declarative pipeline
body: <p>Here's a snippet from my Jenkinsfile I use to create a dynamic pod</p>
  <pre><code>agent {
          kubernetes {
              label &quot;hello-stage&quot;
              cloud &quot;some-cloud&quot;
              defaultContainer &quot;jnlp&quot;
              idleMinutes 1
              containerTemplate {
                  name 'jnlp'
                  image 'some-image'
                  alwaysPullImage true
                  ttyEnabled true
                  resourceRequestMemory '1Gi'
                  resourceLimitMemory '2Gi' 
              }
              imagePullSecrets '[&quot;secret-name&quot;]'
          } // kubernetes
      } // agent
  
  </code></pre>
  <p>Everything works except for the <code>imagePullSecrets</code>. I tried finding documentation with no luck. I'm new to using Jenkins with Kubernetes. Here's the error I get</p>
  <pre><code>WorkflowScript: 23: Invalid config option &quot;imagePullSecrets&quot; for agent type &quot;kubernetes&quot;. Valid config options are [activeDeadlineSeconds, cloud, containerTemplate, containerTemplates, customWorkspace, defaultContainer, idleMinutes, inheritFrom, instanceCap, label, namespace, nodeSelector, podRetention, serviceAccount, slaveConnectTimeout, supplementalGroups, workingDir, yaml, yamlFile, yamlMergeStrategy] @ line 23, column 13.
              imagePullSecrets '[&quot;quay-operator-updates&quot;]'
  </code></pre>
  <p>Could someone please help me figure out how to use imagePullSecrets with Jenkins declarative pipeline?</p>
  <p>Thanks</p>