Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-22401

extra-manifests yamls are not splitted when creating a config-image

XMLWordPrintable

    • No
    • Sprint 244
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When creating a config-image, extra manifests can be added to 'openshift' dir.
      But, since the yamls files are being copied as-is, files with multiple objects are not splitted. Hence, these extra manifests are passed as-is to AI, which results with only the first object being applied.
      
      Note: this is a different behaviour from the full ignition creation which handles this scenario: https://github.com/openshift/installer/blob/8b1b6633dcd8342754f827698214a6a7ce240ade/pkg/asset/agent/image/ignition.go#L451 

      Version-Release number of selected component (if applicable):

      4.14

      How reproducible:

      100%

      Steps to Reproduce:

      1. Add a yaml file with multiple objects to 'openshift' dir
      2. Create the config-image (openshift-install agent create config-image)
      

      Actual results:

      The yaml file is added as-is to 'extra-manifests' dir in the config image.

      Expected results:

      The yaml file should be splitted to multiple yaml files.
      See: https://github.com/openshift/installer/blob/8b1b6633dcd8342754f827698214a6a7ce240ade/pkg/asset/agent/image/ignition.go#L451
      
      I.e. Instead of being copied as-as:
      https://github.com/openshift/installer/blob/d1824d7eeb52c0f3530f2d9513ffaa4e8cda3273/pkg/asset/agent/image/unconfigured_ignition.go#L35

      Additional info:

       

              bfournie@redhat.com Robert Fournier
              derez@redhat.com Daniel Erez
              Manoj Hans Manoj Hans
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: