• 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...

          [JENKINS-72943] inheritFrom ignores affinity rules

          Roi created issue -
          Roi made changes -
          Description Original: I have the following pipeline:
          {code:java}
          pipeline {
              agent {
                  kubernetes {
                      defaultContainer 'jnlp'
                      inheritFrom 'mypod'
                      yaml libraryResource("my-template.yaml")
                  }
              }
          ...
          }{code}
          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...
          New: I have the following declarative pipeline:
          {code:java}
          pipeline {
              agent {
                  kubernetes {
                      defaultContainer 'jnlp'
                      inheritFrom 'mypod'
                      yaml libraryResource("my-template.yaml")
                  }
              }
          ...
          }{code}
          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: