podAffinity is ignored in YAML definition

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I'm trying to define my pod template as

      spec:
        affinity:
          podAffinity:
            preferredDuringSchedulingIgnoredDuringExecution:
            - labelSelector:
                matchLabels:
                  jenkins: slave
      

      But the podAffinity is ignored. I noticed the source in PodTemplateUtils.java#L252 only merges nodeSelector

       

            Assignee:
            Carlos Sanchez
            Reporter:
            Bruno Meneguello
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: