Commit 43046ac
feat(publisher): add image multi arch pusher (#343)
This pull request adds support for a new asynchronous multi-architecture
image collection feature in the publisher service, including both API
and CLI support. It also updates dependencies and refactors service
initialization to accommodate the new functionality.
**New multi-architecture image collection feature:**
* Adds two new endpoints to the image service:
`request-multiarch-collect` (to start collecting a multi-arch image,
with async/sync modes) and `query-multiarch-collect-status` (to check
the status of an async collection). Updates the service design, HTTP
client, and CLI tooling to support these endpoints.
[[1]](diffhunk://#diff-662a3768fb9c0121f844e385f0163667e10875a440ffe2bccba86928f71f8af1R143-R190)
[[2]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8L30-R47)
[[3]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8R87-R92)
[[4]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8R106-R107)
[[5]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8R176-R181)
[[6]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8R235-R240)
[[7]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8R351-R352)
[[8]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8L357-R405)
[[9]](diffhunk://#diff-84c768b792bed35a7ac29f4a1b66b33428d68ecf953f48bc9e2fd033e9773eafR55-R104)
[[10]](diffhunk://#diff-18014c63cbbfca0660ba93571952ac19c83f86197de2a819b1426f7670cf4570R29-R36)
[[11]](diffhunk://#diff-18014c63cbbfca0660ba93571952ac19c83f86197de2a819b1426f7670cf4570R59-R60)
[[12]](diffhunk://#diff-18014c63cbbfca0660ba93571952ac19c83f86197de2a819b1426f7670cf4570R111-R153)
**Service initialization and internal refactoring:**
* Refactors the initialization of `imgSvc` in `main.go` to accept the
same arguments as other services, removing the previous use of a fixed
timeout.
[[1]](diffhunk://#diff-6c8650af650b5ae5b805a1959ba3a1d16c2be84e0ffa3bdb78038ff9402c13dcL93-R92)
[[2]](diffhunk://#diff-6c8650af650b5ae5b805a1959ba3a1d16c2be84e0ffa3bdb78038ff9402c13dcL13)
**Dependency updates:**
* Updates several dependencies in `go.mod`, including
`github.com/docker/cli`, `github.com/opencontainers/image-spec`,
`google.golang.org/grpc`, and others, to newer versions.
[[1]](diffhunk://#diff-ed390b3cd3f7051800bee91f419e6a2052876af79b5100fb366922fc00491ab7L26-R32)
[[2]](diffhunk://#diff-ed390b3cd3f7051800bee91f419e6a2052876af79b5100fb366922fc00491ab7L46)
[[3]](diffhunk://#diff-ed390b3cd3f7051800bee91f419e6a2052876af79b5100fb366922fc00491ab7L64-R65)
[[4]](diffhunk://#diff-ed390b3cd3f7051800bee91f419e6a2052876af79b5100fb366922fc00491ab7L82-R84)
**CLI improvements:**
* Enhances the CLI tool with new commands and usage documentation for
the new endpoints, including help text, flag parsing, and example
payloads.
[[1]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8L30-R47)
[[2]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8L254-R277)
[[3]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8L269-R289)
[[4]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8L306-R326)
[[5]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8L318-R338)
[[6]](diffhunk://#diff-e74abd2247ad723a5d1c29161ac2062e50782d3340650fd88d037bc07746bcb8L344-R367)
[[7]](diffhunk://#diff-84c768b792bed35a7ac29f4a1b66b33428d68ecf953f48bc9e2fd033e9773eafL27-R27)
These changes introduce a robust mechanism for collecting
multi-architecture images, supporting both synchronous and asynchronous
workflows, and ensure that both API consumers and CLI users can leverage
the new functionality.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent 7b63658 commit 43046ac
File tree
36 files changed
+1750
-221
lines changed- chatops-lark/pkg/events/handler
- publisher
- cmd/publisher
- internal/service
- design
- gen
- http
- cli/publisher
- fileserver/client
- image
- client
- server
- tiup/client
- image
- impl
- fileserver
- image
- tiup
36 files changed
+1750
-221
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
155 | 160 | | |
156 | 161 | | |
157 | 162 | | |
| |||
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
240 | 265 | | |
241 | 266 | | |
242 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | | - | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
83 | | - | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
127 | | - | |
128 | | - | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
259 | 307 | | |
Lines changed: 60 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments