Граф коммитов

33 Коммитов

Автор SHA1 Сообщение Дата
Sebastiaan van Stijn fb71f3bc8a
gofmt files with go 1.19
Prepare for future updates of Go, which may result in some changes in
formatting in GoDoc comments.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-07-25 12:31:30 +02:00
CrazyMax 1dce98712a
Go 1.18
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-24 00:49:08 +02:00
Michael Irwin 9a740992ac
Allow compose exec to accept a specific instance in kube backend
This resolves docker/compose-cli#1920

Signed-off-by: Michael Irwin <mikesir87@gmail.com>
2021-09-15 14:48:21 -04:00
Nicolas De Loof bd5def8454
use docker/compose/v2
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-08-31 19:19:32 +02:00
Michael Irwin 8c5b970376
Fix container name used in kube log output
Signed-off-by: Michael Irwin <mikesir87@gmail.com>
2021-07-08 22:04:01 -04:00
Mathieu Champlon 918fe00f3e Fix loop variable captures in goroutines
Signed-off-by: Mathieu Champlon <mathieu.champlon@docker.com>
2021-07-07 12:25:22 +02:00
Nicolas De Loof 96e1e041d6
distinguish stdout and stderr
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-07-02 10:53:11 +02:00
Nicolas De Loof 49e7f2d45d Move compose v2 implementation under pkg/compose with dependencies
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-15 15:52:48 +02:00
Nicolas De Loof d90495e1cd move compose API into pkg/api
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-15 15:52:48 +02:00
Nicolas De Loof 89a63b79cb
define compose labels within the compose API
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-11 11:46:34 +02:00
Nicolas De loof 45a2c422e1
Merge pull request #1760 from ndeloof/split_writer
code cleanup: splitWriter does not use service/container name
2021-06-09 07:31:16 +02:00
aiordache 0d25709ada Add port mapping to `compose ps`
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 14:48:09 +00:00
Nicolas De Loof 9d5026e966
code cleanup: splitWriter does not use service/container name
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-06-08 16:16:06 +02:00
aiordache 5d9d39dabd Add port-forwarding on `compose up`
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 12:14:40 +00:00
aiordache d8db079af3 Add exec command
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 12:14:40 +00:00
aiordache 7fd3c6f5cb Port forwarding attempt
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 12:14:40 +00:00
aiordache 9279954193 Check the status of pod containers on `compose up`
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-06-08 12:14:40 +00:00
Chris Crone d27bda5e1d build: Update golangci-lint
* Replace goling with revive as the former is deprecated

Signed-off-by: Chris Crone <christopher.crone@docker.com>
2021-05-19 15:00:53 +00:00
Nicolas De Loof 949e8bb090
use "container name witout project" for both logs and events
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-17 11:38:43 +01:00
aiordache 012f710717 Fix lint issues
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-04 18:05:23 +01:00
aiordache b3d39931b3 add timeout for up/down
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-02 15:35:17 +01:00
aiordache 48928811df Wait for pods to be running/terminated on compose up/down
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-02 15:33:43 +01:00
aiordache d10600041d Add secret support
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-02 15:33:32 +01:00
aiordache 05c4caef95 Kube: Fix logs filter
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-02 15:26:24 +01:00
aiordache 9ec5af76cd Wait for expected pod status on `compose up`
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-02 15:26:24 +01:00
Nicolas De Loof 2b0e0f2741
pass service to LogConsumer
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-22 11:40:26 +01:00
Nicolas De Loof 12a5100b20 reconcide log's wplit_writer implementations
close #1311

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-16 10:59:28 +01:00
aiordache 9be77beb73 Add compose logs test
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-02-08 15:20:49 +01:00
aiordache 1e7ce90561 Kube backend: add the `compose logs` command
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-02-08 15:19:47 +01:00
Guillaume Tardif 677bfc9ce5 Set kube namespace properly
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-05 11:09:06 +01:00
Guillaume Tardif 15c0b883fe hide non running containers if no --all option
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-05 10:49:31 +01:00
Guillaume Tardif f368036ddd Add compose ps listing pod statuses (retrieve pods from compose project label)
This does not yet retrieve port sharing data (need to reconcile ports with kube services)

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-05 10:07:52 +01:00
Guillaume Tardif 73e94b4ba5 Add Kube client
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-05 10:07:52 +01:00