From 149b4fa54bc3ef6c1beec95a83ae5a5f442b70c2 Mon Sep 17 00:00:00 2001 From: Adrien Reslinger Date: Fri, 22 Jul 2022 23:26:24 +0200 Subject: [PATCH] Fix lint errors --- defaults/main.yml | 2 ++ meta/main.yml | 6 +++--- tasks/main.yml | 28 ++++++++++++++-------------- templates/diun-Deployment.yml.j2 | 2 +- 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index e0624d3..e2334cf 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1 +1,3 @@ my_context: minikube +# duin_version: "latest" +duin_version: "4.22.0" \ No newline at end of file diff --git a/meta/main.yml b/meta/main.yml index 7b4f97a..ce18b4a 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -6,6 +6,6 @@ galaxy_info: galaxy_tags: [] license: GPL2 platforms: - - name: kubernetes - version: - - all + - name: kubernetes + version: + - all diff --git a/tasks/main.yml b/tasks/main.yml index 0549bae..7275d65 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,21 +1,21 @@ --- - name: calico setup block: -# - name: Include vars -# include_vars: "diun-files.yaml" +# - name: Include vars +# ansible.builtin.include_vars: "diun-files.yaml" - - name: Diun install - kubernetes.core.k8s: - state: present - context: "{{ my_context }}" - merge_type: merge - resource_definition: "{{ lookup('template', item) | from_yaml }}" - with_items: - - diun-ServiceAccount.yml.j2 - - diun-ClusterRole.yml.j2 - - diun-ClusterRoleBinding.yml.j2 - - diun-ConfigMap.yml.j2 - - diun-Deployment.yml.j2 + - name: Diun install + kubernetes.core.k8s: + state: present + context: "{{ my_context }}" + merge_type: merge + resource_definition: "{{ lookup('template', item) | from_yaml }}" + with_items: + - diun-ServiceAccount.yml.j2 + - diun-ClusterRole.yml.j2 + - diun-ClusterRoleBinding.yml.j2 + - diun-ConfigMap.yml.j2 + - diun-Deployment.yml.j2 tags: diff --git a/templates/diun-Deployment.yml.j2 b/templates/diun-Deployment.yml.j2 index 03c9020..549b076 100644 --- a/templates/diun-Deployment.yml.j2 +++ b/templates/diun-Deployment.yml.j2 @@ -20,7 +20,7 @@ spec: serviceAccountName: diun containers: - name: diun - image: crazymax/diun:latest + image: crazymax/diun:{{ duin_version }} imagePullPolicy: Always args: ["serve"] env: