Skip to content

Commit

Permalink
updating err
Browse files Browse the repository at this point in the history
Signed-off-by: Prateeknandle <prateeknandle@gmail.com>
  • Loading branch information
Prateeknandle committed Feb 14, 2023
1 parent 1677e61 commit 8e8cb02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discover/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 explorer service/knoxautopolicy --address 0.0.0.0 --address :: 9089:9089\033[0m\n- Configure grpc server information using\n\t\033[1mkarmor log --grpc <info>\033[0m")
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 <namespace> service/knoxautopolicy --address 0.0.0.0 --address :: 9089:9089\033[0m\n- Configure grpc server information using\n\t\033[1mkarmor log --grpc <info>\033[0m")
}

if o.Policy == "CiliumNetworkPolicy" {
Expand Down

0 comments on commit 8e8cb02

Please sign in to comment.