mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
16 lines
442 B
YAML
16 lines
442 B
YAML
|
|
---
|
||
|
|
- name: Obtain list of existing namespaces
|
||
|
|
shell: >
|
||
|
|
kubectl get ns --no-headers -o custom-columns=:metadata.name
|
||
|
|
args:
|
||
|
|
executable: /bin/bash
|
||
|
|
register: ns_list
|
||
|
|
|
||
|
|
- name: Create test specific namespace.
|
||
|
|
shell: kubectl create ns {{ app_ns }}
|
||
|
|
args:
|
||
|
|
executable: /bin/bash
|
||
|
|
when: app_ns != 'e2e' and app_ns not in ns_list.stdout_lines
|
||
|
|
|
||
|
|
# Check status of namespace
|
||
|
|
- include_tasks: /e2e-tests/utils/k8s/status_testns.yml
|