Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56921

Pod template does not honor the namespace field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • kubernetes-plugin
    • None

      With the following pod template configuration & as specified in the documentation I would expect the pod to be created in specified namespace. but it does not honor the namespace

       

      podTemplate(label: 'builder-pod', containers: [
      containerTemplate( name: 'jnlp',
                                       image: "${artifact_repo}/jenkins-slave",
                                       ttyEnabled: true
                                 )
      ], volumes: [hostPathVolume(mountPath: '/var/run', hostPath: '/var/run')],

      namespace: 'jenkins') { //podtemplate
                     node('builder-pod') {
                                  container('jnlp')

      {                                               }

                                              }
                               }

       

      the builder-pod is getting created in the default namespace instead of jenkins namespace

       

            csanchez Carlos Sanchez
            sajit sajit kunnumkal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: