BYPASS SHELL BY ./RAZORGANZ
Server: nginx/1.20.1
System: Linux iZdzfnv9mwfppeZ 5.10.134-19.2.al8.x86_64 #1 SMP Wed Oct 29 22:47:09 CST 2025 x86_64
User: apache (48)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //usr/local/sysak/.sysak_components/tools/plugin_podDetect.pyo
�
�]ic@sHddlTddlZedd�e�defd��Y��ZdS(i����(t*Ntnamet	podDetecttPodDetectPlugincBs eZdZd�Zd�ZRS(s9PodDetect 插件,用于检测指定 Pod 的相关信息c	Cs�|jjdd�}|jjdt�}|s4dStj|�}tj|�}tj�rddnd}tj�}t	�}|j
d|�|j
d|jdd��|j
d|�|j
d	|�|j
d
|�|j
d|�|S(Ntpod_namett
enable_podtv1tv2t	namespacet	Namespacetpod_infot
containerstcgroup_versiontcgroup_root(tparamstgettFalsetNonet	mem_utilstget_pod_infotget_containers_of_podtis_cgroup_v1tmemory_cgroup_roottPluginCollectInfotstore(	tselftcontextRRRRR
Rtcollect_info((s</usr/local/sysak/.sysak_components/tools/plugin_podDetect.pytcollects 	cCs$t�}d|_|jd�jd�|jd<|jd�jd�|jd<|jd�jd�}g}x'|D]}|j|jdd��quWg}|jd|jdg�|jd	|jdg�|jd
|g�tjddg|ddt	�}|d|_
||jd<|S(
s[
        输出pod信息到json中,供中心端分析使用,不输出到终端
        s
Pod 信息RRR	Rt
ContainerNameRs	Pod名称s命名空间s容器列表tshows
(tPluginAnalysisInfottitletget_collect_infotloadtresulttappendRRtprint_tableRtrender_text(RRtanalysistcontainers_fullRt	containertdatatres_str((s</usr/local/sysak/.sysak_components/tools/plugin_podDetect.pyR(!s$		
!

(t__name__t
__module__t__doc__RR((((s</usr/local/sysak/.sysak_components/tools/plugin_podDetect.pyRs	(t
plugin_systemRtplugintplugin_pod_supportt
PluginBaseR(((s</usr/local/sysak/.sysak_components/tools/plugin_podDetect.pyt<module>s