Ë
    i©¹di  ã                   ó,   — d dl mZmZ  G d„ dee«      Zy)é    )ÚPluginÚRedHatPluginc                   ó2   — e Zd ZdZdZd ZdZdZdZdZ	dZ
d„ Zy)	Ú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.
    zetcd plugin)r   )Ú	containerÚsystemÚservicesÚcluster)ú/etc/etcd/etcd.conf)Úetcdctlr   c                 óF  — d }| j                   D ]  }| j                  |«      sŒ|} n | j                  ddi«       | j                  ddg«       | j	                  d|¬«       | j                  d|¬«       g d¢}| j	                  |D �cg c]  }d	|› �‘Œ	 c}|¬«       y c c}w )
Nr   Ú	etcd_confz/etc/etcd/caz/etc/etcd/*.keyzls -lR /var/lib/etcd/)r   z	/etc/etcd)Úversionzmember listz
alarm listzendpoint statuszendpoint healthzetcdctl )Ú
containersÚget_container_by_nameÚadd_file_tagsÚadd_forbidden_pathÚadd_cmd_outputÚadd_copy_spec)ÚselfÚetcd_conÚconÚsubcmdsÚsubs        ú9/usr/lib/python3/dist-packages/sos/report/plugins/etcd.pyÚsetupz
etcd.setup%   sÅ   € àˆØ—?‘?ò 	ˆCØ×)Ñ)¨#Õ.Ø�Ùð	ð
 	×ÑØ! ;ð
ô 	ð 	×ÑØØð!
ô 	ð
 	×ÑÐ3¸xÐÔHØ×Ñ˜;°(ÐÔ;ò
ˆð 	×ÑØ)0Ö1 #ˆx˜�uÒÒ1Øð 	õ 	
ùÚ1s   ÂBN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
short_descÚplugin_nameÚpackagesÚprofilesÚfilesr   r	   r   © ó    r   r   r      s1   „ ñ
ð €Jà€KØ€HØ=€HØ$€EØ$€JØ€Hó
r'   r   N)Úsos.report.pluginsr   r   r   r&   r'   r   ú<module>r)      s   ð÷ 4ô5
ˆ6�<õ 5
r'   