Skip to content

Proposal: Support invoke cmd on kubernetes mode #848

Description

@imneov

Describe the proposal

We should add the invoke cmd on kubernetes mode.

As an example we can add kubernetes mode to dapr invoke use -k flag :

./dapr invoke --app-id core --method "v1/plugins/dm/entities?id=device123&owner=admin&type=device&source=dm "--verb PUT -d '{"status": "start","temp": 123}' -k
{"id":"device123","configs":{},"properties":{"status":"start","temp":123}}
✅  App invoked successfully

Release Note

RELEASE NOTE:

  • support got pod from kubernetes
  • call pod use kubernetes RESTClient with proxy mode
  • support -k flag to invoke cmd

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions