Make resources configurable for log collection
* Updated the clustered objects and namespaced objects to use a custom list when defined, otherwise fallback to the existing default list. * This will allow other providers to trim down or change the resource names for log collection Change-Id: I4e19e558470186943f66b6e1f69221b85bab739d
This commit is contained in:
parent
e187740af8
commit
5ad2a3fd06
@ -12,9 +12,9 @@
|
||||
|
||||
## This task will populate kctl_context_list variable with list of contexts if they exist
|
||||
---
|
||||
- name: "Set cluster scoped collectibles"
|
||||
- name: "Set default cluster scoped collectibles"
|
||||
set_fact:
|
||||
collect_clustered_objects:
|
||||
default_clustered_objects:
|
||||
- node
|
||||
- clusterrole
|
||||
- clusterrolebinding
|
||||
@ -23,9 +23,13 @@
|
||||
- persistentvolume
|
||||
- customresourcedefinition
|
||||
|
||||
- name: "Set namespace scoped collectibles"
|
||||
- name: "Set cluster scoped collectibles"
|
||||
set_fact:
|
||||
collect_namespaced_objects:
|
||||
collect_clustered_objects: "{{ clustered_objects | default(default_clustered_objects) }}"
|
||||
|
||||
- name: "Set default namespace scoped collectibles"
|
||||
set_fact:
|
||||
default_namespaced_objects:
|
||||
- baremetalhosts
|
||||
- clusters
|
||||
- configmaps
|
||||
@ -57,6 +61,9 @@
|
||||
- services
|
||||
- statefulsets
|
||||
|
||||
- name: "Set namespace scoped collectibles"
|
||||
set_fact:
|
||||
collect_namespaced_objects: "{{ namespaced_objects | default(default_namespaced_objects) }}"
|
||||
|
||||
- name: "Get context list"
|
||||
include_tasks: get-contexts.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user