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

Summary is wrong when using 'diff -y' in the cluster-compare tool

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.16.z, 4.18.z
    • oc / cluster-compare
    • None
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When using the side-by-side comparison like 'KUBECTL_EXTERNAL_DIFF="diff -y -W 150"' the summary of the outout is showing all CRs are difference with ref ones     

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

      latest one built from master branch

      How reproducible:

      Always

      Steps to Reproduce:

      1. Run oc cluster-compare -r metadata.yaml 
      2. export KUBECTL_EXTERNAL_DIFF="diff -y -W 150"
      3. Run oc cluster-compare -r metadata.yaml  again
      4. Compare the summary of the two runs.

      Actual results:

      The script shows the CRs with diffs like: 22/22. which means all CRs are different.  

      Expected results:

      The tool should show the total nunmber of CRs which are really different.

      Additional info:

         

            jramsay1@redhat.com Jim Ramsay
            bzhai@redhat.com XIAOBO ZHAI
            Yogesh Ahire Yogesh Ahire
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: