jx admin operator

jx admin operator

installs the git operator in a cluster

Aliases: boot

Usage

jx admin operator

Synopsis

Installs the git operator in a cluster

Examples

  • installs the git operator from inside a git clone and prompt for the user/token if required
jx-admin operator
  • installs the git operator from inside a git clone specifying the user/token
jx-admin operator --username mygituser --token mygittoken
  • installs the git operator with the given git clone URL
jx-admin operator --url https://github.com/myorg/environment-mycluster-dev.git --username myuser --token myuser
  • display what helm command will install the git operator
jx-admin operator --dry-run

Options

  -b, --batch-mode                  Runs in batch mode without prompting for user input
      --chart string                the chart name to use to install the git operator (default "jx3/jx-git-operator")
      --chart-version string        override the helm chart version used for the git operator
  -d, --dir string                  the directory to discover the git URL if no url option is specified (default ".")
      --dry-run                     if enabled just display the helm command that will run but don't actually do anything
  -h, --help                        help for operator
      --max-log-duration duration   how long to wait for a boot Job pod to be ready to view its log (default 30m0s)
      --name string                 the helm release name t ouse (default "jxgo")
  -n, --namespace string            the namespace to install the git operator (default "jx-git-operator")
      --no-log                      to disable viewing the logs of the boot Job pods
      --no-switch-namespace         to disable switching to the installation namespace after installing the operator
      --setup stringArray           a git configuration command to configure git inside the git operator pod to deal with things like insecure docker registries etc. e.g. supply 'git config --global http.sslverify false' to disable TLS verification
      --token string                specify the git token the operator will use to clone the environment git repository if there is no password in the git URL. If not specified defaults to $GIT_TOKEN
  -u, --url string                  the git URL for the environment to boot using the operator. This is optional - the git operator Secret can be created later
      --username string             specify the git user name the operator will use to clone the environment git repository if there is no username in the git URL. If not specified defaults to $GIT_USERNAME

SEE ALSO

  • jx admin - commands for creating and upgrading Jenkins X environments using GitOps
Auto generated by spf13/cobra on 1-Feb-2021


Last modified April 6, 2021: fix: regen CLI (2b624fde83)