Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-8575

[tech debt] refactor name transformation code in 3 scripts for reuse/consistency for upstream too

    • RHDH COPE 3278

      I have a chunk of transformation code in these three scripts, designed to ensure that the names of k8s objects are not too long that OCP craps out.

              componentNameShort=${componentNameShort/rhdh-plugin-catalog--/}
              componentNameShort=${componentNameShort/red-hat-developer-hub-/rhdh-}
              componentNameShort=${componentNameShort/backstage-community-plugin/bcp}
              componentNameShort=${componentNameShort/backstage-plugin/bsp}
              componentNameShort=${componentNameShort/backstage/bs}
              componentNameShort=${componentNameShort/plugin/plgn}
              componentNameShort=${componentNameShort/catalog/ctlg}
              componentNameShort=${componentNameShort/module/mod}
              componentNameShort=${componentNameShort/kubernetes/k8s}
              componentNameShort=${componentNameShort/bitbucket/bbckt}
      

      Proposed fix is to extract these rules into their own reusable script here:

      https://github.com/redhat-developer/rhdh-plugin-export-utils/pull/73/files

      So we can also use this logic to name catalog entities consistently:

      https://github.com/redhat-developer/rhdh/pull/3271#discussion_r2274266384

              nickboldt Nick Boldt
              nickboldt Nick Boldt
              RHIDP - Cope
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: