weave-gitops icon indicating copy to clipboard operation
weave-gitops copied to clipboard

SPIKE: Create some files for gitops run bootstrapping

Open JamWils opened this issue 3 years ago • 0 comments

The bootstrapping process for gitops run hurts. Let's create the files that we think will be outputted by the command in the following scenarios. We will then use those files to drive the stories for making the command work as expected.

The files should contain

  1. Flux bootstrap files
  2. Gitops dashboard
  3. Normal kustomization.yaml (not Flux Kustomization) that follows best practices.
  4. Files or configuration to point to the path in gitops run

Acceptance Criteria

Scenario 1 - Root directory and current working directory are the same.

Root directory: /Users/myself/my-repo Current working directory: /Users/myself/my-repo

Scenario 2 - Root directory and current working directory are different.

Root directory: /Users/myself/my-repo Current working directory: /Users/myself/my-repo/manifests

Scenario 3 - Root directory and current working directory are different and the working directory is an application path.

Root directory: /Users/myself/my-repo Current working directory: /Users/myself/my-repo/apps/podinfo

I run gitops run .

I run gitops run ./workload <- This is assumed not to exist

I run gitops run ./deploy/overlays/dev

JamWils avatar Aug 19 '22 14:08 JamWils