Commit Graph

35 Commits

Author SHA1 Message Date
6aa23a76a1 fix: more precise filtering
Closes coop-cloud/organising#305.
2022-03-27 19:30:36 +00:00
c66695d55e fix: return err not logrus + new lines 2022-03-12 17:02:04 +01:00
b295958c17 fix: handle all container registries
See coop-cloud/organising#258

This fixes also how we read the digest of the image. I think it was
wrong before. Some registries restrict reading this info and we now just
default to "unknown" for that case.

This also appears to bring a wave of new dependencies due to the generic
handling logic of containers/... package. The abra binary is now 1mb
larger.

The catalogue generation is now slower unfortunately. But it is more
robust.

The generic logic looks in ~/.docker/config.json for log in details, so
you don't have to pass those in manually on the CLI anymore. We just
read those defaults. You can "docker login" to get credentials setup in
that file. Since most folks won't generate the catalogue, this seems
fine for now.
2022-02-21 08:46:30 +00:00
bfeda40e34 fix: catch more ssh failure modes with help 2022-02-03 13:43:11 +01:00
6a98024a2b refactor: drop old/upstream TODOs 2021-12-28 01:31:50 +01:00
9c281d8608 fix: flags for logging in 2021-12-27 03:27:05 +01:00
b0834925a3 fix: log in correctly
See coop-cloud/abra#139.
2021-12-26 03:44:29 +01:00
3b5354b2a5 refactor: less quotes 2021-12-25 02:03:09 +01:00
48e16c414c fix: use correct error format 2021-12-12 01:56:43 +01:00
f3e55e5023 fix: support registry login details 2021-12-12 01:52:28 +01:00
cb32e88cde fix: support retryable http clients
Closes coop-cloud/organising#257.
2021-11-22 18:28:18 +01:00
cd361237e7 Revert "Revert "test: remove broken tests for client""
This reverts commit 59031595ea.

Argh, reverted this by accident, heres another one!
2021-11-09 18:25:28 +01:00
59031595ea Revert "test: remove broken tests for client"
This reverts commit 17a5f1529a.
2021-11-09 17:58:31 +01:00
17a5f1529a test: remove broken tests for client 2021-11-09 13:03:33 +01:00
edb427a7ae feat: implement host key checking
Closes coop-cloud/organising#237.
2021-11-08 15:37:23 +01:00
e37b49201f fix: use IdleConnTimeout/ConnectTimeout
This is an attempt to set sensible timeouts on abra connections. This
might not be the last word on this but it seems that SSH connections now
bail out correctly and other kinds of commands don't explode (e.g.
logs).

Closes coop-cloud/organising#222.
Closes coop-cloud/organising#218.
2021-11-02 15:49:11 +01:00
fc2deda1f6 Revert "fix: drop copy/pasta, keep timeouts"
This reverts commit a170e26e27.

Attempting to add more nuanced timeout logic.
2021-11-02 15:18:17 +01:00
963f8dcc73 fix: recover tests from overzealous cleanup 2021-10-21 19:40:26 +02:00
dc04cf5ff7 chore: migrate all upstream code to own dir 2021-10-21 19:35:13 +02:00
80921c9f55 fix: remove cruft + readme pass + document forks 2021-10-21 18:35:24 +02:00
a170e26e27 fix: drop copy/pasta, keep timeouts 2021-10-21 15:42:50 +02:00
7a5ad65178 fix: load timeout before other opts 2021-10-21 15:06:03 +02:00
74bcb99c70 fix: use this weird default
Closes coop-cloud/organising#207.
2021-10-19 22:43:43 +02:00
d1e42752e2 fix: set connection timeouts + clean up bad contexts
Closes coop-cloud/organising#205.
2021-10-18 10:48:43 +02:00
6d42e72f16 fix: allow for client creation on default context
See coop-cloud/organising#206.
2021-10-17 23:50:44 +02:00
dc040a0b38 chore: change test context names 2021-10-16 13:26:03 +02:00
e6e2e5214f test: add tests for pkg/client/client.go 2021-10-16 13:04:57 +02:00
61452b5f32 docs: add README.md to document testing 2021-10-16 12:26:43 +02:00
78460ac0ba test: increatse client/context.go coverage to 90% 2021-10-16 11:41:41 +02:00
d0828c4d8d fix: teach app version command to read new versions 2021-10-14 11:29:57 +02:00
37022bf0c8 feat: make deploy only deploy
See coop-cloud/organising#127.
2021-10-13 16:51:04 +02:00
9fcdc45851 feat: debug logging
Closes coop-cloud/organising#164.
2021-09-11 11:45:26 +02:00
3c3d8dc0e7 WIP: add first run at app rollback command
See coop-cloud/organising#146.
2021-09-10 11:49:29 +02:00
d82f854ebd test: fix test suite to understand pkg/ directory 2021-09-05 21:39:12 +02:00
b7742d5e18 refactor: use pkg directory structure 2021-09-05 21:37:03 +02:00