-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collect all generated resources (both applied to cluster and written …
…to git) for removal (#529) * rebase-on-main * tests mostly working except for resources that are both written and applied * resource and path collection working with tests * fixes after rebasing on main * remove shims and handles that are no longer used * remove unused code * Add dependencies dependency to the "coverage/merged.lcov" target to ensure flux is available for unit tests * move dependency to correct target * get more info from flux errors * stop fake installing flux for tests * force update * explicitly download dependencies to initialize flux * add full path to dep file * address review comment Co-authored-by: Jerry Jackson <[email protected]>
- Loading branch information
1 parent
ecd846f
commit f626800
Showing
27 changed files
with
1,143 additions
and
729 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,19 +11,21 @@ import ( | |
"github.com/weaveworks/weave-gitops/cmd/wego/gitops" | ||
"github.com/weaveworks/weave-gitops/cmd/wego/version" | ||
fluxBin "github.com/weaveworks/weave-gitops/pkg/flux" | ||
"github.com/weaveworks/weave-gitops/pkg/osys" | ||
"github.com/weaveworks/weave-gitops/pkg/runner" | ||
) | ||
|
||
var options struct { | ||
verbose bool | ||
} | ||
|
||
var rootCmd = &cobra.Command{ | ||
Use: "wego", | ||
Use: "wego", | ||
SilenceUsage: true, | ||
SilenceErrors: true, | ||
Short: "Weave GitOps", | ||
Long: "Command line utility for managing Kubernetes applications via GitOps.", | ||
Example:` | ||
Example: ` | ||
# Get verbose output for any wego command | ||
wego [command] -v, --verbose | ||
|
@@ -37,10 +39,10 @@ var rootCmd = &cobra.Command{ | |
# Add application to wego control from a github repository | ||
wego app add \ | ||
--name <myapp> \ | ||
--url [email protected]:myorg/<myapp> \ | ||
--private-key ${HOME}/.ssh/<SSH key for myapp> \ | ||
--branch prod-<myapp> | ||
--name <myapp> \ | ||
--url [email protected]:myorg/<myapp> \ | ||
--private-key ${HOME}/.ssh/<SSH key for myapp> \ | ||
--branch prod-<myapp> | ||
# Get status of application under wego control | ||
wego app status podinfo | ||
|
@@ -73,7 +75,10 @@ func configureLogger() { | |
} | ||
|
||
func main() { | ||
fluxBin.SetupFluxBin() | ||
cliRunner := &runner.CLIRunner{} | ||
osysClient := osys.New() | ||
fluxClient := fluxBin.New(osysClient, cliRunner) | ||
fluxClient.SetupBin() | ||
rootCmd.PersistentFlags().BoolVarP(&options.verbose, "verbose", "v", false, "Enable verbose output") | ||
rootCmd.PersistentFlags().String("namespace", "wego-system", "gitops runtime namespace") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.