diff options
author | Felipe Reyes <felipe.reyes@canonical.com> | 2021-01-27 14:16:43 -0300 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-01-29 11:22:26 -0500 |
commit | 8b226bf91d808bca6295eeeab8773c1f70a410a3 (patch) | |
tree | 6d8d61046716c3f70f0b04537721e42285af33f6 | |
parent | eab7fbf9366ce61cde635b4c44c176ef8abcb158 (diff) | |
download | sos-8b226bf91d808bca6295eeeab8773c1f70a410a3.tar.gz |
[kubernetes] Add cdk.master.auth-webhook to journal collection
In Ubuntu CDK when the deployed with Keystone authentication the
service cdk.master.auth-webhook is deployed to handle that integration
this change includes this unit to collect its journal.
Resolves: #2387
Signed-off-by: Felipe Reyes <felipe.reyes@canonical.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/kubernetes.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sos/report/plugins/kubernetes.py b/sos/report/plugins/kubernetes.py index 31e48721..0ad6add5 100644 --- a/sos/report/plugins/kubernetes.py +++ b/sos/report/plugins/kubernetes.py @@ -211,4 +211,16 @@ class UbuntuKubernetes(Kubernetes, UbuntuPlugin): elif path.exists('/etc/kubernetes/admin.conf'): kube_cmd = "kubectl --kubeconfig=/etc/kubernetes/admin.conf" + services = ( + # CDK + 'cdk.master.auth-webhook', + ) + + def setup(self): + for svc in self.services: + self.add_journal(units=svc) + + super(UbuntuKubernetes, self).setup() + + # vim: et ts=5 sw=4 |