https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/microk8s.cpython-310.pyc
o

-�_g�@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)�	container)rcs:�jdd�gd�}��d����fdd�|D��dS)Nzsnap.microk8s.*)�units)zaddons repo list�configzctr plugins lszctr plugins ls -d�status�version�4/var/snap/microk8s/current/credentials/client.configcsg|]
}�j�d|���qS)� )�microk8s_cmd)�.0�subcmd��self��=/usr/lib/python3/dist-packages/sos/report/plugins/microk8s.py�
<listcomp>/s�z"Microk8s.setup.<locals>.<listcomp>)�add_journal�
add_copy_spec�add_cmd_output)r�microk8s_subcmdsrrr�setup s��zMicrok8s.setupcCs@d}|�|j|d�gd�}dd�|��d�}|�d|d�dS)	Nz((certificate-authority-data:|token:)\s.*z\1 "**********")zcertificate-authority-datazclient-certificate-datazclient-key-data�tokenz(^\s*(�|z
)\s*:\s*)(.*)rz\1*********)�do_cmd_output_subr
�join�do_path_regex_sub)r�rsub�protect_keys�	key_regexrrr�postproc3s�zMicrok8s.postprocN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�packagesr
rr"rrrrrsrN)�sos.report.pluginsrrrrrrr�<module>s

https://t.me/RX1948 - 2025