aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filechunks_test.go
diff options
context:
space:
mode:
authorcuisongliu <cuisongliu@qq.com>2024-01-31 12:46:22 +0800
committerGitHub <noreply@github.com>2024-01-30 20:46:22 -0800
commitf8c4fb3ebd35a78bc2dbcc32dac8c614601189ad (patch)
tree0f2bdefe8e73b3a4482a993cd7b26f1df8ea9009 /weed/filer/filechunks_test.go
parentd6e0cae6e7bf97534593842ba60fedf8b7f8b229 (diff)
downloadseaweedfs-f8c4fb3ebd35a78bc2dbcc32dac8c614601189ad.tar.xz
seaweedfs-f8c4fb3ebd35a78bc2dbcc32dac8c614601189ad.zip
fix helm install error for No such file or directory (#5250)
* weed/shell: Cluster check other disk types (#5245) * week/shell: Cluster check other disk types The `cluster.check` command only took the empty (`""`) and `hdd` disk types into consideration, but a cluster with only `ssd` or `nvme` disk types would be equally valid. This commit simply checks that _any_ disk type is defined, and that some volumes are available for it. Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> * weed/shell: Replace loop that copies slice Use the following construct instead of a `for` loop: ```golang x = append(x, y...) ``` See https://staticcheck.dev/docs/checks#S1011. Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> * weed/shell: Check disk types when filer is in use Filer stores its metadata logs in generic (i.e. `""`) or HDD disk type volumes, so make sure those disk types exist and have volumes associated with them when Filer is deployed in the cluster. Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> --------- Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> * weed/shell: Cluster check other disk types (#5245) * week/shell: Cluster check other disk types The `cluster.check` command only took the empty (`""`) and `hdd` disk types into consideration, but a cluster with only `ssd` or `nvme` disk types would be equally valid. This commit simply checks that _any_ disk type is defined, and that some volumes are available for it. Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> * weed/shell: Replace loop that copies slice Use the following construct instead of a `for` loop: ```golang x = append(x, y...) ``` See https://staticcheck.dev/docs/checks#S1011. Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> * weed/shell: Check disk types when filer is in use Filer stores its metadata logs in generic (i.e. `""`) or HDD disk type volumes, so make sure those disk types exist and have volumes associated with them when Filer is deployed in the cluster. Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> --------- Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> * fix helm install error for No such file or directory --------- Signed-off-by: Benoît Knecht <bknecht@protonmail.ch> Co-authored-by: Benoît Knecht <bknecht@protonmail.ch>
Diffstat (limited to 'weed/filer/filechunks_test.go')
0 files changed, 0 insertions, 0 deletions