Updated docs to refer new requirements.yaml structure

pull/2534/head
Sushil Kumar 8 years ago
parent 716be14ad3
commit 0afcd0b5f6

@ -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:
- 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

Loading…
Cancel
Save