Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

implement oamctl functions described in Application Configuration #2

Open
wonderflow opened this issue Oct 29, 2019 · 1 comment
Open

Comments

@wonderflow
Copy link
Member

wonderflow commented Oct 29, 2019

https://github.com/oam-dev/spec/blob/master/6.application_configuration.md#an-example-workflow

Install

$ oamctl install -c ./config.yaml ./frontend.yaml ./backend.yaml -p "message=overridden message!"

Discovery

$ oamctl trait-list
╔════════════╤═════════╤═════════════════════════════════════════════╗
║ NAME       │ VERSION │ PRIMITIVES                                  ║
╟────────────┼─────────┼─────────────────────────────────────────────╢
║ autoscaler │ 0.1.0   │ Server, Worker                              ║
╟────────────┼─────────┼─────────────────────────────────────────────╢
║ ingress    │ 0.1.0   │ SingletonServer, Server                     ║
╚════════════╧═════════╧═════════════════════════════════════════════╝
@wonderflow
Copy link
Member Author

wonderflow commented Nov 18, 2019

I've finished oamctl trait-list, I'm wondering do we really need a command like oamctl create -c ./config.yaml ./frontend.yaml ./backend.yaml -p "message=overridden message!"

Think further, implement oamctl create means we'll need to invoke API from OAM runtime. Now we have rudr which use K8s APIServer, what if another OAM runtime not using K8s APIServer? We may need to adapt lots APIServer unless we give a unified APIServer.

So I suggest use kubectl in the current time untill we have a different APIServer. In that time, we should consider should we make a unified APIServer including authorization, rest api for CRUD, etc..

@technosophos @suhuruli

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant