HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/microk8s.cpython-38.pyc
U

i��d�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�UbuntuPluginc@s4eZdZdZdZdZdZdZdZdd�Z	dd	�Z
d
S)�Microk8saThe Microk8s plugin collects the current status of the microk8s
    snap on a Ubuntu machine.

    It will collect logs from journald related to the snap.microk8s
    units as well as run microk8s commands to retrieve the configuration,
    status, version and loaded plugins.
    zThe lightweight Kubernetes�microk8s)Z	container)rcCs4|jdd�ddddddg}|�d	d
�|D��dS)Nzsnap.microk8s.*)Zunitszaddons repo listZconfigzctr plugins lszctr plugins ls -dZstatus�versioncSsg|]}d|���qS)z	microk8s �)�.0Zsubcmdrr�=/usr/lib/python3/dist-packages/sos/report/plugins/microk8s.py�
<listcomp>,sz"Microk8s.setup.<locals>.<listcomp>)Zadd_journalZadd_cmd_output)�selfZmicrok8s_subcmdsrrr	�setup s�	
�zMicrok8s.setupcCsd}|�d|d�dS)Nz((certificate-authority-data:|token:)\s.*rz\1 "**********")Zdo_cmd_output_sub)rZrsubrrr	�postproc0szMicrok8s.postprocN)�__name__�
__module__�__qualname__�__doc__Z
short_descZplugin_nameZprofilesZpackagesZmicrok8s_cmdrr
rrrr	rsrN)Zsos.report.pluginsrrrrrrr	�<module>s