
    ~ g@                     2    S SK Jr  S SKJr   " S S\5      rg)    )quote)Clusterc                   @    \ rS rSrSrSrSrS /rSS0rSr	SS	/r
S
 rSrg)
kubernetes   z
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.
zCommunity Kubernetes)zkubernetes-masterzkubernetes.allonkubectl)label z-Filter node list to those with matching label)roler   z,Filter node list to those with matching rolec                 l   U =R                   S-  sl         U R                  S5      (       a1  U =R                   S[        U R                  S5      5       S3-  sl         U R                  U R                   5      nUS   S:X  a  / nU R                  S5      R	                  S5       Vs/ s H  o3(       d  M  UPM     nnUS	   R                  5       S
S   HO  nUR	                  5       nU(       d  UR                  US   5        M0  US   U;   d  M;  UR                  US   5        MQ     U$ [        S5      es  snf )Nz
 get nodesr
   z -l  statusr   r   ,output      z-Node enumeration did not return usable output)cmd
get_optionr   exec_primary_cmdsplit
splitlinesappend	Exception)selfresnodesxrolesnodelnnodes          C/usr/lib/python3/dist-packages/sos/collector/clusters/kubernetes.py	get_nodeskubernetes.get_nodes"   s   L ??7##HH$uT__W%=>?qAAH##DHH-x=AE $ 7 = =c BH B1aQ BEHh-224QR8||~LLa)Aw%'T!W- 9 LGHH Is   %
D13D1 N)__name__
__module____qualname____firstlineno____doc__cluster_namepackagessos_pluginssos_plugin_optionsr   option_listr#   __static_attributes__r%       r"   r   r      s@     *L%H.K*D1
C 	GDK
Ir1   r   N)shlexr   sos.collector.clustersr   r   r%   r1   r"   <module>r4      s     *#I #Ir1   