HOME


Mini Shell 1.0
DIR: /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/microk8s.cpython-312.pyc
�

i��d��,�ddlmZmZGd�dee�Zy)�)�Plugin�UbuntuPluginc�0�eZdZdZdZdZdZdZdZd�Z	d�Z
y)	�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)�	container)rc�~�|jd��gd�}|j|D�cgc]}d|����	c}�ycc}w)Nzsnap.microk8s.*)�units)zaddons repo list�configzctr plugins lszctr plugins ls -d�status�versionz	microk8s )�add_journal�add_cmd_output)�self�microk8s_subcmds�subcmds   �=/usr/lib/python3/dist-packages/sos/report/plugins/microk8s.py�setupzMicrok8s.setup sK�����0��1�
��	
���/?�
�%+�i��x� �
�	��
s�:c�.�d}|jd|d�y)Nz((certificate-authority-data:|token:)\s.*rz\1 "**********")�do_cmd_output_sub)r�rsubs  r�postproczMicrok8s.postproc0s��:�����z�4�1C�D�N)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�packages�microk8s_cmdrr�rrrrs-���.�J��K��H��H��L�� ErrN)�sos.report.pluginsrrrr#rr�<module>r%s��4�#E�v�|�#Er