Commit Graph
139 Commits
Author SHA1 Message Date
zzxwill bd1fd83c20 address comments from @Wonderflow 2020-08-04 21:16:52 +08:00
zzxwill 01ade795e3 implement rudr status
Implement `rudr status <APPLICATION-NAME>` to show the status
of the application, its workloads and traits
2020-08-04 21:16:52 +08:00
Sun JianboandGitHub 648ad3321b Merge pull request #83 from zzxwill/ls-issue
Fix `rudr list` issue
2020-08-04 10:56:47 +08:00
zzxwill a81b383be0 address comments from @Wonderflow 2020-08-03 21:21:14 +08:00
erdun 2989f738c9 workload label 2020-08-03 20:58:36 +08:00
zzxwill d1b8fc214c Fix rudr list issue
Use the new way to retrieve namespace
2020-08-03 20:56:58 +08:00
天元 1b4e79eea6 refactor trait from rudr bind to rudr <trait-type> appname 2020-08-01 21:46:19 +08:00
天元 728ebb33b2 refactor rudr run to rudr <workload>:run 2020-08-01 13:14:06 +08:00
天元 dcf311cd4a clean up docs and test 2020-07-31 12:18:17 +08:00
天元 89601bee18 support rudr env 2020-07-31 10:34:17 +08:00
zzxwill 318f9e59ae Correct rebase issue and add e2e test 2020-07-30 23:31:01 +08:00
zzxwill e91dceac4b Make modification for latest xxxdefinition.spec.extension 2020-07-29 22:40:39 +08:00
zzxwill b4065b1174 Move template to definition Extension field
As we plan to deprecate template, move template
to workloaddefinition and traitdefinition respectively.
2020-07-29 22:33:40 +08:00
天元 bc52589ab6 init rudr workloads 2020-07-29 18:56:13 +08:00
天元 2fb8eb6975 fix rudr traits 2020-07-29 17:57:55 +08:00
天元 a0646a2b53 rename rudr apps to rudr ls 2020-07-29 16:50:02 +08:00
天元 66acb74f3b fix CI 2020-07-29 16:29:38 +08:00
Herman ZhuandGitHub a9f9bc055c feat(init): Add rudr init (#43)
* feat(init): Add `rudr init`

Support `rudr init` which will check/install oam-k8s-runtime into
cluster

Fixes #12

Signed-off-by: zhuhuijun <zhuhuijunzhj@gmail.com>

* feat(init): Add `rudr init`

Support `rudr init` which will check/install oam-k8s-runtime into cluster

Fixes #12

Signed-off-by: zhuhuijun <zhuhuijunzhj@gmail.com>

* feat(init): add version flag

Add version flag

Fixes #12

Signed-off-by: zhuhuijun <zhuhuijunzhj@gmail.com>

* feat(init): create native resource WorkloadDefinition

Create native resource WorkloadDefinition

Fixes: #12

Signed-off-by: zhuhuijun <zhuhuijunzhj@gmail.com>
2020-07-29 15:54:21 +08:00
Sun JianboandGitHub 9d64307755 Merge pull request #50 from zzxwill/unbind
Refactor `rudr apps`
2020-07-27 10:44:23 +08:00
guoxudongandGitHub 51f9ff4c61 add delete cmd (#48)
* add delete cmd

Signed-off-by: guoxudong <sunnydog0826@gmail.com>
2020-07-27 10:43:47 +08:00
zzxwill a6e730d7bd Refactor rudr apps
Move some basic functions to cmd.util.helpers.go and
decompose some of them for further calling, like
`rudr unbind`
2020-07-24 21:47:11 +08:00
zzxwill e4500771bc address advices from wonderflow 2020-07-24 10:46:11 +08:00
zzxwill 66d0bdb61b Implement list applications
List appliations and support --application/-a
to filter applicatin lists
2020-07-23 21:40:30 +08:00
erdun 76ad168ccf fix run bug 2020-07-23 13:08:09 +08:00
erdun e625745604 add UT 2020-07-21 11:13:47 +08:00
erdun 4875cd2aab move init code to cobra 2020-07-20 00:17:39 +08:00
zzxwill c9cd323612 Refine README and delete commented lines 2020-07-17 13:40:50 +08:00
zzxwill bdb8af9492 Fix issue and refine README
1) Fix the issue when there are more than one traitdefinitions
2) Refine README
3) lowercase workload metadata.name so it could be used as dns
2020-07-17 13:40:50 +08:00
zzxwill be84103ce7 format go files 2020-07-17 13:40:50 +08:00
zzxwill 20fe71ccb3 Implement rudr bind
Implement trait binding based on `rudr run`
2020-07-17 13:40:50 +08:00
zzxwill 5bced27bd0 Fix run issue
Remove hard-coded type sting for image port convertion,
and make several parameter as optical. Fix issue #17
2020-07-16 14:11:13 +08:00
zzxwill e58c4f6c72 check whether lastCommandParam is set 2020-07-14 17:52:11 +08:00
zzxwill 124a215a0a Make `lastCommandParam as a subcommand and enhance corner cases
Fix issue #4
- Make `lastCommandParam` like `image` as a subcommand instead of a flag.
- Validate whether `lastCommandParam` is set.
- check whether all flags are set.
2020-07-14 17:52:11 +08:00
zzxwill 4ca494c69c Support executing ContainerizedWorkload
Add metadata.name for workload and add deafult name
for spec.containers[].ports[].port.name
2020-07-14 14:37:38 +08:00
Sun JianboandGitHub f8e8f685a7 Merge pull request #8 from zzxwill/list-traits
List traits
2020-07-14 13:56:25 +08:00
zzxwill fff36b6a5a List traits
Support `rudr traits` and `rudr traits --workload NAME`
2020-07-12 23:16:47 +08:00
zzxwill ece0e76b65 No need to check the lenght of args
If the line is being executed, that means the lenght
of the args is zero.
2020-07-09 23:15:21 +08:00
zzxwill a36e5e9051 Provide available workloads in help message
Print all available workloads, like containerized, deployments.apps,
statefulsets.apps to help user to choose one of them.
2020-07-09 16:32:28 +08:00
天元 4f13b58663 init rudrx 2020-07-07 00:12:13 +08:00