Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refact(yaml): removed the os dependecy to download the zfs-operator file #516

Merged
merged 1 commit into from
Sep 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ spec:
- name: ZFS_DRIVER_IMAGE
value: ''

## This env will be used to select zfs-operator file for
## specific Operating system on which k8s cluster is created
## For ubuntu based cluster give value as `ubuntu` (for both either 18.04 or 16.04)
## For CentOS based cluster give value as either `centos7` or `centos8` accordingly
- name: OS_NAME
value: ''

## If zpool need to be created on each worker node set this value as `true`
## If already present and no need of zpool creation then set this value as `false`
## If false then leave `POOL_NAME` & `POOL_TYPE` env values empty.
Expand Down
27 changes: 2 additions & 25 deletions experiments/zfs-localpv/zfs-localpv-provisioner/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,39 +24,16 @@
include_tasks: /utils/zpool_creation/create_zpool.yml
when: lookup('env','ZPOOL_CREATION') == 'true'

- name: Download OpenEBS ZFS driver file when OS is ubuntu
- name: Download OpenEBS ZFS-LocalPV operator file
get_url:
url: https://raw.githubusercontent.com/openebs/zfs-localpv/{{ zfs_branch }}/deploy/zfs-operator.yaml
dest: ./zfs_operator.yml
force: yes
register: result
when: lookup('env','OS_NAME') == 'ubuntu'
until: "'OK' in result.msg"
delay: 5
retries: 3

- name: Download OpenEBS ZFS driver file when OS is CentOS7
get_url:
url: https://raw.githubusercontent.com/openebs/zfs-localpv/{{ zfs_branch }}/deploy/operators/centos7/zfs-operator.yaml
dest: ./zfs_operator.yml
force: yes
register: result
when: lookup('env','OS_NAME') == 'centos7'
until: "'OK' in result.msg"
delay: 5
retries: 3

- name: Download OpenEBS ZFS driver file when OS is CentOS8
get_url:
url: https://raw.githubusercontent.com/openebs/zfs-localpv/{{ zfs_branch }}/deploy/operators/centos8/zfs-operator.yaml
dest: ./zfs_operator.yml
force: yes
register: result
when: lookup('env','OS_NAME') == 'centos8'
until: "'OK' in result.msg"
delay: 5
retries: 3


- name: Update the openebs zfs-driver image tag
replace:
path: ./zfs_operator.yml
Expand Down