Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.95 KB

ks_pkg.md

File metadata and controls

55 lines (39 loc) · 1.95 KB

ks pkg

Manage packages and dependencies for the current ksonnet application

Synopsis

A ksonnet package contains:

  • A set of prototypes (see ks prototype --help for more info on prototypes), which generate similar types of components (e.g. redis-stateless, redis-persistent)
  • Associated helper libraries that define the prototype parts (e.g. redis.libsonnet)

Packages allow you to easily distribute and reuse code in any ksonnet application. Packages come from registries, such as Github repositories. (For more info, see ks registry --help).

To be recognized and imported by ksonnet, packages need to follow a specific schema. See the annotated file tree below, as an example:

.
├── README.md                      // Human-readable description of the package
├── parts.yaml                     // Provides metadata about the package
├── prototypes                     // Can be imported and used to generate components
│   ├── redis-all-features.jsonnet
│   ├── redis-persistent.jsonnet
│   └── redis-stateless.jsonnet
└── redis.libsonnet                // Helper library, includes prototype parts

Options

  -h, --help   help for pkg

Options inherited from parent commands

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

SEE ALSO

  • ks - Configure your application to deploy to a Kubernetes cluster
  • ks pkg describe - Describe a ksonnet package and its contents
  • ks pkg install - Install a package (e.g. extra prototypes) for the current ksonnet app
  • ks pkg list - List all packages known (downloaded or not) for the current ksonnet app
  • ks pkg remove - Remove a package from the app or environment scope