Skip to content

Commit

Permalink
[plugins] mark 9 plugins as supported on COS
Browse files Browse the repository at this point in the history
9 exisiting plugins already works on Container-Optimized OS. Marking it
to reflect that.

Signed-off-by: Xuewei Zhang <[email protected]>
  • Loading branch information
Xuewei Zhang committed Apr 30, 2020
1 parent 0d2c421 commit ae66ffd
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 18 deletions.
5 changes: 5 additions & 0 deletions sos/report/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,11 @@ class SuSEPlugin(object):
pass


class CosPlugin(object):
"""Tagging class for Container-Optimized OS"""
pass


class IndependentPlugin(object):
"""Tagging class for plugins that can run on any platform"""
pass
Expand Down
5 changes: 3 additions & 2 deletions sos/report/plugins/cgroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
#
# See the LICENSE file in the source distribution for further information.

from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
from sos.report.plugins import (Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin,
CosPlugin)


class Cgroups(Plugin, DebianPlugin, UbuntuPlugin):
class Cgroups(Plugin, DebianPlugin, UbuntuPlugin, CosPlugin):
"""Control groups subsystem
"""

Expand Down
5 changes: 3 additions & 2 deletions sos/report/plugins/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
#
# See the LICENSE file in the source distribution for further information.

from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
from sos.report.plugins import (Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin,
CosPlugin)


class Devices(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
class Devices(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, CosPlugin):
""" devices specific commands
"""

Expand Down
5 changes: 3 additions & 2 deletions sos/report/plugins/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
#
# See the LICENSE file in the source distribution for further information.

from sos.report.plugins import Plugin, RedHatPlugin, UbuntuPlugin, SoSPredicate
from sos.report.plugins import (Plugin, RedHatPlugin, UbuntuPlugin, SoSPredicate,
CosPlugin)


class Docker(Plugin):
class Docker(Plugin, CosPlugin):

"""Docker containers
"""
Expand Down
5 changes: 3 additions & 2 deletions sos/report/plugins/filesys.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
#
# See the LICENSE file in the source distribution for further information.

from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
from sos.report.plugins import (Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin,
CosPlugin)


class Filesys(Plugin, DebianPlugin, UbuntuPlugin):
class Filesys(Plugin, DebianPlugin, UbuntuPlugin, CosPlugin):
"""Local file systems
"""

Expand Down
5 changes: 3 additions & 2 deletions sos/report/plugins/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
#
# See the LICENSE file in the source distribution for further information.

from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
from sos.report.plugins import (Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin,
CosPlugin)
import os
import glob


class Kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
class Kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, CosPlugin):
"""Linux kernel
"""

Expand Down
5 changes: 3 additions & 2 deletions sos/report/plugins/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

import os
import glob
from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
from sos.report.plugins import (Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin,
CosPlugin)


class Logs(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
class Logs(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, CosPlugin):
"""System logs"""

plugin_name = "logs"
Expand Down
5 changes: 3 additions & 2 deletions sos/report/plugins/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
#
# See the LICENSE file in the source distribution for further information.

from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
from sos.report.plugins import (Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin,
CosPlugin)


class Memory(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
class Memory(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, CosPlugin):
"""Memory configuration and use
"""

Expand Down
5 changes: 3 additions & 2 deletions sos/report/plugins/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
#
# See the LICENSE file in the source distribution for further information.

from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
from sos.report.plugins import (Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin,
CosPlugin)


class Process(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
class Process(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, CosPlugin):
"""process information
"""

Expand Down
5 changes: 3 additions & 2 deletions sos/report/plugins/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
#
# See the LICENSE file in the source distribution for further information.

from sos.report.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
from sos.report.plugins import (Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin,
CosPlugin)


class Systemd(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
class Systemd(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin, CosPlugin):
""" System management daemon
"""

Expand Down

0 comments on commit ae66ffd

Please sign in to comment.