Skip to content

CI/CD Catalog: Add description, type to components

Briley Sandlin requested to merge 426870-add-type-description-to-components into master

What does this MR do and why?

Related to #426870 (closed)

Updating CI/CD Catalog component table to include more input fields

Screenshots or screen recordings

Screenshot_2024-07-03_at_11.16.51_AM

How to set up and validate locally

Prerequisites

  1. A project (WITH A DESCRIPTION!) that is marked as a catalog resource
  2. Component files

If you want to skip step 1 and 2 above, you can clone or import this repo into your GDK. It has the component directory already: https://gitlab.com/bsandlin/catalog-component-test

  1. Release with release-cli in your gitlab-ci.yml:
create-release:
  stage: deploy
  image: registry.gitlab.com/gitlab-org/release-cli:latest
  script: echo "Creating release 1.0.0"
  release:
    tag_name: 1.0.0
    description: "Release 1.0.0 of components"
  1. update your components in your rails console:

::Ci::Catalog::Resources::Component.last.update!(spec: { inputs: { test_input: { default: 'default' }, another_input: { type: 'boolean' } } })

  1. Navigate to gdk.test:3000/explore/catalog/ and click on the components tab. You should see the table with your values.
Edited by Briley Sandlin

Merge request reports