This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +25
-20
lines changed Expand file tree Collapse file tree 7 files changed +25
-20
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,13 @@ type cnabAction func(string) error
12
12
13
13
var (
14
14
cnabActions = map [string ]cnabAction {
15
- "install" : installAction ,
16
- "upgrade" : installAction , // upgrade is implemented as reinstall.
17
- "uninstall" : uninstallAction ,
18
- internal .ActionStatusName : statusAction ,
19
- internal .ActionInspectName : inspectAction ,
20
- internal .ActionRenderName : renderAction ,
15
+ "install" : installAction ,
16
+ "upgrade" : installAction , // upgrade is implemented as reinstall.
17
+ "uninstall" : uninstallAction ,
18
+ internal .ActionStatusNameDeprecated : statusAction ,
19
+ internal .ActionStatusName : statusAction ,
20
+ internal .ActionInspectName : inspectAction ,
21
+ internal .ActionRenderName : renderAction ,
21
22
}
22
23
)
23
24
Original file line number Diff line number Diff line change 42
42
"com.docker.app.render": {
43
43
"stateless": true
44
44
},
45
- "com.docker.app .status": {}
45
+ "io.cnab .status": {}
46
46
},
47
47
"parameters": {
48
48
"api_host": {
65
65
"install",
66
66
"upgrade",
67
67
"uninstall",
68
- "com.docker.app .status"
68
+ "io.cnab .status"
69
69
]
70
70
},
71
71
"com.docker.app.orchestrator": {
86
86
"install",
87
87
"upgrade",
88
88
"uninstall",
89
- "com.docker.app .status"
89
+ "io.cnab .status"
90
90
]
91
91
},
92
92
"com.docker.app.render-format": {
Original file line number Diff line number Diff line change 12
12
"modifies" : false
13
13
}
14
14
}
15
- }
15
+ }
Original file line number Diff line number Diff line change 42
42
"com.docker.app.render": {
43
43
"stateless": true
44
44
},
45
- "com.docker.app .status": {}
45
+ "io.cnab .status": {}
46
46
},
47
47
"parameters": {
48
48
"api_host": {
65
65
"install",
66
66
"upgrade",
67
67
"uninstall",
68
- "com.docker.app .status"
68
+ "io.cnab .status"
69
69
]
70
70
},
71
71
"com.docker.app.orchestrator": {
86
86
"install",
87
87
"upgrade",
88
88
"uninstall",
89
- "com.docker.app .status"
89
+ "io.cnab .status"
90
90
]
91
91
},
92
92
"com.docker.app.render-format": {
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ import (
22
22
var (
23
23
knownStatusActions = []string {
24
24
internal .ActionStatusName ,
25
- // TODO: Extract this constant to the cnab-go library
26
- "io.cnab.status" ,
25
+ internal .ActionStatusNameDeprecated ,
27
26
}
28
27
)
29
28
Original file line number Diff line number Diff line change @@ -24,9 +24,14 @@ const (
24
24
25
25
// Namespace is the reverse DNS namespace used with labels and CNAB custom actions.
26
26
Namespace = "com.docker.app."
27
+ // CnabNamespace is the namespace used with the CNAB well known custom actions
28
+ CnabNamespace = "io.cnab."
27
29
28
- // ActionStatusName is the name of the custom "status" action
29
- ActionStatusName = Namespace + "status"
30
+ // ActionStatusNameDeprecated is the name of the docker custom "status" action
31
+ // Deprecated: use ActionStatusName instead
32
+ ActionStatusNameDeprecated = Namespace + "status"
33
+ // ActionStatusName is the name of the CNAB well known custom "status" action - TODO: Extract this constant to the cnab-go library
34
+ ActionStatusName = CnabNamespace + "status"
30
35
// ActionInspectName is the name of the custom "inspect" action
31
36
ActionInspectName = Namespace + "inspect"
32
37
// ActionRenderName is the name of the custom "render" action
Original file line number Diff line number Diff line change 47
47
"com.docker.app.render": {
48
48
"stateless": true
49
49
},
50
- "com.docker.app .status": {}
50
+ "io.cnab .status": {}
51
51
},
52
52
"parameters": {
53
53
"com.docker.app.kubernetes-namespace": {
63
63
"install",
64
64
"upgrade",
65
65
"uninstall",
66
- "com.docker.app .status"
66
+ "io.cnab .status"
67
67
]
68
68
},
69
69
"com.docker.app.orchestrator": {
84
84
"install",
85
85
"upgrade",
86
86
"uninstall",
87
- "com.docker.app .status"
87
+ "io.cnab .status"
88
88
]
89
89
},
90
90
"com.docker.app.render-format": {
You can’t perform that action at this time.
0 commit comments