🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-07 16:34:33 | PHP 8.2.32
📂
/ (Root)
/
usr
/
lib
/
python3.6
/
site-packages
/
sos
/
collector
/
clusters
/
__pycache__
📍 /usr/lib/python3.6/site-packages/sos/collector/clusters/__pycache__
🔄 Refresh
✏️
Editing: kubernetes.cpython-36.pyc
Read Only
3 ܓ�i@ � @ s, d dl mZ d dlmZ G dd� de�ZdS )� )�quote)�Clusterc @ s: e Zd ZdZdZdZd gZddiZdZddgZ dd � 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 rolec C s� | j d7 _ | jd�r8| j dt| jd��� d�7 _ | j| j �}|d dkr�g }dd� | jd �jd �D �}xR|d j� dd � D ]:}|j� }|s�|j|d � q�|d |kr�|j|d � q�W |S td��d S )Nz get nodesr z -l � Zstatusr c S s g | ]}|r|�qS � r )�.0�xr r � /usr/lib/python3.6/kubernetes.py� <listcomp>) s z(kubernetes.get_nodes.<locals>.<listcomp>r �,�output� � z-Node enumeration did not return usable output)�cmdZ get_optionr Zexec_primary_cmd�split� splitlines�append� Exception)�self�resZnodesZrolesZnodelnZnoder r r � get_nodes"