Skip to content

Commit

Permalink
Release-v0.4.8 (#396)
Browse files Browse the repository at this point in the history
* unhide the new flag

Signed-off-by: Noam Gal <[email protected]>

* v0.4.8

Signed-off-by: Noam Gal <[email protected]>

Signed-off-by: Noam Gal <[email protected]>
  • Loading branch information
ATGardner authored Jan 3, 2023
1 parent e50bf86 commit b67e1f4
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 26 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog:

# v0.4.8
- [chore] bumped argo-cd to 2.5.2, removed applicationset pkg (already in argo-cd), updated golang to 1.19 [#394](https://github.com/argoproj-labs/argocd-autopilot/pull/394)
- [fix] add support for git servers with self-signed certificates [#392](https://github.com/argoproj-labs/argocd-autopilot/pull/392)

# v0.4.7
- [fix] 0.4.6 fix caused a regression when `--repo` contained path and/or ref [#375](https://github.com/argoproj-labs/argocd-autopilot/pull/375)

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=v0.4.7
VERSION=v0.4.8
OUT_DIR=dist

CLI_NAME?=argocd-autopilot
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/argocd-autopilot_application_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ argocd-autopilot application create [APP_NAME] [flags]
```
--annotations stringToString Optional annotations that will be set on the Application resource. (e.g. "{{ placeholder }}=my-org" (default [])
--app string The application specifier (e.g. github.com/argoproj/argo-workflows/manifests/cluster-install/?ref=v3.0.3)
--apps-git-server-crt string Git Server certificate fileAPPS_
--apps-git-token string Your git provider api token [APPS_GIT_TOKEN]
--apps-git-user string Your git provider user name [APPS_GIT_USER] (not required in GitHub)
--apps-repo string Repository URL [APPS_GIT_REPO]
--context string The name of the kubeconfig context to use
--dest-namespace string K8s target namespace (overrides the namespace specified in the kustomization.yaml)
--dest-server string K8s cluster URL (e.g. https://kubernetes.default.svc) (default "https://kubernetes.default.svc")
--exclude string Optional glob for files to exclude
--git-server-crt string Git Server certificate file
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-h, --help help for create
Expand Down
15 changes: 8 additions & 7 deletions docs/commands/argocd-autopilot_application_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ argocd-autopilot application delete [APP_NAME] [flags]
### Options

```
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-g, --global global
-h, --help help for delete
-p, --project string Project name
--repo string Repository URL [GIT_REPO]
-b, --upsert-branch If true will try to checkout the specified branch and create it if it doesn't exist
--git-server-crt string Git Server certificate file
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-g, --global global
-h, --help help for delete
-p, --project string Project name
--repo string Repository URL [GIT_REPO]
-b, --upsert-branch If true will try to checkout the specified branch and create it if it doesn't exist
```

### SEE ALSO
Expand Down
9 changes: 5 additions & 4 deletions docs/commands/argocd-autopilot_application_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ argocd-autopilot application list [PROJECT_NAME] [flags]
### Options

```
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-h, --help help for list
--repo string Repository URL [GIT_REPO]
--git-server-crt string Git Server certificate file
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-h, --help help for list
--repo string Repository URL [GIT_REPO]
```

### SEE ALSO
Expand Down
1 change: 1 addition & 0 deletions docs/commands/argocd-autopilot_project_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ argocd-autopilot project create [PROJECT] [flags]
--exec-command-args stringArray Arguments to supply to the --exec-command executable
--exec-command-env stringToString Environment vars to set when running the --exec-command executable (default [])
--exec-command-install-hint string Text shown to the user when the --exec-command executable doesn't seem to be present
--git-server-crt string Git Server certificate file
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
--grpc-web Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2.
Expand Down
11 changes: 6 additions & 5 deletions docs/commands/argocd-autopilot_project_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ argocd-autopilot project delete [PROJECT_NAME] [flags]
### Options

```
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-h, --help help for delete
--repo string Repository URL [GIT_REPO]
-b, --upsert-branch If true will try to checkout the specified branch and create it if it doesn't exist
--git-server-crt string Git Server certificate file
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-h, --help help for delete
--repo string Repository URL [GIT_REPO]
-b, --upsert-branch If true will try to checkout the specified branch and create it if it doesn't exist
```

### SEE ALSO
Expand Down
9 changes: 5 additions & 4 deletions docs/commands/argocd-autopilot_project_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ argocd-autopilot project list [flags]
### Options

```
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-h, --help help for list
--repo string Repository URL [GIT_REPO]
--git-server-crt string Git Server certificate file
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-h, --help help for list
--repo string Repository URL [GIT_REPO]
```

### SEE ALSO
Expand Down
1 change: 1 addition & 0 deletions docs/commands/argocd-autopilot_repo_bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ argocd-autopilot repo bootstrap [flags]
--app string The application specifier (e.g. github.com/argoproj-labs/argocd-autopilot/manifests?ref=v0.2.5), overrides the default installation argo-cd manifests
--context string The name of the kubeconfig context to use
--dry-run If true, print manifests instead of applying them to the cluster (nothing will be commited to git)
--git-server-crt string Git Server certificate file
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-h, --help help for bootstrap
Expand Down
1 change: 1 addition & 0 deletions docs/commands/argocd-autopilot_repo_uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ argocd-autopilot repo uninstall [flags]
```
--context string The name of the kubeconfig context to use
--force If true, will try to complete the uninstallation even if one or more of the uninstallation steps failed
--git-server-crt string Git Server certificate file
-t, --git-token string Your git provider api token [GIT_TOKEN]
-u, --git-user string Your git provider user name [GIT_USER] (not required in GitHub)
-h, --help help for uninstall
Expand Down
9 changes: 5 additions & 4 deletions docs/releases/release_notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### Changes

- [fix] 0.4.6 fix caused a regression when `--repo` contained path and/or ref [#375](https://github.com/argoproj-labs/argocd-autopilot/pull/375)
- [chore] bumped argo-cd to 2.5.2, removed applicationset pkg (already in argo-cd), updated golang to 1.19 [#394](https://github.com/argoproj-labs/argocd-autopilot/pull/394)
- [fix] add support for git servers with self-signed certificates [#392](https://github.com/argoproj-labs/argocd-autopilot/pull/392)

### Contributors:

Expand Down Expand Up @@ -47,7 +48,7 @@ argocd-autopilot version

```bash
# download and extract the binary
curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.7/argocd-autopilot-linux-amd64.tar.gz | tar zx
curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.8/argocd-autopilot-linux-amd64.tar.gz | tar zx

# move the binary to your $PATH
mv ./argocd-autopilot-* /usr/local/bin/argocd-autopilot
Expand All @@ -60,7 +61,7 @@ argocd-autopilot version

```bash
# download and extract the binary
curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.7/argocd-autopilot-darwin-amd64.tar.gz | tar zx
curl -L --output - https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.8/argocd-autopilot-darwin-amd64.tar.gz | tar zx

# move the binary to your $PATH
mv ./argocd-autopilot-* /usr/local/bin/argocd-autopilot
Expand All @@ -77,5 +78,5 @@ When using the Docker image, you have to provide the `.kube` and `.gitconfig` di
docker run \
-v ~/.kube:/home/autopilot/.kube \
-v ~/.gitconfig:/home/autopilot/.gitconfig \
-it quay.io/argoprojlabs/argocd-autopilot:v0.4.7 <cmd> <flags>
-it quay.io/argoprojlabs/argocd-autopilot:v0.4.8 <cmd> <flags>
```
1 change: 0 additions & 1 deletion pkg/git/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ func AddFlags(cmd *cobra.Command, opts *AddFlagsOptions) *CloneOptions {
util.Die(viper.BindEnv(opts.Prefix+"git-token", envPrefix+"GIT_TOKEN"))
util.Die(viper.BindEnv(opts.Prefix+"git-user", envPrefix+"GIT_USER"))
util.Die(viper.BindEnv(opts.Prefix+"repo", envPrefix+"GIT_REPO"))
util.Die(cmd.PersistentFlags().MarkHidden(opts.Prefix + "git-server-crt"))

if opts.Prefix == "" {
cmd.Flag("git-token").Shorthand = "t"
Expand Down

0 comments on commit b67e1f4

Please sign in to comment.