Fix lint errors
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Adrien Reslinger 2022-07-23 01:21:31 +02:00
parent dcbc650c9e
commit 46272c92d8
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
4 changed files with 249 additions and 250 deletions

View file

@ -1,40 +1,40 @@
---
# https://github.com/linode/linode-blockstorage-csi-driver
- name: Include file list
ansible.builtin.include_vars: "linode.yaml"
- name: Include file list
ansible.builtin.include_vars: "linode.yaml"
- name: Defined linode-storage state to present
ansible.builtin.set_fact:
storage_linode_state: present
when:
- storage_linode|bool
- name: Defined linode-storage state to present
ansible.builtin.set_fact:
storage_linode_state: present
when:
- storage_linode|bool
- name: find state of linode-storage
ansible.builtin.set_fact:
storage_linode_state: absent
when:
- not storage_linode|bool
- name: find state of linode-storage
ansible.builtin.set_fact:
storage_linode_state: absent
when:
- not storage_linode|bool
- name: Add secret for Linode Access Key
kubernetes.core.k8s:
state: "{{ storage_linode_state }}"
context: "{{ my_context }}"
definition:
apiVersion: v1
kind: Secret
metadata:
name: linode
namespace: kube-system
type: Opaque
stringData:
token: "{{ LINODE_TOKEN | default('token_missing') }}"
region: "{{ LINODE_REGION | default('token_missing') }}"
- name: Add secret for Linode Access Key
kubernetes.core.k8s:
state: "{{ storage_linode_state }}"
context: "{{ my_context }}"
definition:
apiVersion: v1
kind: Secret
metadata:
name: linode
namespace: kube-system
type: Opaque
stringData:
token: "{{ LINODE_TOKEN | default('token_missing') }}"
region: "{{ LINODE_REGION | default('token_missing') }}"
- name: linode-storage need to be {{ storage_linode_state }}
kubernetes.core.k8s:
state: "{{ storage_linode_state }}"
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('file', item) | from_yaml }}"
with_items:
- "{{ storage_linode_files_list }}"
- name: linode-storage need to be {{ storage_linode_state }}
kubernetes.core.k8s:
state: "{{ storage_linode_state }}"
context: "{{ my_context }}"
merge_type: merge
resource_definition: "{{ lookup('file', item) | from_yaml }}"
with_items:
- "{{ storage_linode_files_list }}"