�
i��d � �v � d dl mZmZmZmZ d dlmZ d dlZ G d� de� Z G d� dee� Z G d� d ee� Z
y)
� )�Plugin�RedHatPlugin�UbuntuPlugin� PluginOpt)� translateNc � � e Zd ZdZdZdZ eddd�� eddd �� ed
dd�� edd
ed�� gZdZ d� Z
d� Zd� Zy)�
Kubernetesz+Kubernetes container orchestration platform�
kubernetes)� container�allFz'collect all namespace output separately)�default�desc�describez(collect describe output of all resources�podlogsz$capture stdout/stderr logs from pods�podlogs-filter� z1only collect logs from pods matching this pattern)r
�val_typer �kubectlc �p � t | j D �cg c] }| j |� �� c}� S c c}w )N)�any�files�path_exists)�self�fs �?/usr/lib/python3/dist-packages/sos/report/plugins/kubernetes.py�check_is_masterzKubernetes.check_is_master% s* � �����<�A�D�$�$�Q�'�<�=�=��<s �3c
� � | j d� | j d� | j g d�� g d�}|D ] }| j |�� � | j � sy d}dD ]" |