weave-gitops
weave-gitops copied to clipboard
SPIKE: Create some files for gitops run bootstrapping
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
- Flux bootstrap files
- Gitops dashboard
- Normal kustomization.yaml (not Flux Kustomization) that follows best practices.
- 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