HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
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