ks registry add

Add a registry to the current ksonnet app

Synopsis

The add command allows custom registries to be added to your ksonnet app,
provided that their file structures follow the appropriate schema. You can look
at the incubator repo (https://github.com/ksonnet/parts/tree/master/incubator)
as an example.

A registry is given a string identifier, which must be unique within a ksonnet application.

There are three supported registry protocols: github, fs, and Helm.

GitHub registries expect a path in a GitHub repository, and filesystem based
registries expect a path on the local filesystem.

During creation, all registries must specify a unique name and URI where the
registry lives. GitHub registries can specify a commit, tag, or branch to follow as part of the URI.

Registries can be overridden with --override. Overridden registries
are stored in app.override.yaml and can be safely ignored using your
SCM configuration.

  • ks registry list — List all registries known to the current ksonnet app

Syntax

  1. ks registry add <registry-name> <registry-uri> [flags]

Examples

  1. # Add a registry with the name 'databases' at the uri 'github.com/example'
  2. ks registry add databases github.com/example
  3. # Add a registry with the name 'databases' at the uri
  4. # 'github.com/org/example/tree/0.0.1/registry' (0.0.1 is the branch name)
  5. ks registry add databases github.com/org/example/tree/0.0.1/registry
  6. # Add a registry with a Helm Charts Repository uri
  7. ks registry add helm-stable https://kubernetes-charts.storage.googleapis.com

Options

  1. -h, --help help for add
  2. -o, --override Store in override configuration

Options inherited from parent commands

  1. --dir string Ksonnet application root to use; Defaults to CWD
  2. --tls-skip-verify Skip verification of TLS server certificates
  3. -v, --verbose count Increase verbosity. May be given multiple times.

SEE ALSO