ReadLink parsers for Openshift certificate symbolic file links
This module contains the following parsers:
ReadLinkEKubeletClientCurrent - command /usr/bin/readlink -e /etc/origin/node/certificates/kubelet-client-current.pem
ReadLinkEKubeletServerCurrent - command /usr/bin/readlink -e /etc/origin/node/certificates/kubelet-server-current.pem
- class insights.parsers.readlink_openshift_certs.ReadLinkEKubeletClientCurrent(context, extra_bad_lines=None)[source]
Bases:
CommandParser
Class for command: /usr/bin/readlink -e /etc/origin/node/certificates/kubelet-client-current.pem
Sample content from command is:
/etc/origin/node/certificates/kubelet-client-2019-10-18-23-17-35.pem
Examples
>>> client.path '/etc/origin/node/certificates/kubelet-client-2019-10-18-23-17-35.pem'
- Raises:
SkipComponent -- When input content is empty
- property path
Returns real file path of /etc/origin/node/certificates/kubelet-client-current.pem
- class insights.parsers.readlink_openshift_certs.ReadLinkEKubeletServerCurrent(context, extra_bad_lines=None)[source]
Bases:
CommandParser
Class for command: /usr/bin/readlink -e /etc/origin/node/certificates/kubelet-server-current.pem
Sample content from command is:
/etc/origin/node/certificates/kubelet-server-2018-10-18-23-29-14.pem
Examples
>>> server.path '/etc/origin/node/certificates/kubelet-server-2018-10-18-23-29-14.pem'
- Raises:
SkipComponent -- When input content is empty
- property path
Returns real file path of /etc/origin/node/certificates/kubelet-server-current.pem