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__/etcd.cpython-310.pyc
o

-�_g��@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�etcd)r)�	container�system�services�cluster)�/etc/etcd/etcd.conf)�etcdctlrcCs�d}|jD]}|�|�r|}nq|�ddi�|�ddg�|jd|dd�|jd|d	�gd
�}|jdd�|D�|d	�dS)
Nr
�	etcd_confz/etc/etcd/caz/etc/etcd/*.keyz/var/lib/etcd/T)r�	recursivez	/etc/etcd)r)�versionzmember listz
alarm listzendpoint statuszendpoint healthcSsg|]}d|���qS)zetcdctl �)�.0�subrr�9/usr/lib/python3/dist-packages/sos/report/plugins/etcd.py�
<listcomp>CszEtcd.setup.<locals>.<listcomp>)�
containers�get_container_by_name�
add_file_tags�add_forbidden_path�add_dir_listing�
add_copy_spec�add_cmd_output)�self�etcd_con�con�subcmdsrrr�setup%s,

����
�z
Etcd.setupN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�packages�profiles�filesrrrrrrrrsrN)�sos.report.pluginsrrrrrrr�<module>s

https://t.me/RX1948 - 2025