Authoring Helm Classic Charts
It is important for chart authors to understand Helm Classic fundamentals. Before you begin, make sure you are familiar with:
- How to model Services in Helm Classic
- How Helm Classic uses Kubernetes Labels
- How the Helm Classic workspace is laid out
Helm Classic Charts consist of three items:
manifestsdirectory for Kubernetes resources
The directory structure of a chart is as follows:
|- mychart/ | |- manifests/ | |- mychart-rc.yaml |- mychart-service.yaml |- ... |- Chart.yaml |- README.md
Create a new Chart
Step 1: Create the Chart in your Workspace
helmc create <chart-name> to create a new chart in your workspace.
This will copy the default "skeleton" chart into
Step 2: Edit the Chart
helmc edit <chart-name> to open all files in the chart in a single editor.
For convenience, this will present all the chart files inside a single editor, with
--- : <filepath> delimiters. This makes it easy to modify a chart, add files, and remove files all within a single
helmc edit command.
If you prefer to edit files manually, you can use an IDE or any other file-based editor.
Step 3: Test the Chart
helmc test <chart-name> to test installing the chart and validating that the proper Kubernetes resources are created, as evidenced by the
helmc test output and return code.
Step 4: Publish the Chart
helmc publish <chart-name> to copy a chart from your local workspace into the Git checkout that lives under
~/.helmc/cache. From here you can submit a pull request.