Skip to content

feat(seaweedfs): update addon #2217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions api/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package types

import (
"bytes"
"encoding/json"
"errors"
"fmt"
"net/http"
Expand Down Expand Up @@ -101,3 +102,16 @@ func newFieldError(field string, err error) *APIError {
err: err,
}
}

// JSON writes the APIError as JSON to the provided http.ResponseWriter
func (e *APIError) JSON(w http.ResponseWriter) {
response, err := json.Marshal(e)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}

w.Header().Set("Content-Type", "application/json")
w.WriteHeader(e.StatusCode)
w.Write(response)
}
1 change: 1 addition & 0 deletions deploy/images/seaweedfs/apko.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ contents:
- wolfi-base
- seaweedfs~${PACKAGE_VERSION}
- fuse3 # for weed mount
- wget

accounts:
groups:
Expand Down
6 changes: 3 additions & 3 deletions pkg/addons/seaweedfs/static/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
# $ make buildtools
# $ output/bin/buildtools update addon <addon name>
#
version: 4.0.379
version: 4.0.388
location: oci://proxy.replicated.com/anonymous/registry.replicated.com/ec-charts/seaweedfs
images:
seaweedfs:
repo: proxy.replicated.com/anonymous/replicated/ec-seaweedfs
tag:
amd64: 3.79-r0-amd64@sha256:b2d33990bcf727de2ff94251d39e5fd29569847490d5b3e3a4fd8e8277c0e9fb
arm64: 3.79-r0-arm64@sha256:b0114168ba7dc87579378de3f7258190ea75e82ce3c7c2ddff5940ee90ba26fd
amd64: 3.88-r0-amd64@sha256:6f7c82aa6674a6ded1ef2246667ddebb8aaabb756afac5f00c1d37dc1c486a05
arm64: 3.88-r0-arm64@sha256:c0a0d21f8b548cb8b9915b06dadd6faf4935c906c5a8f9634ccf48dd632e437d
Loading