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

console.openshift.io/use-i18n false in v1alpha API is converted to "" in the v1 APi, which is not a valid value for the enum type declared in the code. 

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Normal
    • 4.12.z
    • 4.12
    • Management Console
    • None
    • Moderate
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      console.openshift.io/use-i18n false in v1alpha API is converted to "" in the v1 APi, which is not a valid value for the enum type declared in the code. 

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

       4.12.0-0.nightly-2022-09-25-071630

      How reproducible:

      Always

      Steps to Reproduce:

      1. Load a dynamic plugin with v1alpha API console.openshift.io/use-i18n set to 'false'
      2. In the v1 API the {"spec":{"i18n":{"loadType":""}}} loadType is set to empty string, which is not a valid value defined here: https://github.com/jhadvig/api/blob/22d69793277ffeb618d642724515f249262959a5/console/v1/types_console_plugin.go#L46
      https://github.com/openshift/api/pull/1186/files# 

      Actual results:

      {"spec":{"i18n":{"loadType":""}}}

      Expected results:

      {"spec":{"i18n":{"loadType":"Lazy"}}}

      Additional info:

       

      Attachments

        Activity

          People

            jhadvig@redhat.com Jakub Hadvig
            xiangyli Xiangyi Li (Inactive)
            Xiangyi Li Xiangyi Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: