Skip to content

Commit 19dad7a

Browse files
feat(seaweedfs): update addon (#2217)
* updated seaweedfs version * add missing method to APIError * debug * remove debug * update seaweed image --------- Co-authored-by: emosbaugh <371319+emosbaugh@users.noreply.github.com>
1 parent 6ed500f commit 19dad7a

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

api/types/errors.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package types
22

33
import (
44
"bytes"
5+
"encoding/json"
56
"errors"
67
"fmt"
78
"net/http"
@@ -155,3 +156,16 @@ func newFieldError(field string, err error) *APIError {
155156
err: err,
156157
}
157158
}
159+
160+
// JSON writes the APIError as JSON to the provided http.ResponseWriter
161+
func (e *APIError) JSON(w http.ResponseWriter) {
162+
response, err := json.Marshal(e)
163+
if err != nil {
164+
http.Error(w, err.Error(), http.StatusInternalServerError)
165+
return
166+
}
167+
168+
w.Header().Set("Content-Type", "application/json")
169+
w.WriteHeader(e.StatusCode)
170+
w.Write(response)
171+
}

deploy/images/seaweedfs/apko.tmpl.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ contents:
99
- wolfi-base
1010
- seaweedfs~${PACKAGE_VERSION}
1111
- fuse3 # for weed mount
12+
- wget
1213

1314
accounts:
1415
groups:

pkg/addons/seaweedfs/static/metadata.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# $ make buildtools
66
# $ output/bin/buildtools update addon <addon name>
77
#
8-
version: 4.0.379
8+
version: 4.0.388
99
location: oci://proxy.replicated.com/anonymous/registry.replicated.com/ec-charts/seaweedfs
1010
images:
1111
seaweedfs:
1212
repo: proxy.replicated.com/anonymous/replicated/ec-seaweedfs
1313
tag:
14-
amd64: 3.79-r0-amd64@sha256:b2d33990bcf727de2ff94251d39e5fd29569847490d5b3e3a4fd8e8277c0e9fb
15-
arm64: 3.79-r0-arm64@sha256:b0114168ba7dc87579378de3f7258190ea75e82ce3c7c2ddff5940ee90ba26fd
14+
amd64: 3.88-r0-amd64@sha256:6f7c82aa6674a6ded1ef2246667ddebb8aaabb756afac5f00c1d37dc1c486a05
15+
arm64: 3.88-r0-arm64@sha256:c0a0d21f8b548cb8b9915b06dadd6faf4935c906c5a8f9634ccf48dd632e437d

0 commit comments

Comments
 (0)