Ian Howell
5999d17323
Add argo as a subcommand
...
This is a drop-in of the argo cmd package, with some slight tweaks to
adhere to airshipctl's models and linter. It still needs to be combed
over and modified to meet airshipctl's needs, as well as requiring unit
tests
2019-06-13 08:58:19 -05:00
Ian Howell
3c02f845d0
Remove argo
2019-06-13 08:12:45 -05:00
Ian Howell
95a504ee4e
Update golangci-lint with fixed tag
2019-06-10 08:29:00 -05:00
Ian Howell
236274eef1
Add a convenience NewAirshipCTLCommand function
...
This adds the NewAirshipCTLCommand, a function which returns the root
airshipctl command with all of the default plugins preloaded
2019-06-07 14:06:37 -05:00
Ian Howell
eb79dff0c9
Add detailed documentation on plugins
2019-06-07 11:35:51 -05:00
Ian Howell
f33c634141
Revert "Test with vendor directory"
...
This reverts commit 0a0b691efe4f6ca398e5f8d8f95605ade0b6686b.
2019-06-07 08:48:36 -05:00
Ian Howell
0a0b691efe
Test with vendor directory
2019-06-07 08:34:06 -05:00
Ian Howell
6aa4d897fd
Update readme
2019-06-06 16:26:38 -05:00
Ian Howell
56a4824524
Fix unit tests
2019-06-06 15:27:57 -05:00
Ian Howell
549e5cb955
Fix a fatal bug in GetClientSet
2019-06-06 14:29:56 -05:00
Ian Howell
68cfcf82ae
Fix log tests
2019-06-06 11:40:40 -05:00
Ian Howell
cbd1e048c9
Move the client objects out of the settings objects
...
* This also modifies the way that logging is handled
2019-06-06 10:57:33 -05:00
Ian Howell
247a439abc
Remove old .gitignores
2019-06-06 09:30:51 -05:00
Ian Howell
93137aa418
Update README with build status
2019-06-06 09:29:07 -05:00
Ian Howell
3a51a39226
Add .travis.yml
2019-06-06 09:21:20 -05:00
Ian Howell
50f29ca75d
Remove coverage tests
2019-06-06 08:59:59 -05:00
Ian Howell
ed6cd68e55
Spelling mistake
2019-06-05 10:04:43 -05:00
Ian Howell
e1edc45362
Remove redundant code
2019-06-03 08:41:27 -05:00
Ian Howell
44f208ccad
Add unit test for workflow
2019-06-03 08:39:50 -05:00
Ian Howell
a8e649eb67
Move workflow listing to its own package
...
* adds the AGE, DURATION, and PRIORITY columns
* adds the --all-namespaces flag
2019-05-31 15:57:07 -05:00
Ian Howell
3b4a9fb82c
Move workflow init to the workflow package
2019-05-31 10:12:24 -05:00
Ian Howell
d7a0f93cd1
Change bootstrap's io.Writer to match other commands
2019-05-30 16:13:33 -05:00
Ian Howell
cb0d15bdb8
Fix coverage to handle all packages sans generated code
2019-05-30 15:34:10 -05:00
Ian Howell
5ed74c4944
Move workflow init logic to pkg/workflow/initialize
2019-05-30 11:34:34 -05:00
Ian Howell
e4b45002c9
Enable the linter, and fix uncovered linting issues
...
This uses the current master commit of golangci-lint. We will want to
update to use a tagged version as soon as the golangci-lint team pushes
a new tag
2019-05-30 10:02:54 -05:00
Ian Howell
42ace4fd46
Fix an issue causing command line args to be parsed too late
2019-05-30 09:54:26 -05:00
Ian Howell
3b31b47158
Convert workflow_init_test to a proper table test
2019-05-29 15:34:38 -05:00
Ian Howell
3dae793f70
Remove unnecessary arg parsing from tests
2019-05-29 15:15:01 -05:00
Ian Howell
4c6b8486c9
Move all tests to proper table-tests
...
This commit also changes the way that output is handled while testing
2019-05-29 15:11:55 -05:00
Ian Howell
ca616ca3ee
Add stub for bootstrap
2019-05-29 12:04:38 -05:00
Ian Howell
19461dc1bf
Add the AddDefaultCommands function
2019-05-29 08:48:05 -05:00
Ian Howell
bbf25cd4a3
Add test for wf init already initialized
2019-05-28 16:51:16 -05:00
Ian Howell
615fe6c15f
Add the first test for workflow init
2019-05-28 16:47:51 -05:00
Ian Howell
8d50c59033
Pass root settings to workflow init
2019-05-28 15:49:00 -05:00
Ian Howell
483441fdf3
Add the CRD Client to workflow settings
2019-05-28 15:48:28 -05:00
Ian Howell
d68cfdfe6b
Force coverage to check all packages
2019-05-28 15:38:24 -05:00
Ian Howell
fc9f7cbfc3
Fix project structure to work with client-gen
2019-05-28 15:05:52 -05:00
Ian Howell
19f28e278b
Cleanup how settings are passed
2019-05-24 15:38:59 -05:00
Ian Howell
55a2dcb84e
Add a more complex test to workflow list
2019-05-24 14:35:34 -05:00
Ian Howell
75b753b2c3
Remove the dependency on Argo
...
Much of the code here has simply been copied over from the Argo
repository and then modified to work with the desired version of
client-go. We'll need to look into using client-gen in order to maintain
this
2019-05-24 14:34:33 -05:00
Ian Howell
6aa9b3809b
Fix old unit tests
...
These are going to need to be revisited.
2019-05-24 08:47:49 -05:00
Ian Howell
d2aabc5678
Use custom tabwriter in version
2019-05-24 08:15:30 -05:00
Ian Howell
87fa804dab
Add a plugin tutorial to the README
2019-05-23 15:59:58 -05:00
Ian Howell
be2a61047c
Move tabwriter to package util
...
This offloads the "magic numbers" that are used when creating a
tabwriter
2019-05-23 15:25:04 -05:00
Ian Howell
33fecc360b
Overhaul for plugin system
2019-05-23 14:34:28 -05:00
Ian Howell
49ddd449a7
Fix the update-golden target to update all subpackages of cmd
2019-05-21 14:14:02 -05:00
Ian Howell
c680f20dd8
Update unit tests to use fake client
2019-05-21 13:20:26 -05:00
Ian Howell
039224b6fe
Move kubernetes configuration into settings
...
This should make it easier to use the fake client for testing
2019-05-21 12:43:03 -05:00
Ian Howell
3ea070bcd5
Refrain from linting until golangci-lint issues are fixed
...
See the following issues:
https://github.com/golangci/golangci-lint/issues/538
https://github.com/golangci/golangci-lint/issues/539
2019-05-21 12:31:16 -05:00
Ian Howell
2624fda7f9
Remove old dependency on go-bindata
2019-05-21 12:02:39 -05:00