This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +28
-40
lines changed Expand file tree Collapse file tree 6 files changed +28
-40
lines changed Original file line number Diff line number Diff line change 1
1
version : 0.0.1
2
- application :
3
- name : myapp
4
- description : " "
5
- tag : " "
6
- labels :
7
- - alpha
8
- author : bearclaw
2
+ name : myapp
3
+ description : " "
4
+ tag : " "
5
+ labels :
6
+ - alpha
7
+ author : bearclaw
9
8
targets :
10
9
swarm : true
11
10
kubernetes : true
Original file line number Diff line number Diff line change 1
1
version : 0.0.1
2
- application :
3
- name : myapp
4
- description : " "
5
- tag : " "
6
- labels :
7
- - alpha
8
- author : bearclaw
2
+ name : myapp
3
+ description : " "
4
+ tag : " "
5
+ labels :
6
+ - alpha
7
+ author : bearclaw
9
8
targets :
10
9
swarm : true
11
10
kubernetes : true
Original file line number Diff line number Diff line change @@ -137,13 +137,12 @@ services:
137
137
` ` ` yaml
138
138
# docker-app inspect simple
139
139
version: 0.1.0
140
- application:
141
- name: simple
142
- description: ""
143
- tag: ""
144
- labels:
145
- - alpha
146
- author: sakuya.izayoi
140
+ name: simple
141
+ description: ""
142
+ tag: ""
143
+ labels:
144
+ - alpha
145
+ author: sakuya.izayoi
147
146
targets:
148
147
swarm: true
149
148
kubernetes: true
Original file line number Diff line number Diff line change @@ -105,15 +105,12 @@ func newMetadata(name string) types.AppMetadata {
105
105
if userData != nil {
106
106
userName = userData .Username
107
107
}
108
- info := types.ApplicationInfo {
109
- Name : name ,
110
- Labels : []string {"alpha" },
111
- Author : userName ,
112
- }
113
108
return types.AppMetadata {
114
- Version : "0.1.0" ,
115
- Targets : target ,
116
- Application : info ,
109
+ Version : "0.1.0" ,
110
+ Targets : target ,
111
+ Name : name ,
112
+ Labels : []string {"alpha" },
113
+ Author : userName ,
117
114
}
118
115
}
119
116
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ type helmMeta struct {
28
28
29
29
func toHelmMeta (meta * types.AppMetadata ) (* helmMeta , error ) {
30
30
return & helmMeta {
31
- Name : meta .Application . Name ,
31
+ Name : meta .Name ,
32
32
Version : meta .Version ,
33
- Description : meta .Application . Description ,
34
- Keywords : meta .Application . Labels ,
35
- Maintainers : []helmMaintainer {{Name : meta .Application . Author }},
33
+ Description : meta .Description ,
34
+ Keywords : meta .Labels ,
35
+ Maintainers : []helmMaintainer {{Name : meta .Author }},
36
36
}, nil
37
37
}
38
38
Original file line number Diff line number Diff line change @@ -3,18 +3,12 @@ package types
3
3
// AppMetadata is the format of the data found inside the metadata.yml file
4
4
type AppMetadata struct {
5
5
Version string
6
- Application ApplicationInfo
7
- Targets ApplicationTarget
8
- }
9
-
10
- // ApplicationInfo represents general user-provided information about
11
- // a given app package
12
- type ApplicationInfo struct {
13
6
Name string
14
7
Description string
15
8
Tag string
16
9
Labels []string
17
10
Author string
11
+ Targets ApplicationTarget
18
12
}
19
13
20
14
// ApplicationTarget represents which platform(s) / orchestrator(s) the
You can’t perform that action at this time.
0 commit comments