Update code
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
3159c8412d
commit
1a4944c994
10 changed files with 182 additions and 118 deletions
|
|
@ -8,7 +8,7 @@
|
|||
ansible.builtin.git:
|
||||
repo: "https://github.com/rancher/local-path-provisioner.git"
|
||||
dest: tmp/local-path-provisioner
|
||||
version: "{{ storage_localpath.version }}"
|
||||
version: "{{ storage_localpath_version }}"
|
||||
|
||||
- name: Deploy local-path chart from local path
|
||||
kubernetes.core.helm:
|
||||
|
|
@ -16,15 +16,15 @@
|
|||
name: local-path-provisioner
|
||||
context: "{{ my_context }}"
|
||||
chart_ref: tmp/local-path-provisioner/deploy/chart/local-path-provisioner
|
||||
release_namespace: "{{ storage_localpath.namespace }}"
|
||||
release_namespace: "{{ storage_localpath_namespace }}"
|
||||
create_namespace: true
|
||||
values:
|
||||
nodePathMap:
|
||||
- node: DEFAULT_PATH_FOR_NON_LISTED_NODES
|
||||
paths: ["{{ storage_localpath.default_path }}"]
|
||||
paths: ["{{ storage_localpath_default_path }}"]
|
||||
|
||||
when:
|
||||
- storage_localpath.enabled
|
||||
- storage_localpath_enabled
|
||||
|
||||
- name: Uninstall Local-path
|
||||
block:
|
||||
|
|
@ -33,18 +33,18 @@
|
|||
context: "{{ my_context }}"
|
||||
name: local-path-provisioner
|
||||
release_state: absent
|
||||
release_namespace: "{{ storage_localpath.namespace }}"
|
||||
release_namespace: "{{ storage_localpath_namespace }}"
|
||||
- name: namespace
|
||||
kubernetes.core.k8s:
|
||||
state: absent
|
||||
context: "{{ my_context }}"
|
||||
namespace: "{{ storage_localpath.namespace }}"
|
||||
namespace: "{{ storage_localpath_namespace }}"
|
||||
resource_definition: "{{ lookup('template', 'local-path/' + item) | from_yaml }}"
|
||||
with_items:
|
||||
- "local-path-namespace.yml.j2"
|
||||
|
||||
when:
|
||||
- not storage_localpath.enabled
|
||||
- not storage_localpath_enabled
|
||||
|
||||
tags:
|
||||
- storage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue