Closed guqing closed 1 year ago
建议将旧附件的 fileKey 设置到 Attachment 的 annotations 中,annotation 键为:s3os.plugin.halo.run/object-key
。
/close
Closing in favor of https://github.com/halo-sigs/plugin-s3/pull/57.
@JohnNiang: Closing this issue.
/reopen
@LIlGG: Reopened this issue.
迁移插件需要修改添加上 annotation,因此该 issue 将继续
异常信息:
Attachment Data Example
```json { "spec": { "displayName": "wallhaven-4dgrym", "groupName": "attachment-group-illustration", "policyName": "policy-aliyun-illustration", "ownerName": "guqing", "mediaType": "image/jpeg", "size": 227739 }, "status": { "permalink": "https://guqing-blog.oss-cn-hangzhou.aliyuncs.com/wallhaven-4dgrym_1590148556987.jpg?x-oss-process=style/common_style" }, "apiVersion": "storage.halo.run/v1alpha1", "kind": "Attachment", "metadata": { "generateName": "attachment-", "finalizers": [ "attachment-manager" ], "name": "attachment-syikU", "annotations": { "storage.halo.run/height": "2500", "storage.halo.run/suffix": "jpg", "storage.halo.run/width": "4000", "storage.halo.run/external-link": "https://guqing-blog.oss-cn-hangzhou.aliyuncs.com/wallhaven-4dgrym_1590148556987.jpg?x-oss-process=style/common_style" }, "version": 2, "creationTimestamp": "2023-02-15T10:17:56.328009475Z" } } ```