{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/purser/issues/15","repository_url":"https://api.github.com/repos/vmware/purser","labels_url":"https://api.github.com/repos/vmware/purser/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/vmware/purser/issues/15/comments","events_url":"https://api.github.com/repos/vmware/purser/issues/15/events","html_url":"https://github.com/vmware/purser/issues/15","id":357525860,"node_id":"MDU6SXNzdWUzNTc1MjU4NjA=","number":15,"title":"Add options to plugin CLI.","user":{"login":"hemani19","id":42761785,"node_id":"MDQ6VXNlcjQyNzYxNzg1","avatar_url":"https://avatars0.githubusercontent.com/u/42761785?v=4","gravatar_id":"","url":"https://api.github.com/users/hemani19","html_url":"https://github.com/hemani19","followers_url":"https://api.github.com/users/hemani19/followers","following_url":"https://api.github.com/users/hemani19/following{/other_user}","gists_url":"https://api.github.com/users/hemani19/gists{/gist_id}","starred_url":"https://api.github.com/users/hemani19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemani19/subscriptions","organizations_url":"https://api.github.com/users/hemani19/orgs","repos_url":"https://api.github.com/users/hemani19/repos","events_url":"https://api.github.com/users/hemani19/events{/privacy}","received_events_url":"https://api.github.com/users/hemani19/received_events","type":"User","site_admin":false},"labels":[{"id":1053011721,"node_id":"MDU6TGFiZWwxMDUzMDExNzIx","url":"https://api.github.com/repos/vmware/purser/labels/Plugin","name":"Plugin","color":"b7ffaa","default":false},{"id":1030879619,"node_id":"MDU6TGFiZWwxMDMwODc5NjE5","url":"https://api.github.com/repos/vmware/purser/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":1030879623,"node_id":"MDU6TGFiZWwxMDMwODc5NjIz","url":"https://api.github.com/repos/vmware/purser/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true},{"id":1082379864,"node_id":"MDU6TGFiZWwxMDgyMzc5ODY0","url":"https://api.github.com/repos/vmware/purser/labels/hacktoberfest","name":"hacktoberfest","color":"78f259","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-06T07:18:46Z","updated_at":"2018-10-12T04:35:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The plugin CLI should have support for options like `-h/--help`, `-v/--version`. \r\n\r\nThe current output is as follows which can be made more verbose with improved usage.\r\n```bash\r\nkubectl plugin purser -h\r\nPurser gives cost insights of kubernetes deployments.\r\n\r\nUsage:\r\n  kubectl plugin purser [flags] [options]\r\n\r\nUse \"kubectl options\" for a list of global command-line options (applies to all commands).   \r\n```\r\n\r\nFor example something like this: \r\n\r\n```shell\r\nkubectl plugin purser -h\r\nPurser gives cost insights of kubernetes deployments.\r\n\r\nUsage:\r\n  kubectl plugin purser [options] <command> <args>\r\n\r\nThe supported commands are: \r\n   get  Get resource information.\r\n   set  Set resource information.\r\n   \r\noptions: \r\n   -h, --help        Show more details about the command.\r\n   --kubeconfig      Absolute path for the kube config file.\r\n\r\nExample: \r\n   # List cluster insight summary\r\n   kubectl plugin purser --kubeconfig=~/.kube/config get summary\r\n\r\nUse \"kubectl options\" for a list of global command-line options (applies to all commands).   \r\n```"},"comment":{"url":"https://api.github.com/repos/vmware/purser/issues/comments/429201574","html_url":"https://github.com/vmware/purser/issues/15#issuecomment-429201574","issue_url":"https://api.github.com/repos/vmware/purser/issues/15","id":429201574,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTIwMTU3NA==","user":{"login":"kreddyj","id":42461220,"node_id":"MDQ6VXNlcjQyNDYxMjIw","avatar_url":"https://avatars2.githubusercontent.com/u/42461220?v=4","gravatar_id":"","url":"https://api.github.com/users/kreddyj","html_url":"https://github.com/kreddyj","followers_url":"https://api.github.com/users/kreddyj/followers","following_url":"https://api.github.com/users/kreddyj/following{/other_user}","gists_url":"https://api.github.com/users/kreddyj/gists{/gist_id}","starred_url":"https://api.github.com/users/kreddyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kreddyj/subscriptions","organizations_url":"https://api.github.com/users/kreddyj/orgs","repos_url":"https://api.github.com/users/kreddyj/repos","events_url":"https://api.github.com/users/kreddyj/events{/privacy}","received_events_url":"https://api.github.com/users/kreddyj/received_events","type":"User","site_admin":false},"created_at":"2018-10-12T04:35:58Z","updated_at":"2018-10-12T04:35:58Z","author_association":"CONTRIBUTOR","body":"@crazcalm  For running the plugin, you need a kubernetes cluster. You can install one locally using [minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/). Next you need to copy the [plugin.yaml](https://raw.githubusercontent.com/vmware/purser/master/plugin.yaml) into one of the paths specified under \r\nsection [Installing kubectl plugins](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/).\r\nThen run `go build -o $GOPATH/bin/purser_plugin github.com/vmware/purser/cmd/plugin/purser_plugin` to install the binary. After that make sure that minikube is running (`minikube start`) and you can run the plugin using `kubectl plugin purser [flags and option]`.\r\n\r\nLet us know if you get stuck."}}
{"actor":{"display_login":"kreddyj"}}