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

Commit 5082323

Browse files
Use stateless indication for inspect custom action.
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
1 parent 8e944cb commit 5082323

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

e2e/testdata/simple-bundle.json.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
},
4747
"actions": {
4848
"com.docker.app.inspect": {
49-
"modifies": false
49+
"modifies": false,
50+
"stateless": true
5051
},
5152
"com.docker.app.status": {
5253
"modifies": false

internal/commands/inspect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ func runInspect(dockerCli command.Cli, appname string, opts inspectOptions) erro
6262
Action: internal.Namespace + "inspect",
6363
Driver: driverImpl,
6464
}
65-
err = a.Run(c, map[string]string{"docker.context": ""}, dockerCli.Out())
65+
err = a.Run(c, nil, dockerCli.Out())
6666
return errors.Wrap(err, "Inspect failed")
6767
}

internal/packager/cnab.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ func ToCNAB(app *types.App, invocationImageName string) (*bundle.Bundle, error)
8181
Parameters: parameters,
8282
Actions: map[string]bundle.Action{
8383
internal.Namespace + "inspect": {
84-
Modifies: false,
84+
Modifies: false,
85+
Stateless: true,
8586
},
8687
internal.Namespace + "status": {
8788
Modifies: false,

0 commit comments

Comments
 (0)