Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-25257

[Quickstarts] Allow quickstarts and help topic seeding from nested directories.

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No

      Currently, the quickstarts seed files directory structure is flat.

      https://github.com/RedHatInsights/quickstarts/tree/main/docs/quickstarts

      Because we will have many more quickstart from other teams, we have to support the additional logical separation of the content files. 

      It may seem that this already works, but the default golang glob pattern matching treats the "{}" wildcard same as "{*}" so the glob pattern will not catch nested "metadata.yml" files.

      https://github.com/RedHatInsights/quickstarts/blob/main/pkg/database/db_seed.go#L55-L60

      We have to find an alternative and enable the "**" wildcard. After that, the seeding script will work for any yaml files within the docs directories.

              rhn-insights-rlong Ryan Long
              mmarosi123 Martin Marosi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: