HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/collector/clusters/__pycache__/kubernetes.cpython-36.pyc
3

3��dT�@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�kubernetes-masterzkubernetes.allZonZkubectl�label��-Filter node list to those with matching label�role�,Filter node list to those with matching rolecCs�|jd7_|jd�r4|jdt|jd��7_|j|j�}|ddkr�g}dd�|jd�jd	�D�}xR|d
j�dd�D]:}|j�}|s�|j|d�q�|d|kr�|j|d�q�W|Std
��dS)Nz
 get nodesrz -l %s ZstatusrcSsg|]}|r|�qS�r)�.0�xrr� /usr/lib/python3.6/kubernetes.py�
<listcomp>)sz(kubernetes.get_nodes.<locals>.<listcomp>r	�,�output��z-Node enumeration did not return usable output)�cmdZ
get_optionrZexec_primary_cmd�split�
splitlines�append�	Exception)�self�resZnodesZrolesZnodelnZnoderrr�	get_nodes"s
zkubernetes.get_nodesN)r)rrr)r	rr
)�__name__�
__module__�__qualname__�__doc__Zcluster_nameZpackagesZsos_pluginsZsos_plugin_optionsrZoption_listrrrrrrsrN)ZpipesrZsos.collector.clustersrrrrrr�<module>s