github.com/darkowlzz/helm@v2.5.1-0.20171213183701-6707fe0468d4+incompatible/docs/helm/helm_dependency.md (about)

     1  ## helm dependency
     2  
     3  manage a chart's dependencies
     4  
     5  ### Synopsis
     6  
     7  
     8  
     9  Manage the dependencies of a chart.
    10  
    11  Helm charts store their dependencies in 'charts/'. For chart developers, it is
    12  often easier to manage a single dependency file ('requirements.yaml')
    13  which declares all dependencies.
    14  
    15  The dependency commands operate on that file, making it easy to synchronize
    16  between the desired dependencies and the actual dependencies stored in the
    17  'charts/' directory.
    18  
    19  A 'requirements.yaml' file is a YAML file in which developers can declare chart
    20  dependencies, along with the location of the chart and the desired version.
    21  For example, this requirements file declares two dependencies:
    22  
    23      # requirements.yaml
    24      dependencies:
    25      - name: nginx
    26        version: "1.2.3"
    27        repository: "https://example.com/charts"
    28      - name: memcached
    29        version: "3.2.1"
    30        repository: "https://another.example.com/charts"
    31  
    32  The 'name' should be the name of a chart, where that name must match the name
    33  in that chart's 'Chart.yaml' file.
    34  
    35  The 'version' field should contain a semantic version or version range.
    36  
    37  The 'repository' URL should point to a Chart Repository. Helm expects that by
    38  appending '/index.yaml' to the URL, it should be able to retrieve the chart
    39  repository's index. Note: 'repository' can be an alias. The alias must start
    40  with 'alias:' or '@'.
    41  
    42  Starting from 2.2.0, repository can be defined as the path to the directory of
    43  the dependency charts stored locally. The path should start with a prefix of
    44  "file://". For example,
    45  
    46      # requirements.yaml
    47      dependencies:
    48      - name: nginx
    49        version: "1.2.3"
    50        repository: "file://../dependency_chart/nginx"
    51  
    52  If the dependency chart is retrieved locally, it is not required to have the
    53  repository added to helm by "helm add repo". Version matching is also supported
    54  for this case.
    55  
    56  
    57  ### Options inherited from parent commands
    58  
    59  ```
    60        --debug                     enable verbose output
    61        --home string               location of your Helm config. Overrides $HELM_HOME (default "~/.helm")
    62        --host string               address of Tiller. Overrides $HELM_HOST
    63        --kube-context string       name of the kubeconfig context to use
    64        --kubeconfig string         path to kubeconfig file. Overrides $KUBECONFIG
    65        --tiller-namespace string   namespace of Tiller (default "kube-system")
    66  ```
    67  
    68  ### SEE ALSO
    69  * [helm](helm.md)	 - The Helm package manager for Kubernetes.
    70  * [helm dependency build](helm_dependency_build.md)	 - rebuild the charts/ directory based on the requirements.lock file
    71  * [helm dependency list](helm_dependency_list.md)	 - list the dependencies for the given chart
    72  * [helm dependency update](helm_dependency_update.md)	 - update charts/ based on the contents of requirements.yaml
    73  
    74  ###### Auto generated by spf13/cobra on 7-Nov-2017