diff --git a/discover/discover.go b/discover/discover.go index 90601d15..341aa431 100644 --- a/discover/discover.go +++ b/discover/discover.go @@ -80,7 +80,7 @@ func ConvertPolicy(c *k8s.Client, o Options) ([]string, error) { var response *wpb.WorkerResponse response, err = client.Convert(context.Background(), data) if err != nil { - return nil, errors.New("could not connect to the server. Possible troubleshooting:\n- Check if discovery engine is running\n- Create a portforward to discovery engine service using\n\t\033[1mkubectl port-forward -n service/knoxautopolicy --address 0.0.0.0 --address :: 9089:9089\033[0m\n- Configure grpc server information using\n\t\033[1mkarmor log --grpc \033[0m") + return nil, errors.New("could not connect to the server. Possible troubleshooting:\n- Check if discovery engine is running\n- kubectl get po -n accuknox-agents") } if o.Policy == "CiliumNetworkPolicy" {