Commit 0afcd0b5 authored by Sushil Kumar's avatar Sushil Kumar

Updated docs to refer new requirements.yaml structure

parent 716be14a
...@@ -234,11 +234,11 @@ team. ...@@ -234,11 +234,11 @@ team.
In addition to the other fields above, each requirements entry may contain In addition to the other fields above, each requirements entry may contain
the optional field `alias`. the optional field `alias`.
Adding an alias for a dependency chart would add another copy Adding an alias for a dependency chart would put
of the chart as a new depdendency using alias as name of new dependency. a chart in dependencies using alias as name of new dependency.
One can use `alias` in cases where they need multiple copies of same chart One can use `alias` in cases where they need to access a chart
as dependencies all independent of one another. with other name(s).
```` ````
# parentchart/requirements.yaml # parentchart/requirements.yaml
...@@ -246,16 +246,21 @@ dependencies: ...@@ -246,16 +246,21 @@ dependencies:
- name: subchart - name: subchart
repository: http://localhost:10191 repository: http://localhost:10191
version: 0.1.0 version: 0.1.0
alias: alias: new-subchart-1
- one-more-subchart - name: subchart
- another-subchart repository: http://localhost:10191
version: 0.1.0
alias: new-subchart-2
- name: subchart
repository: http://localhost:10191
version: 0.1.0
```` ````
In the above example we will get 3 depenendencies in all for `parentchart` In the above example we will get 3 depenendencies in all for `parentchart`
``` ```
subchart subchart
one-more-subchart new-subchart-1
another-subchart new-subchart-2
``` ```
Manual way of achieving this is copy/pasting same chart in Manual way of achieving this is copy/pasting same chart in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment