Uploaded image for project: 'MicroShift'
  1. MicroShift
  2. USHIFT-674

'show-config' shows internal representation instead of user config

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • openshift-4.12
    • None
    • None
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • uShift Sprint 228

      Description of problem:

      The 'show-config' command should show the default and effective configuration, respectively, i.e. have the same serialisation as /etc/microshift/config.yaml. Instead, it is using the internal representation ('MicroShiftConfig') struct.

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

      4.12.0-20221211150118-ae224890

      How reproducible:

      100%

      Steps to Reproduce:

      1. Run `microshift show-config` or `microshift show-config --mode effective`
      

      Actual results:

      baseDomain: example.com
      cluster:
        clusterCIDR: 10.42.0.0/16
        serviceCIDR: 10.43.0.0/16
        serviceNodePortRange: 30000-32767
      logVLevel: 2
      nodeIP: ""
      nodeName: ""
      subjectAltNames: - microshift-devel.local
      

      Expected results:

      baseDomain: example.com
      network:
        clusterNetwork:
          cidr: 10.42.0.0/16
        serviceNetwork
          - 10.43.0.0/16
        serviceNodePortRange: 30000-32767
      logVLevel: 0
      nodeIP: ""
      nodeName: ""
      subjectAltNames: []
      

      Additional info:

      The root-cause is the introduction of `Config` struct as user-facing format spitting from `MicroshiftConfig` struct as internal format. `show-config` outputs the latter, but its format is different.
      

              fzdarsky@redhat.com Frank Zdarsky
              fzdarsky@redhat.com Frank Zdarsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: