helm
¶
- saltext.helm.states.helm.repo_managed(name, present=None, absent=None, prune=False, repo_update=False, namespace=None, flags=None, kvflags=None)[source]¶
Make sure the repository is updated.
- name
(string) Not used.
- present
(list) List of repository to be present. It’s a list of dict: [{‘name’: ‘local_name’, ‘url’: ‘repository_url’}]
- absent
(list) List of local name repository to be absent.
- prune
(boolean - default: False) If True, all repository already present but not in the present list would be removed.
- repo_update
(boolean - default: False) If True, the Helm repository is updated after a repository add or remove.
- namespace
(string) The namespace scope for this request.
- flags
(list) Flags in argument of the command without values. ex: [‘help’, ‘–help’]
- kvflags
(dict) Flags in argument of the command with values. ex: {‘v’: 2, ‘–v’: 4}
Example:
helm_repository_is_managed: helm.repo_managed: - present: - name: local_name_1 url: repository_url - absent: - local_name_2
- saltext.helm.states.helm.repo_updated(name, namespace=None, flags=None, kvflags=None)[source]¶
Make sure the repository is updated. To execute after a repository changes.
- name
(string) Not used.
- namespace
(string) The namespace scope for this request.
- flags
(list) Flags in argument of the command without values. ex: [‘help’, ‘–help’]
- kvflags
(dict) Flags in argument of the command with values. ex: {‘v’: 2, ‘–v’: 4}
Example:
helm_repository_is_updated: helm.repo_updated
- saltext.helm.states.helm.release_present(name, chart, values=None, version=None, namespace=None, set=None, flags=None, kvflags=None)[source]¶
Make sure the release name is present.
- name
(string) The release name to install.
- chart
(string) The chart to install.
- values
(string) Absolute path to the values.yaml file.
- version
(string) The exact chart version to install. If this is not specified, the latest version is installed.
- namespace
(string) The namespace scope for this request.
- set
(string or list) Set a values on the command line.
- flags
(list) Flags in argument of the command without values. ex: [‘help’, ‘–help’]
- kvflags
(dict) Flags in argument of the command with values. ex: {‘v’: 2, ‘–v’: 4}
Example:
helm_release_is_present: helm.release_present: - name: release_name - chart: repo/chart # In dry-run mode. helm_release_is_present_dry-run: helm.release_present: - name: release_name - chart: repo/chart - flags: - dry-run # With values.yaml file. helm_release_is_present_values: helm.release_present: - name: release_name - chart: repo/chart - kvflags: values: /path/to/values.yaml
- saltext.helm.states.helm.release_absent(name, namespace=None, flags=None, kvflags=None)[source]¶
Make sure the release name is absent.
- name
(string) The release name to uninstall.
- namespace
(string) The namespace scope for this request.
- flags
(list) Flags in argument of the command without values. ex: [‘help’, ‘–help’]
- kvflags
(dict) Flags in argument of the command with values. ex: {‘v’: 2, ‘–v’: 4}
Example:
helm_release_is_absent: helm.release_absent: - name: release_name # In dry-run mode. helm_release_is_absent_dry-run: helm.release_absent: - name: release_name - flags: - dry-run