Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
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__/etcd.cpython-310.pyc
o

i��di�@s&ddlmZmZGdd�dee�ZdS)�)�Plugin�RedHatPluginc@s4eZdZdZdZdZdZdZdZdZ	dZ
dd�Zd	S)
�etcda�The etcd plugin collects information from the etcd key-value store. It
    is primarily used by Kubernetes/OpenShift clusters and is often run inside
    a container within the cluster.

    Collections will default to executing within an `etcdctl` container, if one
    is present, and only execute on the host if such a container is not
    currently running. The `etcdctl` name preference is adopted from OpenShift
    Container Platform deployments.

    This plugin is written for etcd v3 and later.
    zetcd plugin)r)�	container�system�services�cluster)�/etc/etcd/etcd.conf)�etcdctlrcCs~d}|jD]}|�|�r|}nq|�ddi�|�ddg�|jd|d�|jd|d�gd�}|jd	d
�|D�|d�dS)Nr	�	etcd_confz/etc/etcd/caz/etc/etcd/*.keyzls -lR /var/lib/etcd/)rz	/etc/etcd)�versionzmember listz
alarm listzendpoint statuszendpoint healthcSsg|]}d|���qS)zetcdctl �)�.0�subr
r
�9/usr/lib/python3/dist-packages/sos/report/plugins/etcd.py�
<listcomp>Bszetcd.setup.<locals>.<listcomp>)�
containers�get_container_by_name�
add_file_tags�add_forbidden_path�add_cmd_output�
add_copy_spec)�self�etcd_con�con�subcmdsr
r
r�setup%s(

���
�z
etcd.setupN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�packages�profiles�filesrrrr
r
r
rrsrN)�sos.report.pluginsrrrr
r
r
r�<module>s

Spamworldpro Mini