+
    i  c                   s>    ^ RI t ^ RIt^ RIHtHt  ! R R]]4      tR# )i    N)PluginUbuntuPluginc                   sD   a  ] tR t^t o RtRtRtRtR	tRt	R t
R tRtV tR# )
Microk8sa  The Microk8s plugin collects the current status of the microk8s
snap on a Ubuntu machine.

It will collect logs from journald related to the snap.microk8s
units as well as run microk8s commands to retrieve the configuration,
status, version and loaded plugins.
zThe lightweight Kubernetesmicrok8sc                s   V P                  R R7       . R%OpV P                  RR.4       T P                  V Uu. uF  q P                   RV 2NK  	  up4       RpV R2pV P                  RV R24       RpV P	                  VR	R
7       V P                  V R2V R2V R2.4       RpV R2pV R2pV R2p	V RV RV RV	 R2p
RRRR/RRRR.RR/RRRR/.p \        V	RRR7      ;_uu_ 4       pVP                  4       p\        P                  ! RV4      pV F!  pVP                  RRV 2RR V 2RR./4       K#  	  R!R!R!4       T Fx  pT
pTP                  R. 4      pT F
  pT RT 2pK  	  \        P                  ! TP                  R4      4      pTP                  R4      pT P                  T RT 2R$T 2R
7       Kz  	  R!# u upi   + '       g   i     L; i  \         d"   pT P                  R"T	 R#T 24        R!p?LR!p?ii ; i)&zsnap.microk8s.*)Zunitsz!/var/snap/microk8s/current/args/*4/var/snap/microk8s/current/credentials/client.configZ z1/var/snap/microk8s/current/var/kubernetes/backendz/cluster.crtzopenssl x509 -in z -noout -datesZls_microk8s_dqlite_dir)Zsuggest_filenamez
/info.yamlz/cluster.yamlz/failure-domainz!/snap/microk8s/current/bin/dqlitez/cluster.keyz -c z -k z -s file://z k8squeryz.clusterZsuggested_file_suffixoptsz-f jsonz.cluster_-f_jsonz.leaderZrzutf-8)Zencodingz#Address:\s*(\d+\.\d+\.\d+\.\d+:\d+)z
.describe z
.describe_NzFailed to parse z: Zmicrok8s_sql_)zaddons repo listZconfigzctr plugins lszctr plugins ls -dZstatusZversion)Zadd_journalZadd_copy_specZadd_cmd_outputmicrok8s_cmdZadd_dir_listingZopenZreadreZfindallZappendZ	ExceptionZ	add_alertZgetjsonZdumps)selfZmicrok8s_subcmdsZsubcmdZcrt_dirZ
dqlite_crtZdb_pathZ
dqlite_binZcertZkeyZserversZ
dqlite_cmdZqueriesZcluster_definitionZclusterZnodesZnodeZeZquery_entryZsql_cmdr   Zoptr   Zfile_suffixs   &                      @/usr/lib/python3.14/site-packages/sos/report/plugins/microk8s.pysetupZMicrok8s.setup"   s   01
 	/B
 	
 	:J
:J  !6(+:J
 	 Fy-

|>:	
 F 	5 	 	

 	iz"i}%i'
 	 9
,'	&I]+"|4vT#k'$O
 '
 '); '
 	>gsW559K,113

:G "DNN:dV!4/:dV1D$  " 6  #K G??62.D$IQse,  JJ{w78E%//*ABK)1UG$#0!>    #A
` 65  	>NN-gYb<==	>s<   GG  1AG G  G	G  G   H+HHc                s    R pV P                  V P                  VR4       . ROpRRP                  V4       R2pV P                  RVR4       R# )	z((certificate-authority-data:|token:)\s.*z\1 "**********"z(^\s*(Z|z)\s*:\s*)(.*)r   z\1*********N)zcertificate-authority-datazclient-certificate-datazclient-key-dataZtoken)Zdo_cmd_output_subr   ZjoinZdo_path_regex_sub)r
   ZrsubZprotect_keysZ	key_regexs   &   r   postprocZMicrok8s.postproc   sW    :t00$8JK
 chh|45]C	B~	
     N)Z	container)r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__Z
short_descZplugin_nameZprofilesZpackagesr   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s6      .JKHHL[z
 
r   r   )r	   r   Zsos.report.pluginsr    r   r   r   r   r   <module>r      s      	 3~
v| ~
r   