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

Kubernetes declarative pipeline does not merge initContainer sections

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • kubernetes-plugin
    • None
    • kubernetes:1.23.1
    • 1.28.6

      We use declarative pipelines with yamlMergeStrategy merge() and a yaml entry. Some of the YAMLs have an initContainer section that is preserved when we do not set the merge strategy but get dropped from the final yaml when we do set the strategy to merge().

      https://kubernetes.io/docs/concepts/workloads/pods/init-containers/

      For reference the merge() option was added to the declarative pipeline in https://github.com/jenkinsci/kubernetes-plugin/pull/638

            vlatombe Vincent Latombe
            sodul Stephane Odul
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: