mirror of
https://github.com/vee1e/kubearmor-client.git
synced 2026-09-01 18:28:04 +00:00
ignore err if kubearmor daemonset not found
using `karmor sysdump` in the context of dev env causes problem since kubearmor is not running in daemonset mode. Signed-off-by: Rahul Jadhav <nyrahul@gmail.com>
This commit is contained in:
parent
4e82380e96
commit
967f195d44
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ func Collect(c *k8s.Client, o Options) error {
|
|||
errs.Go(func() error {
|
||||
v, err := c.K8sClientset.AppsV1().DaemonSets("kube-system").Get(context.Background(), "kubearmor", metav1.GetOptions{})
|
||||
if err != nil {
|
||||
return err
|
||||
fmt.Printf("kubearmor daemonset not found. (possible if kubearmor is running in process mode)")
|
||||
return nil
|
||||
}
|
||||
if err := writeYaml(path.Join(d, "kubearmor-daemonset.yaml"), v); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue