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

inheritFrom ignores affinity rules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • kubernetes-plugin
    • None

      I have the following declarative pipeline:

      pipeline {
          agent { 
              kubernetes {
                  defaultContainer 'jnlp'
                  inheritFrom 'mypod'
                  yaml libraryResource("my-template.yaml")
              }
          }
      ...
      }

      where my-template.yaml only adds tolerations and affinity rules to the pod.

      The resulting pod template includes the tolerations, but not the affinity rules...

            Unassigned Unassigned
            rzentner Roi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: