8000 GitHub - kri5/ktmpl: Parameterized templates for Kubernetes manifests.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ ktmpl Public
forked from InQuicker/ktmpl

Parameterized templates for Kubernetes manifests.

License

Notifications You must be signed in to change notification settings

kri5/ktmpl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ktmpl

ktmpl is a tool for processing Kubernetes manifest templates. It is a very simple client-side implementation of the Templates + Parameterization proposal.

Synopsis

ktmpl 0.1.0
Produces a Kubernetes manifest from a parameterized template

USAGE:
	ktmpl [FLAGS] [OPTIONS] <template> [--]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -p, --parameter <parameter>...    Key-value pair used to fill in the template's parameters in the format key=value

ARGS:
    <template>    Path to the template file to be processed

Usage

Run ktmpl TEMPLATE where TEMPLATE is a path to a Kubernetes manifest template in YAML format. The included example.yml is a working example template.

To provide values for template parameters, use the --parameter option to supply key-value pairs. Using the provided example.yml, this would mean:

ktmpl example.yml --parameter MONGODB_PASSWORD=password

Template parameters that have default values can be overridden with the same mechanism.

The processed template will be output to stdout, suitable for piping into a kubectl command:

ktmpl example.yml --parameter MONGODB_PASSWORD=password | kubectl create -f -

Installing ktmpl

Building from source

  1. Install the appropriate version of Rust for your system.
  2. Run git clone git@github.com:InQuicker/ktmpl.git.
  3. Inside the freshly cloned repository, run cargo install --path ..

Make sure Cargo's bin directory is added to your PATH environment variable.

Legal

ktmpl is released under the MIT license. See LICENSE for details.

About

Parameterized templates for Kubernetes manifests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%
0