npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

helm-values

v0.1.0

Published

Helm plugin to manage multiple subchart values by stage

Downloads

3

Readme

helm-values

Helm plugin to manage multiple subcharts' values by env.

oclif Version Downloads/week License

Why I made this?

There's already simmilar project helm-values. But it doesn't meet my needs.

My needs are

  • Helm doesn't support the env patch feature like kustomize
  • I want to manage values.yaml by dividing in each subcharts
  • The values.yaml, values.json are no more programmable

So I decided to make my own tools for these.

How it works?

  • init - Initiate the helm-values

    helm-values-init

  • generate - A helper tools to generate multiple manifests or templates in single command

    helm-values-generate

  • build - This operation is a combination of combine, patch, merge

    • combine - Combine template(nunjucks, ejs) with data model /mysql/prod.yaml.njk + /mysql/data.yaml -> /mysql/prod.yaml

      helm-values-combine

    • patch - Patch [stage].yaml with base.yaml if it is avaiable /mysql/base.yaml + /mysql/prod.yaml -> /mysql/values.yaml

      helm-values-patch

    • merge - Merge subcharts /mysql/values.yaml + /redis/values.yaml -> /values.yaml

      helm-values-merge

  • clean - A helper tools to clean the values.yaml and processed data

    helm-values-clean

Usage

$ npm install -g helm-values
$ helm-values COMMAND
running command...
$ helm-values (-v|--version|version)
helm-values/0.1.0 linux-x64 node-v14.15.5
$ helm-values --help [COMMAND]
USAGE
  $ helm-values COMMAND
...

Commands

helm-values build

USAGE
  $ helm-values build

OPTIONS
  -f, --format=(yaml|json)  [default: yaml] preferred format of manifest
  -h, --help                show CLI help
  -o, --output=output       path to output
  -s, --stage=stage         specify the stage to build

EXAMPLE
  $ helm-values build
  Build complete!

See code: src/commands/build.ts

helm-values clean [CHART]

USAGE
  $ helm-values clean [CHART]

OPTIONS
  -h, --help             show CLI help
  -s, --stage=stage      stages to clean
  --remove-subdirectory  remove subdirectories in chart

EXAMPLE
  $ helm-values clean
  Everything is clear now!

See code: src/commands/clean.ts

helm-values combine [CHART]

USAGE
  $ helm-values combine [CHART]

OPTIONS
  -h, --help         show CLI help
  -s, --stage=stage  [default: ] stage to Combine

EXAMPLE
  $ helm-values combine -s dev -- mysql
  Combine done!

See code: src/commands/combine.ts

helm-values generate [CHART]

USAGE
  $ helm-values generate [CHART]

OPTIONS
  -d, --data
  -f, --format=(yaml|json)  [default: yaml] preferred format of manifest
  -h, --help                show CLI help

  -s, --stage=stage         [default: ] stages to generate (If you do not specify the stages, then it will refer the
                            stages values in '/values/.helmvalues')

  -t, --template=(njk|ejs)  preferred template of manifest

  --base-only               don't generate base.yaml or base.json

  --no-base                 generate only base

EXAMPLES
  $ helm-values generate
  Generate mysql, redis successfully!
  $ helm-values generate -- mysql redis
  Generate mysql, redis successfully!
  $ helm-values generate -s prod dev test -- mysql redis
  Generate mysql, redis successfully!

See code: src/commands/generate.ts

helm-values help [COMMAND]

display help for helm-values

USAGE
  $ helm-values help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

helm-values init

USAGE
  $ helm-values init

EXAMPLE
  $ helm-values init
  Initiate helm-values!

See code: src/commands/init.ts

helm-values merge [CHART]

USAGE
  $ helm-values merge [CHART]

OPTIONS
  -f, --format=(yaml|json)  [default: yaml] preferred format of manifest
  -h, --help                show CLI help
  -p, --print               print the output in your console

EXAMPLE
  $ helm-values merge
  Merge done!

See code: src/commands/merge.ts

helm-values patch [CHART]

USAGE
  $ helm-values patch [CHART]

OPTIONS
  -f, --format=(yaml|json)  [default: yaml] preferred format of manifest
  -h, --help                show CLI help
  -p, --print               print the output in your console
  -s, --stage=stage         (required) stage to patch

EXAMPLE
  $ helm-values patch -s dev -- mysql
  Patch done!

See code: src/commands/patch.ts