관리-도구
편집 파일: kubernetes.pyc
� u��ec @ s� d d l m Z m Z m Z d d l m Z d d l m Z d d l Z d e f d � � YZ d e e f d � � YZ d e e f d � � YZ d S( i����( t Plugint RedHatPlugint UbuntuPlugin( t translate( t pathNt Kubernetesc B sq e Z d Z d Z d Z d d d e f d d d e f d d d e f d g Z d Z d � Z d � Z d � Z RS( s Kubernetes plugin t kubernetest containert alls- also collect all namespaces output separatelyt slowt describes* capture descriptions of all kube resourcest fastt podlogss capture logs for podss podlogs-filters/ only capture logs for pods matching this stringt t kubectlc C s) t g | j D] } t j | � ^ q � S( N( t anyt filesR t exists( t selft f( ( s: /usr/lib/python2.7/site-packages/sos/plugins/kubernetes.pyt check_is_master% s c C s� | j d � | j d � | j d d d d g � d d d d d g } x | D] } | j d | � qO W| j � sy d Sd } x. d d g D] } | j d | j | f � q� W| j d | j � } | d j � d } g | D]. } | r� t | j � � r� | j � d ^ q� } d d d d d d d d d d g } d d d! g } | j g | D] } d"