Skip to content

Commit

Permalink
CR-11030 (#286)
Browse files Browse the repository at this point in the history
* include and exclude flgas
  • Loading branch information
elad-codefresh authored Apr 18, 2022
1 parent 9aad7ec commit 6abdae2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ steps:
- export GIT_REPO=https://github.com/${{GIT_REPO}}
- argocd-autopilot repo bootstrap -n $NAMESPACE
- argocd-autopilot project create e2e
- argocd-autopilot app create example --app github.com/argoproj-labs/argocd-autopilot/examples/demo-app -p e2e --wait-timeout 3m --dest-namespace $NAMESPACE
- argocd-autopilot app create example --app github.com/argoproj-labs/argocd-autopilot/examples/demo-app -p e2e --wait-timeout 10m --dest-namespace $NAMESPACE
when:
steps:
- name: prep_cluster
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 @@ -55,9 +55,11 @@ argocd-autopilot application create [APP_NAME] [flags]
--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
-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
--include string Optional glob for files to include
--installation-mode string One of: normal|flat. If flat, will commit the application manifests (after running kustomize build), otherwise will commit the kustomization.yaml (default "normal")
--kubeconfig string Path to the kubeconfig file to use for CLI requests.
--labels stringToString Optional labels that will be set on the Application resource. (e.g. "{{ placeholder }}=my-org" (default [])
Expand Down
2 changes: 2 additions & 0 deletions pkg/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ func AddFlags(cmd *cobra.Command) *CreateOptions {
cmd.Flags().StringVar(&opts.InstallationMode, "installation-mode", InstallationModeNormal, "One of: normal|flat. "+
"If flat, will commit the application manifests (after running kustomize build), otherwise will commit the kustomization.yaml")
cmd.Flags().StringToStringVar(&opts.Labels, "labels", nil, "Optional labels that will be set on the Application resource. (e.g. \"{{ placeholder }}=my-org\"")
cmd.Flags().StringVar(&opts.Include, "include", "", "Optional glob for files to include")
cmd.Flags().StringVar(&opts.Exclude, "exclude", "", "Optional glob for files to exclude")

return opts
}
Expand Down

0 comments on commit 6abdae2

Please sign in to comment.