Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
1ea663a3
Commit
1ea663a3
authored
Jun 29, 2017
by
Taylor Thomas
Committed by
GitHub
Jun 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2625 from santiycr/patch-1
charts.md updates
parents
56ed16ae
4c58fb04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
34 deletions
+41
-34
charts.md
docs/charts.md
+41
-34
No files found.
docs/charts.md
View file @
1ea663a3
...
...
@@ -138,48 +138,20 @@ for greater detail.
## Chart Dependencies
In Helm, one chart may depend on any number of other charts.
These
dependencies are expressed explicitly by copying the dependency charts
into the
`charts/`
directory.
In Helm, one chart may depend on any number of other charts.
These dependencies can be dynamically linked through the
`requirements.yaml`
file or brought in to the
`charts/`
directory and managed manually.
A
dependency can be either a chart archive (
`foo-1.2.3.tgz`
) or an
unpacked chart directory. But its name cannot start with
`_`
or
`.`
.
Such files are ignored by the chart loader
.
A
lthough manually managing your dependencies has a few advantages some teams need,
the preferred method of declaring dependencies is by using a
`requirements.yaml`
file inside of your chart
.
**Note:**
The
`dependencies:`
section of the
`Chart.yaml`
from Helm
Classic has been completely removed.
For example, if the WordPress chart depends on the Apache chart, the
Apache chart (of the correct version) is supplied in the WordPress
chart's
`charts/`
directory:
```
wordpress:
Chart.yaml
requirements.yaml
# ...
charts/
apache/
Chart.yaml
# ...
mysql/
Chart.yaml
# ...
```
The example above shows how the WordPress chart expresses its dependency
on Apache and MySQL by including those charts inside of its
`charts/`
directory.
**TIP:**
_To drop a dependency into your
`charts/`
directory, use the
`helm fetch`
command or use a
`requirements.yaml`
file_
### Managing Dependencies with `requirements.yaml`
While Helm will allow you to manually manage your dependencies, the
preferred method of declaring dependencies is by using a
`requirements.yaml`
file inside of your chart.
A
`requirements.yaml`
file is a simple file for listing your
dependencies.
...
...
@@ -441,6 +413,41 @@ myimports:
The parent's final values now contains the `
myint
` and `
mybool
` fields imported from subchart1.
### Managing Dependencies manually via the `
charts/
` directory
If more control over dependencies is desired, these dependencies can
be expressed explicitly by copying the dependency charts into the
`
charts/
` directory.
A dependency can be either a chart archive (`
foo-1.2.3.tgz
`) or an
unpacked chart directory. But its name cannot start with `
_
` or `
.
`.
Such files are ignored by the chart loader.
For example, if the WordPress chart depends on the Apache chart, the
Apache chart (of the correct version) is supplied in the WordPress
chart's `
charts/
` directory:
```
wordpress:
Chart.yaml
requirements.yaml
# ...
charts/
apache/
Chart.yaml
# ...
mysql/
Chart.yaml
# ...
```
The example above shows how the WordPress chart expresses its dependency
on Apache and MySQL by including those charts inside of its `
charts/
`
directory.
**TIP:** _To drop a dependency into your `
charts/
` directory, use the
`
helm fetch
` command_
## Templates and Values
Helm Chart templates are written in the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment