Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-2126

Create a command for bootstrapping gitops directory layout

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • kam
    • None
    • 13
    • False
    • None
    • False
    • GITOPS Sprint 220, GITOPS Sprint 221

      Create a component command that will be the initial command for generating the new simplified directory structure.

      Add options for:

      • output
      • componentName
      • applicationName
      • secret (This is the term HAS uses. The bootstrap command use the git-host-access-token)
      • git repo URL
      • targetPort
      • route
      • overwrite
      • interactive
      • private-repo-driver
      • save-token-keyring
      • push-to-git

      Add validation to all options where apply. Some of these will be very similar to the bootstrap command.  For example, the component name should be limited to 63 characters.

      Accept user input values and map them to the API data structures from the common library.

      Generate the gitops repo by calling the GenerateAndPush method from the library

      Add tests for all command options

      Acceptance criteria:

      • Able to generate the new component-based directory structure
      • Able to use interactive mode and non-interactive mode to accept inputs for the app, app's components, and various options
      • All tests are running and validate all options and the generated gitops directory structure

              rh-ee-jaishah Jainam Shah (Inactive)
              kykchong@redhat.com Keith Chong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: