Skip to main content
Version: 0.6.2

gitops_add_app

gitops add app

Add a workload repository to a gitops cluster

Synopsis

Associates an additional application in a git repository with a gitops cluster so that its contents may be managed via GitOps

gitops add app [--name <name>] (--url <url> | <repository directory>) [--branch <branch>] [--path <path within repository>] [flags]

Examples


# Add application to gitops control from local git repository
gitops add app .

# Add podinfo application to gitops control from github repository
gitops add app --url git@github.com:myorg/podinfo

Options

      --auto-merge                             If set, 'gitops add app' will merge automatically into the set --branch
--branch string Branch to watch within git repository
--chart string Specify chart for helm source
--config-repo string URL of external repository (if any) which will hold automation manifests
--deployment-type string Deployment type [kustomize, helm] (default "kustomize")
--dry-run If set, 'gitops add app' will not make any changes to the system; it will just display the actions that would have been taken
--helm-release-target-namespace string Namespace in which to deploy a helm chart; defaults to the gitops installation namespace
-h, --help help for app
--name string Name of application
--path string Path of files within git repository (default "./")
--url string URL of remote repository

Options inherited from parent commands

  -e, --endpoint string    The Weave GitOps Enterprise HTTP API endpoint
--namespace string The namespace scope for this operation (default "wego-system")
-v, --verbose Enable verbose output

SEE ALSO

Auto generated by spf13/cobra on 25-Jan-2022