AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/sos/collector/clusters/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/sos/collector/clusters/__pycache__/kubernetes.cpython-310.pyc
o

���bT�@s,ddlmZddlmZGdd�de�ZdS)�)�quote)�Clusterc@s:eZdZdZdZdZdgZddiZdZddgZ	d	d
�Z
dS)�
kubernetesz�
    The kuberentes cluster profile is intended to be used on kubernetes
    clusters built from the upstream/source kubernetes (k8s) project. It is
    not intended for use with other projects or platforms that are built ontop
    of kubernetes.
    zCommunity Kubernetes)zkubernetes-masterzkubernetes.all�on�kubectl)�label�z-Filter node list to those with matching label)�rolerz,Filter node list to those with matching rolecCs�|jd7_|�d�r|jdt|�d��7_|�|j�}|ddkr_g}dd�|�d��d	�D�}|d
��dd�D]}|��}|sO|�|d�q?|d|vr\|�|d�q?|Std
��)Nz
 get nodesrz -l %s �statusrcSsg|]}|r|�qS�r)�.0�xrr�C/usr/lib/python3/dist-packages/sos/collector/clusters/kubernetes.py�
<listcomp>)sz(kubernetes.get_nodes.<locals>.<listcomp>r	�,�output��z-Node enumeration did not return usable output)�cmd�
get_optionr�exec_primary_cmd�split�
splitlines�append�	Exception)�self�res�nodes�roles�nodeln�noderrr�	get_nodes"s 
�zkubernetes.get_nodesN)�__name__�
__module__�__qualname__�__doc__�cluster_name�packages�sos_plugins�sos_plugin_optionsr�option_listr!rrrrrs�rN)�pipesr�sos.collector.clustersrrrrrr�<module>s


Anon7 - 2022
AnonSec Team