Skip to content

Commit

Permalink
Merge branch 'main' into 254/change-binary-names
Browse files Browse the repository at this point in the history
  • Loading branch information
josecordaz committed Jun 8, 2021
2 parents e5e8428 + 233d9b5 commit 89d5853
Show file tree
Hide file tree
Showing 9 changed files with 692 additions and 513 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ jobs:
uses: actions/checkout@v2
- name: Install UI Deps
run: npm ci
- name: NPM Audit
run: npm audit
# - name: NPM Audit
# run: npm audit
- name: Build UI Assets
run: make cmd/ui/dist/main.js
- name: Fake Install flux
Expand Down
7 changes: 4 additions & 3 deletions cmd/wego/add/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var Cmd = &cobra.Command{
Use: "add [--name <name>] [--url <url>] [--branch <branch>] [--path <path within repository>] [--private-key <keyfile>] <repository directory>",
Short: "Add a workload repository to a wego cluster",
Long: strings.TrimSpace(dedent.Dedent(`
Associates an additional git repository with a wego cluster so that its contents may be managed via GitOps
Associates an additional application in a git repository with a wego cluster so that its contents may be managed via GitOps
`)),
Example: "wego add .",
Run: runCmd,
Expand All @@ -33,13 +33,14 @@ var Cmd = &cobra.Command{
func init() {
Cmd.Flags().StringVar(&params.Owner, "owner", "", "Owner of remote git repository")
Cmd.Flags().StringVar(&params.Name, "name", "", "Name of remote git repository")
Cmd.Flags().StringVar(&params.Url, "url", "", "URL of remote git repository")
Cmd.Flags().StringVar(&params.Url, "url", "", "URL of remote repository")
Cmd.Flags().StringVar(&params.Path, "path", "./", "Path of files within git repository")
Cmd.Flags().StringVar(&params.Branch, "branch", "main", "Branch to watch within git repository")
Cmd.Flags().StringVar(&params.DeploymentType, "deployment-type", "kustomize", "deployment type [kustomize, helm]")
Cmd.Flags().StringVar(&params.Chart, "chart", "", "Specify chart for helm source")
Cmd.Flags().StringVar(&params.PrivateKey, "private-key", filepath.Join(os.Getenv("HOME"), ".ssh", "id_rsa"), "Private key that provides access to git repository")
Cmd.Flags().StringVar(&params.AppConfigUrl, "app-config-url", "", "URL of external repository (if any) which will hold automation manifests; NONE to store only in the cluster")
Cmd.Flags().BoolVar(&params.DryRun, "dry-run", false, "If set, 'wego add' will not make any changes to the system; it will just display the actions that would have been taken")
Cmd.Flags().BoolVar(&params.IsPrivate, "private", true, "Set access control on the repo")
}

func runCmd(cmd *cobra.Command, args []string) {
Expand Down
Loading

0 comments on commit 89d5853

Please sign in to comment.