Aptomi / k8s-app-engine

Application delivery engine for k8s
Apache License 2.0
163 stars 19 forks source link

Client must print understandable errors #202

Closed romangithub1024 closed 6 years ago

romangithub1024 commented 6 years ago
[aptomi] aptomictl policy delete -u Sam -f examples/03-twitter-analytics/policy/                                         10:42:01  ☁  master ☂ ⚡ ✭
FATA[0000] Error while deleting policy: received object kind error doesn't match expected policy-update-result
romangithub1024 commented 6 years ago

This is a pretty serious UX issue right now:

[aptomi] aptomictl policy apply -f examples/twitter-analytics/policy                                                           14:37:45  ☁  master ☂ ⚡
DEBU[0000] Config:
debug: true
output: text
api:
  schema: http
  host: 127.0.0.1
  port: 27866
  apiprefix: api/v1
auth:
  username: admin
http:
  timeout: 15s

INFO[0000] Applying policy from:
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/Frank/analytics_pipeline.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/Frank/hdfs.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/Frank/kafka.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/Frank/spark.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/Frank/zookeeper.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/John/twitter_stats.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/Sam/acl.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/Sam/clusters.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/Sam/rules.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/alice-stage-ts.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/bob-stage-ts.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/carol-stage-ts.yaml
INFO[0000]   [*] /Users/ralekseenkov/go/src/github.com/Aptomi/aptomi/examples/twitter-analytics/policy/john-prod-ts.yaml
FATA[0000] Error while applying policy: received object kind error doesn't match expected policy-update-result
Frostman commented 6 years ago

Same thing happens when you trying to do operation that requires user passed but it isn't