Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 98cd1c5

Browse files
Merge pull request #647 from glours/remove_app_status_command
remove the status command from docker app CLI
2 parents e6ba410 + 5a52b2f commit 98cd1c5

File tree

9 files changed

+0
-245
lines changed

9 files changed

+0
-245
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ Commands:
361361
pull Pull an application package from a registry
362362
push Push an application package to a registry
363363
render Render the Compose file for an Application Package
364-
status Get the installation status of an application
365364
rm Remove an application
366365
upgrade Upgrade an installed application
367366
validate Checks the rendered application is syntactically correct

e2e/cnab_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ func TestCallCustomStatusAction(t *testing.T) {
5858
cmd.Command = dockerCli.Command("app", "rm", testCase.name)
5959
icmd.RunCmd(cmd).Assert(t, icmd.Success)
6060
}()
61-
62-
// docker app status
63-
cmd.Command = dockerCli.Command("app", "status", testCase.name)
64-
result := icmd.RunCmd(cmd)
65-
result.Assert(t, icmd.Expected{ExitCode: testCase.exitCode})
66-
assert.Assert(t, is.Contains(result.Combined(), testCase.expectedOutput))
6761
})
6862
}
6963
}

e2e/commands_test.go

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -314,39 +314,6 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
314314
fmt.Sprintf("Creating service %s_web", appName),
315315
})
316316

317-
// Query the application status
318-
cmd.Command = dockerCli.Command("app", "status", appName)
319-
checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(),
320-
[]string{
321-
`INSTALLATION
322-
------------
323-
Name: TestDockerAppLifecycle_.*
324-
Created: .*
325-
Modified: .*
326-
Revision: .*
327-
Last Action: install
328-
Result: SUCCESS
329-
Orchestrator: swarm
330-
331-
APPLICATION
332-
-----------
333-
Name: simple
334-
Version: 1.1.0-beta1
335-
Reference:.*
336-
337-
PARAMETERS
338-
----------
339-
api_host: example.com
340-
static_subdir: data/static
341-
web_port: 8082
342-
343-
STATUS
344-
------`,
345-
fmt.Sprintf("[[:alnum:]]+ %s_db replicated [0-1]/1 postgres:9.3", appName),
346-
fmt.Sprintf(`[[:alnum:]]+ %s_web replicated [0-1]/1 nginx:latest \*:8082->80/tcp`, appName),
347-
fmt.Sprintf("[[:alnum:]]+ %s_api replicated [0-1]/1 python:3.6", appName),
348-
})
349-
350317
// List the installed application
351318
cmd.Command = dockerCli.Command("app", "ls")
352319
checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(),
@@ -371,10 +338,6 @@ STATUS
371338
fmt.Sprintf("Updating service %s_web", appName),
372339
})
373340

374-
// Query the application status again, the port should have change
375-
cmd.Command = dockerCli.Command("app", "status", appName)
376-
icmd.RunCmd(cmd).Assert(t, icmd.Expected{ExitCode: 0, Out: "8081"})
377-
378341
// Uninstall the application
379342
cmd.Command = dockerCli.Command("app", "rm", appName)
380343
checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(),

e2e/testdata/plugin-usage-experimental.golden

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Commands:
1919
push Push an application package to a registry
2020
render Render the Compose file for an Application Package
2121
rm Remove an application
22-
status Get the installation status of an application
2322
upgrade Upgrade an installed application
2423
validate Checks the rendered application is syntactically correct
2524

e2e/testdata/plugin-usage.golden

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Commands:
1919
push Push an application package to a registry
2020
render Render the Compose file for an Application Package
2121
rm Remove an application
22-
status Get the installation status of an application
2322
upgrade Upgrade an installed application
2423
validate Checks the rendered application is syntactically correct
2524

examples/cnab-helm/README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,6 @@ Application "hellohelm" installed on context "default"
3232
**Note**: When using Docker Desktop, you will need to change the IP address in
3333
your Kubernetes configuration file from `127.0.0.1` to its internal IP address.
3434

35-
Check the status of the Helm-based application:
36-
37-
```console
38-
$ docker app status --credential-set creds.yaml hellohelm
39-
INSTALLATION
40-
------------
41-
Name: hellohelm
42-
Created: 39 seconds
43-
Modified: 36 seconds
44-
Revision: 01DD3JM99WRGVAV7T56RMAW13E
45-
Last Action: install
46-
Result: SUCCESS
47-
48-
APPLICATION
49-
-----------
50-
Name: hellohelm
51-
Version: 0.1.0
52-
Reference:
53-
54-
PARAMETERS
55-
----------
56-
port: 8080
57-
```
5835

5936
Uninstall the Helm-based application:
6037

examples/cnab-simple/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ Install the application:
3333
$ docker app install
3434
```
3535

36-
Show the details of the installation:
37-
38-
```console
39-
$ docker app status hello
40-
```
41-
4236
Upgrade the installation, demonstrating setting parameters:
4337

4438
```console

internal/commands/root.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ func addCommands(cmd *cobra.Command, dockerCli command.Cli) {
7070
upgradeCmd(dockerCli),
7171
removeCmd(dockerCli),
7272
listCmd(dockerCli),
73-
statusCmd(dockerCli),
7473
initCmd(dockerCli),
7574
inspectCmd(dockerCli),
7675
renderCmd(dockerCli),

internal/commands/status.go

Lines changed: 0 additions & 169 deletions
This file was deleted.

0 commit comments

Comments
 (0)