Skip to content

Commit

Permalink
[microshift] Add initial support for backup info
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Acevedo Montserrat <pacevedo@redhat.com>
  • Loading branch information
pacevedom authored and TurboTurtle committed Jul 10, 2023
1 parent 24b6507 commit aade89e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions sos/report/plugins/microshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ class Microshift(Plugin, RedHatPlugin):
short_desc = 'Microshift'
plugin_name = 'microshift'
plugin_timeout = 900
packages = ('microshift', 'microshift-selinux', 'microshift-networking')
services = (plugin_name,)
packages = ('microshift', 'microshift-selinux', 'microshift-networking',
'microshift-greenboot')
services = (plugin_name, 'greenboot-healthcheck',
'greenboot-task-runner', 'redboot-task-runner')
profiles = (plugin_name,)
localhost_kubeconfig = '/var/lib/microshift/resources/kubeadmin/kubeconfig'

Expand Down Expand Up @@ -146,7 +148,10 @@ def setup(self):
Output format for this function is based on `oc adm inspect` command,
which is used to retrieve all API resources from the cluster.
"""
self.add_forbidden_path('/var/lib/microshift')
if self.path_exists('/var/lib/microshift-backups'):
self.add_copy_spec(['/var/lib/microshift-backups/*/version',
'/var/lib/microshift-backups/*.json'])

self.add_cmd_output([
'microshift version',
'microshift show-config -m effective'
Expand Down

0 comments on commit aade89e

Please sign in to comment.