Update deployment of scope
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2021-03-24 23:04:54 +01:00
parent 75fb29d1e2
commit bf63546a79
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
5 changed files with 15 additions and 27 deletions

View file

@ -28,8 +28,6 @@
- name: Weave Scope setup
block:
- name: Include Weave Scope vars
include_vars: scope-files.yaml
- name: namespace
k8s:
context: "{{ my_context }}"
@ -87,14 +85,15 @@
# file found https://github.com/weaveworks/scope/tree/master/examples/k8s/
- name: Weave Scope files
k8s:
state: present
state: "present"
context: "{{ my_context }}"
namespace: 'weave'
merge_type: merge
resource_definition: "{{ lookup('file', item) | from_yaml }}"
with_items:
- "{{ weave_scope_files }}"
when:
definition: "{{ item }}"
with_items: "{{ lookup('url', 'https://cloud.weave.works/k8s/' + weave_scope_version + '/scope.yaml', split_lines=False) | from_yaml_all | list }}"
when:
- weave_scope|bool
- item is not none
tags:
- weave
- weave-scope