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

`oc new-app` does not propagate containerPort information to the deployment if import-mode is PreserveOriginal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Undefined
    • 4.14.0
    • 4.14.0
    • oc
    • None
    • No
    • False
    • Hide

      None

      Show
      None

    Description

      When creating a deployment with `oc new-app` and using `--import-mode=PreserveOriginal`, if there are containerports that are present in the dockerfile, they do not get propagated to the deployment `spec.containers[i].ports[i].containerPort`.

      On further inspection this is because the config object which gets passed from the image to the deployment does not contain these details. The image reference in this case is a manifestlisted image which does not contain the docker metadata. Instead these need to be derived from the child manifest.

      Attachments

        Activity

          People

            pbastide_rh Paul Bastide
            psundara@redhat.com Prashanth Sundararaman
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: