mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9cd9b0542 | ||
|
|
dbfbabac55 | ||
|
|
2150289442 | ||
|
|
3fd038fcfe | ||
|
|
dc6b750424 | ||
|
|
eb33648ab8 | ||
|
|
fce8fc1e16 | ||
|
|
d8da4bbaa7 | ||
|
|
1f2dc54647 | ||
|
|
c5a0ca949f | ||
|
|
19be796eb5 | ||
|
|
b5147a1c2c | ||
|
|
ed7aef6e33 | ||
|
|
32c2755603 | ||
|
|
6de1079183 | ||
|
|
36b5b713ba | ||
|
|
d8bde9b96e | ||
|
|
579ebbdf60 | ||
|
|
0c62d591e2 | ||
|
|
e1c671c028 | ||
|
|
f2a37933b1 | ||
|
|
3ddfd15ec1 | ||
|
|
3e7a92061b | ||
|
|
722a14ef57 | ||
|
|
edeea739ed | ||
|
|
529b638647 | ||
|
|
ff3067ab04 | ||
|
|
aec0b4cc2e | ||
|
|
72f7b4e9b1 | ||
|
|
364bb6c7b4 | ||
|
|
ba98f02d02 | ||
|
|
fb9fe627f6 | ||
|
|
9497db71e6 | ||
|
|
4e00ab4942 | ||
|
|
cfcf383ee7 | ||
|
|
a9b057389f | ||
|
|
aba212dedd | ||
|
|
d218fe54fa | ||
|
|
2f474c33d0 | ||
|
|
2be58ea767 | ||
|
|
f483d8b8f4 | ||
|
|
50ec3d7385 | ||
|
|
07a289785a | ||
|
|
a3a00d9499 | ||
|
|
3fae87632f | ||
|
|
8c59348d28 | ||
|
|
f6e8a9bf9c | ||
|
|
54f3913bed | ||
|
|
31653e4b1e | ||
|
|
1db3bb9a9c | ||
|
|
262fe2c723 | ||
|
|
3f3f0ec17f | ||
|
|
c23e9f96a5 | ||
|
|
66dfeb7ba2 | ||
|
|
4bc7ff604a | ||
|
|
25a7e18d3b | ||
|
|
fe3776c9df | ||
|
|
063683786a | ||
|
|
b7d184c740 | ||
|
|
d389c5b27e | ||
|
|
731b3aadbe | ||
|
|
d3032d1e80 | ||
|
|
1917f70f78 | ||
|
|
96c48bd0da | ||
|
|
cbcc75bef8 | ||
|
|
c8629e7bee | ||
|
|
74c1ad885d | ||
|
|
4e1759a0f6 | ||
|
|
6c38739351 | ||
|
|
3682eb929f | ||
|
|
fcedf97e94 | ||
|
|
dd1571b95b | ||
|
|
664b704e30 | ||
|
|
4e3701df77 | ||
|
|
658d302aa4 | ||
|
|
a5645d50a7 | ||
|
|
253ec73a17 | ||
|
|
f5f3b60a13 | ||
|
|
30f8600a24 | ||
|
|
7a9b115cc2 | ||
|
|
4a3e8869bb | ||
|
|
1c5043baf7 | ||
|
|
f2f4630029 | ||
|
|
b8af997e41 | ||
|
|
0f35b3a4ea | ||
|
|
928a4e8dff | ||
|
|
5bc1b70a4c | ||
|
|
a568d128fb | ||
|
|
f80fb1c02e | ||
|
|
ee25ada732 | ||
|
|
36a1cf0361 | ||
|
|
6d8283d458 | ||
|
|
1be82a063a | ||
|
|
059e0ae982 | ||
|
|
bff055979f | ||
|
|
3dcb5569fe | ||
|
|
736cc57b80 | ||
|
|
5e8d788311 | ||
|
|
e6bfd061c7 | ||
|
|
d521466a37 | ||
|
|
a1b59948cc | ||
|
|
b570e015ce | ||
|
|
5dc186ef01 | ||
|
|
b166597c83 | ||
|
|
189a7fc90e | ||
|
|
0da1b7b0f9 | ||
|
|
1a2332c257 | ||
|
|
5ce8f50546 | ||
|
|
8a0e5b6d54 | ||
|
|
f37862bffe | ||
|
|
7310d022ad | ||
|
|
70551019d6 | ||
|
|
6f9267ebdf | ||
|
|
a2a872ca03 | ||
|
|
60103171b6 | ||
|
|
111a4e1126 | ||
|
|
3d3ee04eb9 | ||
|
|
a3dab1fcd0 | ||
|
|
0d04264494 | ||
|
|
72b50980f4 | ||
|
|
8948fb51e3 | ||
|
|
63036133ff | ||
|
|
2a9b0a9332 | ||
|
|
abf01a0eb7 | ||
|
|
977e7988e6 | ||
|
|
9cb9d27b5b | ||
|
|
313097aca0 | ||
|
|
827e293010 | ||
|
|
138a027a2e | ||
|
|
30b5aef62e | ||
|
|
ce4597c623 | ||
|
|
dbdb7c8abe | ||
|
|
f91484ca07 | ||
|
|
f93c4cf48c | ||
|
|
855607c536 | ||
|
|
607927da60 | ||
|
|
d88c1872ac | ||
|
|
2f3fee9bb9 | ||
|
|
d7e5f6b2a5 | ||
|
|
6e4b9181f5 | ||
|
|
cc2885b4f2 | ||
|
|
850018101a | ||
|
|
9cd7022c17 | ||
|
|
374c5d2461 | ||
|
|
e7fc64f524 | ||
|
|
9ef238b610 | ||
|
|
cc1ce3de87 | ||
|
|
384ed7a381 | ||
|
|
57949f9959 | ||
|
|
05d18130b6 | ||
|
|
20666bdf81 | ||
|
|
55976ae04a | ||
|
|
31f1f96038 | ||
|
|
d9490c5e1f | ||
|
|
0847a17484 | ||
|
|
0bdf121e51 | ||
|
|
ce2b2fa9b2 | ||
|
|
37019477bc | ||
|
|
2827f91ecd | ||
|
|
752f72763a | ||
|
|
6073b59c84 | ||
|
|
9b5709ede3 | ||
|
|
9f694c2843 | ||
|
|
0edc5aad9a | ||
|
|
33537ae29f | ||
|
|
8833745fbc | ||
|
|
68ade92d4f | ||
|
|
8415476c2d | ||
|
|
5324e4288a | ||
|
|
6f80dbdfe5 | ||
|
|
53d1d2b78a | ||
|
|
04fb4c34e3 | ||
|
|
48fe50df81 | ||
|
|
0cbf364a3d | ||
|
|
7a72677f98 | ||
|
|
d45a372615 | ||
|
|
d5b2cee34a | ||
|
|
2a4a9c6343 | ||
|
|
7482a98833 | ||
|
|
1410c062f8 | ||
|
|
e53a972483 | ||
|
|
5189a09de0 | ||
|
|
6dae685f9c | ||
|
|
cc1c69f312 | ||
|
|
f08f95ac80 | ||
|
|
370c6586f0 | ||
|
|
7aef1b88c9 | ||
|
|
576a4376f4 | ||
|
|
40ef5d05a3 | ||
|
|
da42173d16 | ||
|
|
67ead9b18f | ||
|
|
5c8e6014ba | ||
|
|
9e07a87fcb | ||
|
|
3e25ed1b11 | ||
|
|
35cba720a5 | ||
|
|
d42a04cceb | ||
|
|
7aa25c1137 | ||
|
|
881c922972 | ||
|
|
b4def8f000 | ||
|
|
b19c9847c6 | ||
|
|
ccdd9cd8de | ||
|
|
f37c0d0d7a | ||
|
|
d5d8b8e2ae | ||
|
|
2a88da4de7 | ||
|
|
d935f70e3c | ||
|
|
f07875e8e1 | ||
|
|
df9031e19a | ||
|
|
e568e742c9 | ||
|
|
94008a84a4 | ||
|
|
2fc37db77e | ||
|
|
53fdda82f0 | ||
|
|
fab5f66a95 | ||
|
|
c18a4c6911 | ||
|
|
d41c1c2956 | ||
|
|
d6149f87a3 | ||
|
|
ef06d6f074 | ||
|
|
2e5aa8d03b | ||
|
|
47975e75bf | ||
|
|
237e68059d | ||
|
|
66a878af39 | ||
|
|
546ae87c39 | ||
|
|
c9df613b6b | ||
|
|
ca4f89a6f6 | ||
|
|
0d55bddc75 | ||
|
|
829c0da381 | ||
|
|
f9ec92dd83 | ||
|
|
9c1e0f5811 | ||
|
|
df40908e57 | ||
|
|
13b7c7b366 | ||
|
|
e3c8be7f89 | ||
|
|
ab9fc0ad70 | ||
|
|
7463058299 | ||
|
|
dab5454332 | ||
|
|
f249f831b1 | ||
|
|
2a0ab7e90d | ||
|
|
059a120708 | ||
|
|
7d87c1d2bb | ||
|
|
6aa804b368 | ||
|
|
5cc94a05b9 | ||
|
|
17806cde2a | ||
|
|
f67c8309d8 | ||
|
|
7d69552974 | ||
|
|
36fec34c47 | ||
|
|
707ff536a3 | ||
|
|
8b3756b815 | ||
|
|
14775a42f0 | ||
|
|
d48043be09 | ||
|
|
f3599c9252 | ||
|
|
aed6fdffd2 | ||
|
|
d6a066495b | ||
|
|
1b1b96ea1e | ||
|
|
9ca871af53 | ||
|
|
4f5c4c3388 | ||
|
|
d558a58946 | ||
|
|
205d2285f3 | ||
|
|
2dd2bb3e16 | ||
|
|
1f3742850d | ||
|
|
dc9568fc0d | ||
|
|
953f571349 | ||
|
|
61f4e40ad9 | ||
|
|
a5582cc921 | ||
|
|
ac13644fc9 | ||
|
|
03f18e43df | ||
|
|
b5a6f10612 | ||
|
|
26e24db721 | ||
|
|
36a3301e0c | ||
|
|
5c0fcae039 | ||
|
|
407a52fc93 | ||
|
|
da31e9b939 | ||
|
|
211171e669 | ||
|
|
e641d49f9f | ||
|
|
25643cfbc6 | ||
|
|
8b18dd940f | ||
|
|
50023fe1cf | ||
|
|
d821cb3b18 | ||
|
|
7003ce7425 | ||
|
|
96149cbf7f | ||
|
|
a1816d21e9 | ||
|
|
ad408a7d38 | ||
|
|
359b00596f | ||
|
|
7091269e65 | ||
|
|
8a2b3879b9 | ||
|
|
e21f458bca | ||
|
|
faf27fdbf2 | ||
|
|
7c2e3dba20 | ||
|
|
52735bbe08 | ||
|
|
6f4b06e6b2 | ||
|
|
c7435a594c | ||
|
|
e0379e87eb | ||
|
|
516cba7053 | ||
|
|
6ef3e6bcad | ||
|
|
77fd62f6a5 | ||
|
|
a375b2815e | ||
|
|
ca042bd067 | ||
|
|
4dce1e9d29 | ||
|
|
a8b73296d7 | ||
|
|
3c559dc294 | ||
|
|
ea2601799c | ||
|
|
1516e0249f | ||
|
|
8e5068fd2f | ||
|
|
aba934f0b5 | ||
|
|
44ab42d03c | ||
|
|
3f2dd8cc3e | ||
|
|
b74e8082ba | ||
|
|
6a61b54f29 | ||
|
|
27bb38228b | ||
|
|
054d0b3487 | ||
|
|
f8957b84c1 | ||
|
|
529fa8c4c8 | ||
|
|
059df3957d | ||
|
|
1b5c547cfe | ||
|
|
55714f54ab | ||
|
|
56ce040ab6 | ||
|
|
549455c30d | ||
|
|
f653838f34 | ||
|
|
64a32730a2 | ||
|
|
205829fa22 | ||
|
|
54ee73287d | ||
|
|
6f615c62ae | ||
|
|
604091a480 | ||
|
|
1efa502dbb | ||
|
|
8760753119 | ||
|
|
2db8305093 | ||
|
|
f0c7b1b08e | ||
|
|
28e6740ad3 | ||
|
|
a6cca4dd39 | ||
|
|
963bed3374 | ||
|
|
6f75a0af55 | ||
|
|
c1a5952009 | ||
|
|
e7823ee967 | ||
|
|
ab70aa92da | ||
|
|
3b28433cb1 | ||
|
|
28f8f33d6a | ||
|
|
34f2b600ac | ||
|
|
62397f2371 | ||
|
|
832b60c13f | ||
|
|
49869eec83 | ||
|
|
33ab6cfcf7 | ||
|
|
8f79bb3987 | ||
|
|
b544a69550 | ||
|
|
5c0f01c0eb | ||
|
|
170b63d6f8 | ||
|
|
ecc154fa9e | ||
|
|
3e3e0fa240 | ||
|
|
872b5161e6 | ||
|
|
18d06aaf65 | ||
|
|
332cf579b5 | ||
|
|
fad64a6af7 | ||
|
|
caa9f34ff0 | ||
|
|
54650e048a | ||
|
|
a39397f4e5 | ||
|
|
c6e27d5f03 | ||
|
|
fe03b1b522 | ||
|
|
50c5dd7313 | ||
|
|
7598922b41 | ||
|
|
7e443ef0a1 | ||
|
|
ead27a4f59 | ||
|
|
1b4484bf0a | ||
|
|
2a7028373d | ||
|
|
0833057503 | ||
|
|
85d6d5371b | ||
|
|
e88467bb36 | ||
|
|
8e7b77b580 | ||
|
|
55e6ff744d | ||
|
|
d2c97cfa2c | ||
|
|
51a36923a4 | ||
|
|
41fbf55354 | ||
|
|
76ae39a363 | ||
|
|
54d7748a4a | ||
|
|
a52ce076fc | ||
|
|
7187346cc1 | ||
|
|
7c45992c79 | ||
|
|
bf0899cbf4 | ||
|
|
abf1dd13d2 | ||
|
|
e8f094dcac | ||
|
|
439348456a | ||
|
|
7305fa82fc | ||
|
|
53da302501 | ||
|
|
074904c572 | ||
|
|
24636fb1de | ||
|
|
ef4a0054b6 | ||
|
|
32cb9b3276 | ||
|
|
41ec9d7759 | ||
|
|
f037c09c11 | ||
|
|
6181aa7594 | ||
|
|
3b5d8ffb70 | ||
|
|
c694cb4e7d | ||
|
|
8fb978d6f6 | ||
|
|
3d463ef471 | ||
|
|
4b24f0fc3a | ||
|
|
2c6f4fda8b | ||
|
|
c2fb9ebef0 | ||
|
|
72fa8e25a0 | ||
|
|
0f2339420e | ||
|
|
966cf91dd6 | ||
|
|
a48e2ec45b | ||
|
|
2ad363d984 | ||
|
|
16b4f9d9ab | ||
|
|
e27deed4bc | ||
|
|
656b78d1af | ||
|
|
90fcde0e26 | ||
|
|
07028a4864 | ||
|
|
fa72761bb8 | ||
|
|
c471265837 | ||
|
|
4dc6681833 | ||
|
|
ffe5f19aa0 | ||
|
|
75f89f098b | ||
|
|
5a032b0a0f | ||
|
|
0cfa68ee8f | ||
|
|
9f482fbe5a | ||
|
|
de3dd03c67 | ||
|
|
589c6b0d75 | ||
|
|
0d74ac9224 | ||
|
|
f9131de43f | ||
|
|
44b49bec99 | ||
|
|
53612b770c | ||
|
|
56df44845f | ||
|
|
0a12301b3d | ||
|
|
0b49c16361 | ||
|
|
1b5ba4190c | ||
|
|
d41792461c | ||
|
|
d30150dde1 | ||
|
|
0aed16a9c4 | ||
|
|
c5440055fd | ||
|
|
9abd3a90c3 | ||
|
|
f8c4fb3ebd | ||
|
|
d6e0cae6e7 | ||
|
|
c1bb76d709 | ||
|
|
ac50d8a822 | ||
|
|
56287bd07d | ||
|
|
0775d05a23 | ||
|
|
e5c0680dbc | ||
|
|
e04264114b | ||
|
|
a0234afdd4 | ||
|
|
4ea41994bf | ||
|
|
e107800a73 | ||
|
|
5fa8f40fdf | ||
|
|
0b2e5ddc7c | ||
|
|
545d5fbdf6 | ||
|
|
a507069d19 | ||
|
|
9e6ea80dff | ||
|
|
a297247137 | ||
|
|
b6c5e57c30 | ||
|
|
0bf5424a2e | ||
|
|
dedfd31dfb | ||
|
|
cbf750a31f | ||
|
|
b51dfe2bff | ||
|
|
f8c55f101e | ||
|
|
d40225ecd2 | ||
|
|
841fafd0a8 | ||
|
|
5dc1362bdc | ||
|
|
fa835c9319 | ||
|
|
b6de35cdb2 | ||
|
|
91af1f3069 | ||
|
|
f6e39139d8 | ||
|
|
08c5fba825 | ||
|
|
cb50b720fd | ||
|
|
1f08010ef0 | ||
|
|
0f8e76bbd6 | ||
|
|
a6aee847b9 | ||
|
|
0b71fae2e3 | ||
|
|
95787ea89d | ||
|
|
025f8eb37b | ||
|
|
d4e66cc140 | ||
|
|
a8ddbf9ed2 | ||
|
|
49fcb48e04 | ||
|
|
7c1ad109ef | ||
|
|
439377b7a0 | ||
|
|
2158e163f7 | ||
|
|
d268fbe18a | ||
|
|
3ff6b31d94 | ||
|
|
2beaa2d0b3 | ||
|
|
c3f8530f97 | ||
|
|
5f35857cd0 | ||
|
|
428fea45f3 | ||
|
|
e8b05ecc91 | ||
|
|
861ad732ca | ||
|
|
47924afa1c | ||
|
|
32977a053c | ||
|
|
91a7ee3be9 | ||
|
|
54a5c878e9 | ||
|
|
835c797731 | ||
|
|
104601392b | ||
|
|
581cf6644c | ||
|
|
7121ae9617 | ||
|
|
c77d35313e | ||
|
|
b0a2e9aea3 | ||
|
|
9ce7c482b3 | ||
|
|
a5b906c0dd | ||
|
|
34839237ab | ||
|
|
2828ccbb30 | ||
|
|
541140f735 | ||
|
|
207974cfdd | ||
|
|
bb867694d8 | ||
|
|
4ca6b1be3c | ||
|
|
d848efed1b | ||
|
|
aca3c33bab | ||
|
|
314e25aad6 | ||
|
|
5c90b27b0a | ||
|
|
263f1f3d04 | ||
|
|
83e4b02517 | ||
|
|
2fa519bcb5 | ||
|
|
15b66a6633 | ||
|
|
3002087541 | ||
|
|
be166b434f | ||
|
|
c8090b1f99 | ||
|
|
c616081ab9 | ||
|
|
4e9ea1e628 | ||
|
|
f9cf13fada | ||
|
|
2eb82778bc | ||
|
|
bc8d2a01cc | ||
|
|
fdf0ea8e11 | ||
|
|
be0c426dc7 | ||
|
|
db3670a3a5 | ||
|
|
34a78ffad0 | ||
|
|
3795d8dca8 | ||
|
|
f782165638 | ||
|
|
dd1ec70e62 | ||
|
|
53be97d5be | ||
|
|
1877ce5126 | ||
|
|
ba73199174 | ||
|
|
33d5343ea1 | ||
|
|
59b8af99b0 | ||
|
|
6d45bb3038 | ||
|
|
7e6497cc1c | ||
|
|
316ae45795 | ||
|
|
c82236b41b | ||
|
|
25a8775006 | ||
|
|
4ce95ad662 | ||
|
|
41458a5788 | ||
|
|
026c54a9bb | ||
|
|
fa59a5d67e | ||
|
|
49f7de9daa | ||
|
|
d6ba97219b | ||
|
|
8d23e36c45 | ||
|
|
1169f94310 | ||
|
|
3aa3991f0f | ||
|
|
7afaad31a4 | ||
|
|
61dbdd0ff6 | ||
|
|
f750a5e03b | ||
|
|
45994641e9 | ||
|
|
70a011a224 | ||
|
|
0e8a54f6f6 | ||
|
|
b0ac3ebd6c | ||
|
|
050efe6c08 | ||
|
|
188f471a24 | ||
|
|
6a7a679137 | ||
|
|
a7fc723ae0 | ||
|
|
8af61dec91 | ||
|
|
aed54eda61 | ||
|
|
d51efddf5c | ||
|
|
fe417ee02d | ||
|
|
8c966ac23b | ||
|
|
121c59e2b7 | ||
|
|
0ece5d9d8c | ||
|
|
391213549c | ||
|
|
894baa900e | ||
|
|
69d417ff96 | ||
|
|
a71c219ca2 | ||
|
|
473d6ba1ac | ||
|
|
fbb4917e2f | ||
|
|
8ae00e47a6 | ||
|
|
49428a303b | ||
|
|
b9d32d32e1 | ||
|
|
d0d24f1e40 | ||
|
|
d9bd343055 | ||
|
|
1206313952 | ||
|
|
aa5b6a8187 | ||
|
|
496fc8fbbf | ||
|
|
e8611ed85d | ||
|
|
531f854af2 | ||
|
|
f8787a9761 | ||
|
|
add16fb1a1 | ||
|
|
ddd0fde094 | ||
|
|
ee41dbb7fc | ||
|
|
1fed37bed0 | ||
|
|
3b62b338a5 | ||
|
|
47a4963d7a | ||
|
|
35869b5c80 | ||
|
|
4f6172f369 | ||
|
|
3e43778869 | ||
|
|
b832ddd1ef | ||
|
|
efb695fd93 | ||
|
|
54e9877093 | ||
|
|
d3688938d9 | ||
|
|
53188a1191 | ||
|
|
88d3f51648 | ||
|
|
923b1e5dad | ||
|
|
d4e91b6ad9 | ||
|
|
8b4cd50aac | ||
|
|
bf9ae74384 | ||
|
|
400bc08334 | ||
|
|
4b968ae81c | ||
|
|
75fe27f3b1 | ||
|
|
dcea9acd36 | ||
|
|
32bc8d6a38 | ||
|
|
458ddbf919 | ||
|
|
2845230329 | ||
|
|
093fdc1621 | ||
|
|
77626666c5 | ||
|
|
9ed26cd7b0 | ||
|
|
c950a40aad | ||
|
|
183352c796 | ||
|
|
0b8f9de4ec | ||
|
|
edc0532b1d | ||
|
|
59edb84253 | ||
|
|
bebbc9fe44 | ||
|
|
263b7535bb | ||
|
|
6007318142 | ||
|
|
3345c2e21d | ||
|
|
bb9269f3f7 | ||
|
|
c6b1dc7058 | ||
|
|
838578b55f | ||
|
|
97236389e8 | ||
|
|
54ba2c8868 | ||
|
|
03c4b2e988 | ||
|
|
c4badf7396 | ||
|
|
6324062acc | ||
|
|
e0727071c8 | ||
|
|
ee1c9bc314 | ||
|
|
034db049a0 | ||
|
|
6df44d3c95 | ||
|
|
7a0d1e7fc1 | ||
|
|
c278f49bca | ||
|
|
06343f8976 | ||
|
|
3c9bcfb864 | ||
|
|
3ec2a898b8 | ||
|
|
7e95fcc963 | ||
|
|
089445369e | ||
|
|
912e6b5a1a | ||
|
|
d92f22de8a | ||
|
|
d7ed240dd5 | ||
|
|
929781be92 | ||
|
|
32e45541dc | ||
|
|
745c55da35 | ||
|
|
2b323a8293 | ||
|
|
fe7ff5c4db | ||
|
|
4538265412 | ||
|
|
915416a277 | ||
|
|
ca53094777 | ||
|
|
1397b1ca09 | ||
|
|
97c26ac5eb | ||
|
|
d5c01e5ceb | ||
|
|
61b05fad95 | ||
|
|
580940bf82 | ||
|
|
8784553501 | ||
|
|
157b36d59d | ||
|
|
70c735f6bb | ||
|
|
c68220af7e | ||
|
|
dc51d9a9a9 | ||
|
|
1a6842c477 | ||
|
|
21af8d8778 | ||
|
|
f743df0f0b | ||
|
|
3407e28a78 | ||
|
|
125ad8fe63 | ||
|
|
c1a6e624e5 | ||
|
|
5fe4c04a1a | ||
|
|
43a5973a66 | ||
|
|
43a6b60375 | ||
|
|
d5d9fbb8aa | ||
|
|
4aeca48b6d | ||
|
|
fd6de32b53 | ||
|
|
31ca7bacea | ||
|
|
14a4d5c24d | ||
|
|
e47ec67dd8 | ||
|
|
e792eadf13 | ||
|
|
556a242acf | ||
|
|
756bcc032d | ||
|
|
dd78397fea | ||
|
|
fe3e7db9d1 | ||
|
|
27f40fae0c | ||
|
|
c8ff001b31 | ||
|
|
366ad5cfad | ||
|
|
b7b9f1c690 | ||
|
|
81f11883e3 | ||
|
|
666a22b980 | ||
|
|
d198fd8af7 | ||
|
|
0709361ed2 | ||
|
|
c332832f0b | ||
|
|
aff03c1d00 | ||
|
|
cf5703e86e | ||
|
|
c479c05f6e | ||
|
|
d33de9f4db | ||
|
|
aac2cd23c7 | ||
|
|
e4cdfde944 | ||
|
|
2af6b13800 | ||
|
|
7a5d9d8690 | ||
|
|
c04284cdd7 | ||
|
|
b8bfd4411a | ||
|
|
f33f7c10f0 | ||
|
|
ac6158818b | ||
|
|
f7b98ea1fb | ||
|
|
2920949def | ||
|
|
5db0064ffe | ||
|
|
0aea4dc1f3 | ||
|
|
6244bf7355 | ||
|
|
9ff010d15b | ||
|
|
d9e06d8481 | ||
|
|
869c2ff4f4 | ||
|
|
e4f77b283c | ||
|
|
c44149a88f | ||
|
|
7a50762b9e | ||
|
|
69013af0f3 | ||
|
|
9b79a4124d | ||
|
|
d818ca9631 | ||
|
|
f4cafc1dbc | ||
|
|
c50b6387f6 | ||
|
|
c219a0c553 | ||
|
|
4297601f4b | ||
|
|
0510682908 | ||
|
|
322e783525 | ||
|
|
4278e9879f | ||
|
|
8ba2bffdba | ||
|
|
08812f8f5d | ||
|
|
676bcf08d6 | ||
|
|
47095efead | ||
|
|
f46f28fcf9 | ||
|
|
ad9fef7a52 | ||
|
|
0770f567e5 | ||
|
|
2fa37e0287 | ||
|
|
9e03b916d8 | ||
|
|
6c1ce18541 | ||
|
|
281a643024 | ||
|
|
b567499f75 | ||
|
|
c962b25c05 | ||
|
|
17313aaece | ||
|
|
557fc04996 | ||
|
|
57801687de | ||
|
|
06434f5227 | ||
|
|
06e723f629 | ||
|
|
2b229e98ce | ||
|
|
17710e1ecb | ||
|
|
0bf67a4822 | ||
|
|
ce93db8457 | ||
|
|
1a2c04025d | ||
|
|
58febb4893 | ||
|
|
436e035ace | ||
|
|
846da14739 | ||
|
|
6f559fe838 | ||
|
|
cd01a2346a | ||
|
|
d3556479be | ||
|
|
bb274ea8a3 | ||
|
|
e55fa68848 | ||
|
|
3c5295a1a6 | ||
|
|
5e41ab1370 | ||
|
|
7f6152f130 | ||
|
|
b05d682c48 | ||
|
|
27b34f3793 | ||
|
|
47112917ff | ||
|
|
85bed4d92e | ||
|
|
c563386675 | ||
|
|
a1c6f1fbd6 | ||
|
|
5db82e594a | ||
|
|
2b9dda7d2e | ||
|
|
d693beea87 | ||
|
|
8a6a7c63c0 | ||
|
|
32cf06d19f | ||
|
|
650f56e30c | ||
|
|
4d9274ec9d | ||
|
|
b3bcb1823e | ||
|
|
9f0e80e9f9 | ||
|
|
a667f0ad99 | ||
|
|
b40ba7c7fe | ||
|
|
310eec9a9c | ||
|
|
3834ad5c48 | ||
|
|
4ed06e9ba5 | ||
|
|
d401e374f7 | ||
|
|
4bb3911fde | ||
|
|
8cf83d3b12 | ||
|
|
d440135d70 | ||
|
|
312abfbe82 | ||
|
|
28525fb500 | ||
|
|
ba11331cc1 | ||
|
|
f95848ba7d | ||
|
|
d1e83a3b4d | ||
|
|
bf839651ec | ||
|
|
8b39bbbe2f | ||
|
|
8dfb66880e | ||
|
|
179039afaa | ||
|
|
53c709a580 | ||
|
|
85f41657dd | ||
|
|
c999851555 | ||
|
|
aaf212f7ec | ||
|
|
c6e9fd26dc | ||
|
|
6ae22b522b | ||
|
|
2bc05f70e7 | ||
|
|
30b48ad614 | ||
|
|
294337d882 | ||
|
|
612fd7206e | ||
|
|
6c82d7ddfc | ||
|
|
3df0e11ad3 | ||
|
|
117fbba5bf | ||
|
|
b2ecfad35e | ||
|
|
6acec5ed1c | ||
|
|
1a4c35d984 | ||
|
|
3469ad6b3f | ||
|
|
6175102ccf | ||
|
|
c6991dfd5f | ||
|
|
cbc24c7b24 | ||
|
|
6acb43bbbb | ||
|
|
ce9b822a8e | ||
|
|
b62066d38f | ||
|
|
deb86ff4a6 | ||
|
|
de0b969b36 | ||
|
|
1cac5d983d | ||
|
|
edee91ef0e | ||
|
|
35b5264ab7 | ||
|
|
fb450b2a5d | ||
|
|
3e8604a4c5 | ||
|
|
08a45d6c84 | ||
|
|
c2d338160e | ||
|
|
9662d71a3a | ||
|
|
9242a6cc5d | ||
|
|
49a0ee60b3 | ||
|
|
2b3e39397e | ||
|
|
3fe00996b2 | ||
|
|
082f67bfe9 | ||
|
|
0fd7222d65 | ||
|
|
7b3c63a8af | ||
|
|
4e493d596c | ||
|
|
659133fb68 | ||
|
|
530bdedf76 | ||
|
|
6ebe26a765 | ||
|
|
7540d43ee9 | ||
|
|
249c0e06ef | ||
|
|
a78c4141e5 | ||
|
|
451ec6504d | ||
|
|
f9abfd0b03 | ||
|
|
763d1946f9 | ||
|
|
0483ba3889 | ||
|
|
567d788928 | ||
|
|
b5070d6280 | ||
|
|
5fb90a3157 | ||
|
|
a16c0fabca | ||
|
|
58b46229aa | ||
|
|
c49dee4dad | ||
|
|
f7ad82e03d | ||
|
|
dffe00a822 | ||
|
|
bf13f3ced7 | ||
|
|
734178093e | ||
|
|
2a578b9033 | ||
|
|
321fda552c | ||
|
|
b02fdeabff | ||
|
|
ebd6f96d35 | ||
|
|
02cb799481 | ||
|
|
c4e6545197 | ||
|
|
358cba43ef | ||
|
|
597ab1e4bf | ||
|
|
d7c211fe8c | ||
|
|
40888b5612 | ||
|
|
abe599ee4a | ||
|
|
dd580190b4 | ||
|
|
44906f1f3b | ||
|
|
9d589b48e6 | ||
|
|
17a0f3b0e0 | ||
|
|
df4ded758e | ||
|
|
19505c1cf4 | ||
|
|
78dbac7702 | ||
|
|
faabc695b6 | ||
|
|
0530e90ea1 | ||
|
|
645ae8c57b | ||
|
|
3d07895518 | ||
|
|
a6e35e4f68 | ||
|
|
a132d44556 | ||
|
|
a345b6802d | ||
|
|
51efba43fd | ||
|
|
adabb63c18 | ||
|
|
f8b94cac0e | ||
|
|
c9177c92e5 | ||
|
|
81e57bd45e | ||
|
|
7bb58e23ea | ||
|
|
28a3a31b27 | ||
|
|
a40888d343 | ||
|
|
23f334dd13 | ||
|
|
c7e05e4e71 | ||
|
|
dff2ce5d2f | ||
|
|
1492bf7552 |
No files matched your search
@@ -38,13 +38,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
|
|
||||||
- name: Set BUILD_TIME env
|
- name: Set BUILD_TIME env
|
||||||
run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
|
run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
|
||||||
|
|
||||||
- name: Go Release Binaries Large Disk
|
- name: Go Release Binaries Large Disk
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
|
asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
|
||||||
|
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -87,13 +87,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
|
|
||||||
- name: Set BUILD_TIME env
|
- name: Set BUILD_TIME env
|
||||||
run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
|
run: echo BUILD_TIME=$(date -u +%Y%m%d-%H%M) >> ${GITHUB_ENV}
|
||||||
|
|
||||||
- name: Go Release Binaries Large Disk
|
- name: Go Release Binaries Large Disk
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -109,7 +109,7 @@ jobs:
|
|||||||
asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
|
asset_name: "weed-large-disk-${{ env.BUILD_TIME }}-${{ matrix.goos }}-${{ matrix.goarch }}"
|
||||||
|
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
|
|||||||
@@ -28,15 +28,15 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
- name: Go Release Binaries Normal Volume Size
|
- name: Go Release Binaries Normal Volume Size
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
goarch: ${{ matrix.goarch }}
|
goarch: ${{ matrix.goarch }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
build_flags: -tags elastic,ydb,gocdk,tikv
|
build_flags: -tags elastic,gocdk,sqlite,ydb,tikv,rclone
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
# build_flags: -tags 5BytesOffset # optional, default is
|
# build_flags: -tags 5BytesOffset # optional, default is
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
||||||
@@ -45,14 +45,14 @@ jobs:
|
|||||||
binary_name: weed
|
binary_name: weed
|
||||||
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_full"
|
asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}_full"
|
||||||
- name: Go Release Large Disk Binaries
|
- name: Go Release Large Disk Binaries
|
||||||
uses: wangyoucao577/go-release-action@2ac3035fa4c4feed6a8272ce278b0577b93cf8e5 # v1.22
|
uses: wangyoucao577/go-release-action@8fa1e8368c8465264d64e0198208e10f71474c87 # v1.22
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
goarch: ${{ matrix.goarch }}
|
goarch: ${{ matrix.goarch }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
|
||||||
build_flags: -tags 5BytesOffset,elastic,ydb,gocdk,tikv
|
build_flags: -tags 5BytesOffset,elastic,gocdk,sqlite,ydb,tikv,rclone
|
||||||
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
ldflags: -s -w -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
|
||||||
# Where to run `go build .`
|
# Where to run `go build .`
|
||||||
project_path: weed
|
project_path: weed
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
uses: github/codeql-action/init@v3
|
||||||
# Override language selection by uncommenting this and choosing your languages
|
# Override language selection by uncommenting this and choosing your languages
|
||||||
with:
|
with:
|
||||||
languages: go
|
languages: go
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
# If this step fails, then you should remove it and run the build manually (see below).
|
# If this step fails, then you should remove it and run the build manually (see below).
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v2
|
uses: github/codeql-action/autobuild@v3
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
||||||
@@ -44,4 +44,4 @@ jobs:
|
|||||||
# make release
|
# make release
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v2
|
uses: github/codeql-action/analyze@v3
|
||||||
@@ -16,11 +16,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -36,27 +36,27 @@ jobs:
|
|||||||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v1
|
||||||
with:
|
with:
|
||||||
buildkitd-flags: "--debug"
|
buildkitd-flags: "--debug"
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Login to GHCR
|
name: Login to GHCR
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ secrets.GHCR_USERNAME }}
|
username: ${{ secrets.GHCR_USERNAME }}
|
||||||
password: ${{ secrets.GHCR_TOKEN }}
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -37,27 +37,27 @@ jobs:
|
|||||||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v1
|
||||||
with:
|
with:
|
||||||
buildkitd-flags: "--debug"
|
buildkitd-flags: "--debug"
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Login to GHCR
|
name: Login to GHCR
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ secrets.GHCR_USERNAME }}
|
username: ${{ secrets.GHCR_USERNAME }}
|
||||||
password: ${{ secrets.GHCR_TOKEN }}
|
password: ${{ secrets.GHCR_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -37,17 +37,17 @@ jobs:
|
|||||||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v1
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -38,17 +38,17 @@ jobs:
|
|||||||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v1
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -38,17 +38,17 @@ jobs:
|
|||||||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v1
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -37,22 +37,22 @@ jobs:
|
|||||||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v1
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
file: ./docker/Dockerfile.go_build
|
file: ./docker/Dockerfile.go_build
|
||||||
build-args: TAGS=elastic,ydb,gocdk,tikv
|
build-args: TAGS=elastic,ydb,gocdk,tikv,rclone
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
@@ -16,11 +16,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: docker_meta
|
id: docker_meta
|
||||||
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v3
|
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
chrislusf/seaweedfs
|
chrislusf/seaweedfs
|
||||||
@@ -37,22 +37,22 @@ jobs:
|
|||||||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v1
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v1
|
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v1
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v1
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v2
|
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v2
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
file: ./docker/Dockerfile.go_build
|
file: ./docker/Dockerfile.go_build
|
||||||
build-args: TAGS=5BytesOffset,elastic,ydb,gocdk,tikv
|
build-args: TAGS=5BytesOffset,elastic,ydb,gocdk,tikv,rclone
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: ${{ steps.docker_meta.outputs.tags }}
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
labels: ${{ steps.docker_meta.outputs.labels }}
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
@@ -9,6 +9,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout Repository'
|
- name: 'Checkout Repository'
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
|
||||||
- name: 'Dependency Review'
|
- name: 'Dependency Review'
|
||||||
uses: actions/dependency-review-action@6c5ccdad469c9f8a2996bfecaec55a631a347034
|
uses: actions/dependency-review-action@0659a74c94536054bfa5aeb92241f70d680cc78e
|
||||||
@@ -24,13 +24,13 @@ jobs:
|
|||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.x
|
- name: Set up Go 1.x
|
||||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2
|
||||||
with:
|
with:
|
||||||
go-version: ^1.13
|
go-version: ^1.13
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -94,7 +94,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Archive logs
|
- name: Archive logs
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: output-logs
|
name: output-logs
|
||||||
path: docker/output.log
|
path: docker/output.log
|
||||||
|
|||||||
@@ -21,20 +21,20 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go 1.x
|
- name: Set up Go 1.x
|
||||||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v2
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v2
|
||||||
with:
|
with:
|
||||||
go-version: ^1.13
|
go-version: ^1.13
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v2
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v2
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: |
|
run: |
|
||||||
cd weed; go get -v -t -d ./...
|
cd weed; go get -v -t -d ./...
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd weed; go build -tags "elastic gocdk sqlite ydb tikv" -v .
|
run: cd weed; go build -tags "elastic gocdk sqlite ydb tikv rclone" -v .
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: cd weed; go test -tags "elastic gocdk sqlite ydb tikv" -v ./...
|
run: cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
name: "helm: publish charts"
|
name: "helm: publish charts"
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -12,7 +12,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
|
||||||
- name: Publish Helm charts
|
- name: Publish Helm charts
|
||||||
uses: stefanprodan/helm-gh-pages@master
|
uses: stefanprodan/helm-gh-pages@master
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -16,36 +16,36 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Helm
|
- name: Set up Helm
|
||||||
uses: azure/setup-helm@v3
|
uses: azure/setup-helm@v4
|
||||||
with:
|
with:
|
||||||
version: v3.10.0
|
version: v3.10.0
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Set up chart-testing
|
- name: Set up chart-testing
|
||||||
uses: helm/chart-testing-action@v2.4.0
|
uses: helm/chart-testing-action@v2.6.1
|
||||||
|
|
||||||
- name: Run chart-testing (list-changed)
|
- name: Run chart-testing (list-changed)
|
||||||
id: list-changed
|
id: list-changed
|
||||||
run: |
|
run: |
|
||||||
changed=$(ct list-changed --chart-dirs k8s/charts)
|
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --chart-dirs k8s/charts)
|
||||||
if [[ -n "$changed" ]]; then
|
if [[ -n "$changed" ]]; then
|
||||||
echo "::set-output name=changed::true"
|
echo "::set-output name=changed::true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run chart-testing (lint)
|
- name: Run chart-testing (lint)
|
||||||
run: ct lint --all --validate-maintainers=false --chart-dirs k8s/charts
|
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --all --validate-maintainers=false --chart-dirs k8s/charts
|
||||||
|
|
||||||
- name: Create kind cluster
|
- name: Create kind cluster
|
||||||
uses: helm/kind-action@v1.8.0
|
uses: helm/kind-action@v1.10.0
|
||||||
|
|
||||||
- name: Run chart-testing (install)
|
- name: Run chart-testing (install)
|
||||||
run: ct install --all --chart-dirs k8s/charts
|
run: ct install --target-branch ${{ github.event.repository.default_branch }} --all --chart-dirs k8s/charts
|
||||||
@@ -0,0 +1,200 @@
|
|||||||
|
name: "Ceph S3 tests"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.head_ref }}/s3tests
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: docker
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
s3tests:
|
||||||
|
name: Ceph S3 tests
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
container:
|
||||||
|
image: docker.io/kmlebedev/ceph-s3-tests:0.0.2
|
||||||
|
timeout-minutes: 30
|
||||||
|
steps:
|
||||||
|
- name: Check out code into the Go module directory
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Go 1.x
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: 'go.mod'
|
||||||
|
id: go
|
||||||
|
|
||||||
|
- name: Run Ceph S3 tests
|
||||||
|
timeout-minutes: 15
|
||||||
|
env:
|
||||||
|
S3TEST_CONF: /__w/seaweedfs/seaweedfs/docker/compose/s3tests.conf
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cd /__w/seaweedfs/seaweedfs/weed
|
||||||
|
go install -buildvcs=false
|
||||||
|
set -x
|
||||||
|
nohup weed -v 0 server -filer -filer.maxMB=64 -s3 -ip.bind 0.0.0.0 \
|
||||||
|
-master.raftHashicorp -master.electionTimeout 1s -master.volumeSizeLimitMB=1024 \
|
||||||
|
-volume.max=100 -volume.preStopSeconds=1 -s3.port=8000 -metricsPort=9324 \
|
||||||
|
-s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=true -s3.config=../docker/compose/s3.json &
|
||||||
|
sleep 10
|
||||||
|
cd /s3-tests
|
||||||
|
tox -- \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_empty \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_distinct \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_many \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_many \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_prefix \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_prefix_ends_with_delimiter \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_alt \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_prefix_underscore \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_percentage \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_whitespace \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_dot \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_unreadable \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_empty \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_none \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_delimiter_not_exist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_delimiter_basic \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_delimiter_basic \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_delimiter_alt \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_delimiter_alt \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_delimiter_prefix_not_exist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_delimiter_prefix_not_exist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_delimiter_delimiter_not_exist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_delimiter_delimiter_not_exist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_delimiter_prefix_delimiter_not_exist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_delimiter_prefix_delimiter_not_exist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_fetchowner_notempty \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_basic \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_basic \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_alt \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_alt \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_empty \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_empty \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_none \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_none \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_not_exist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_not_exist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_prefix_unreadable \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_prefix_unreadable \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_maxkeys_one \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_maxkeys_one \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_maxkeys_zero \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_maxkeys_zero \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_marker_none \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_marker_empty \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_continuationtoken \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_both_continuationtoken_startafter \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_marker_unreadable \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_startafter_unreadable \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_marker_not_in_list \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_startafter_not_in_list \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_marker_after_list \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_startafter_after_list \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_objects_anonymous_fail \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_objects_anonymous_fail \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_long_name \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_special_prefix \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_delete_notexist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_create_delete \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_read_not_exist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multi_object_delete \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multi_objectv2_delete \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_head_zero_bytes \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_write_check_etag \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_write_cache_control \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_write_expires \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_write_read_update_read_delete \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_metadata_replaced_on_put \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_write_file \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_invalid_date_format \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_no_key_specified \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_missing_signature \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_condition_is_case_sensitive \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_expires_is_case_sensitive \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_missing_expires_condition \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_missing_conditions_list \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_upload_size_limit_exceeded \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_missing_content_length_argument \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_invalid_content_length_argument \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_upload_size_below_minimum \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_post_object_empty_conditions \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_get_object_ifmatch_good \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_get_object_ifnonematch_good \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_get_object_ifmatch_failed \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_get_object_ifnonematch_failed \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_get_object_ifmodifiedsince_good \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_get_object_ifmodifiedsince_failed \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_get_object_ifunmodifiedsince_failed \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_head \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_head_notexist \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_raw_authenticated \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_raw_authenticated_bucket_acl \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_raw_authenticated_object_acl \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_raw_authenticated_object_gone \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_raw_get_x_amz_expires_out_range_zero \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_anon_put \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_put_authenticated \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_recreate_overwrite_acl \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_recreate_new_acl \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_buckets_create_then_list \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_buckets_list_ctime \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_list_buckets_invalid_auth \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_list_buckets_bad_auth \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_create_naming_good_contains_period \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_create_naming_good_contains_hyphen \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_bucket_list_special_prefix \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_copy_zero_size \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_copy_same_bucket \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_copy_to_itself \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_copy_diff_bucket \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_copy_canned_acl \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_copy_bucket_not_found \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_object_copy_key_not_found \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_copy_small \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_copy_without_range \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_copy_special_names \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_copy_multiple_sizes \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_get_part \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_upload \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_upload_empty \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_upload_multiple_sizes \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_upload_contents \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_upload_overwrite_existing_object \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_upload_size_too_small \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_resend_first_finishes_last \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_upload_resend_part \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_upload_missing_part \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_multipart_upload_incorrect_etag \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_abort_multipart_upload \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_list_multipart_upload \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_atomic_read_1mb \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_atomic_read_4mb \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_atomic_read_8mb \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_atomic_write_1mb \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_atomic_write_4mb \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_atomic_write_8mb \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_atomic_dual_write_1mb \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_atomic_dual_write_4mb \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_atomic_dual_write_8mb \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_atomic_multipart_upload_write \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_ranged_request_response_code \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_ranged_big_request_response_code \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_ranged_request_skip_leading_bytes_response_code \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_ranged_request_return_trailing_bytes_response_code \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_copy_object_ifmatch_good \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_copy_object_ifnonematch_failed \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_lifecycle_set \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_lifecycle_get \
|
||||||
|
s3tests_boto3/functional/test_s3.py::test_lifecycle_set_filter
|
||||||
+12
-1
@@ -87,4 +87,15 @@ other/java/hdfs/dependency-reduced-pom.xml
|
|||||||
|
|
||||||
# binary file
|
# binary file
|
||||||
weed/weed
|
weed/weed
|
||||||
weed/mq/client/cmd/weed_pub/weed_pub
|
weed/mq/client/cmd/weed_pub_kv/weed_pub
|
||||||
|
docker/weed
|
||||||
|
|
||||||
|
# test generated files
|
||||||
|
weed/*/*.jpg
|
||||||
|
docker/weed_sub
|
||||||
|
docker/weed_pub
|
||||||
|
weed/mq/schema/example.parquet
|
||||||
|
docker/weed_pub_kv
|
||||||
|
docker/weed_pub_record
|
||||||
|
docker/weed_sub_kv
|
||||||
|
docker/weed_sub_record
|
||||||
@@ -1,14 +1,35 @@
|
|||||||
BINARY = weed
|
BINARY = weed
|
||||||
|
|
||||||
SOURCE_DIR = .
|
SOURCE_DIR = .
|
||||||
|
debug ?= 0
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cd weed; go install
|
cd weed; go install
|
||||||
|
|
||||||
full_install:
|
warp_install:
|
||||||
cd weed; go install -tags "elastic gocdk sqlite ydb tikv"
|
go install github.com/minio/warp@v0.7.6
|
||||||
|
|
||||||
tests:
|
full_install:
|
||||||
cd weed; go test -tags "elastic gocdk sqlite ydb tikv" -v ./...
|
cd weed; go install -tags "elastic gocdk sqlite ydb tikv rclone"
|
||||||
|
|
||||||
|
server: install
|
||||||
|
weed -v 0 server -s3 -filer -filer.maxMB=64 -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=true -s3.config=./docker/compose/s3.json -metricsPort=9324
|
||||||
|
|
||||||
|
benchmark: install warp_install
|
||||||
|
pkill weed || true
|
||||||
|
pkill warp || true
|
||||||
|
weed server -debug=$(debug) -s3 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1 -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false -s3.config=./docker/compose/s3.json &
|
||||||
|
warp client &
|
||||||
|
while ! nc -z localhost 8000 ; do sleep 1 ; done
|
||||||
|
warp mixed --host=127.0.0.1:8000 --access-key=some_access_key1 --secret-key=some_secret_key1 --autoterm
|
||||||
|
pkill warp
|
||||||
|
pkill weed
|
||||||
|
|
||||||
|
# curl -o profile "http://127.0.0.1:6060/debug/pprof/profile?debug=1"
|
||||||
|
benchmark_with_pprof: debug = 1
|
||||||
|
benchmark_with_pprof: benchmark
|
||||||
|
|
||||||
|
test:
|
||||||
|
cd weed; go test -tags "elastic gocdk sqlite ydb tikv rclone" -v ./...
|
||||||
@@ -374,7 +374,7 @@ Each individual file size is limited to the volume size.
|
|||||||
|
|
||||||
### Saving memory ###
|
### Saving memory ###
|
||||||
|
|
||||||
All file meta information stored on an volume server is readable from memory without disk access. Each file takes just a 16-byte map entry of <64bit key, 32bit offset, 32bit size>. Of course, each map entry has its own space cost for the map. But usually the disk space runs out before the memory does.
|
All file meta information stored on a volume server is readable from memory without disk access. Each file takes just a 16-byte map entry of <64bit key, 32bit offset, 32bit size>. Of course, each map entry has its own space cost for the map. But usually the disk space runs out before the memory does.
|
||||||
|
|
||||||
### Tiered Storage to the cloud ###
|
### Tiered Storage to the cloud ###
|
||||||
|
|
||||||
@@ -582,6 +582,71 @@ Percentage of the requests served within a certain time (ms)
|
|||||||
100% 54.1 ms
|
100% 54.1 ms
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Run WARP and launch a mixed benchmark. ###
|
||||||
|
|
||||||
|
```
|
||||||
|
make benchmark
|
||||||
|
warp: Benchmark data written to "warp-mixed-2023-10-16[102354]-l70a.csv.zst"
|
||||||
|
Mixed operations.
|
||||||
|
Operation: DELETE, 10%, Concurrency: 20, Ran 4m59s.
|
||||||
|
* Throughput: 6.19 obj/s
|
||||||
|
|
||||||
|
Operation: GET, 45%, Concurrency: 20, Ran 5m0s.
|
||||||
|
* Throughput: 279.85 MiB/s, 27.99 obj/s
|
||||||
|
|
||||||
|
Operation: PUT, 15%, Concurrency: 20, Ran 5m0s.
|
||||||
|
* Throughput: 89.86 MiB/s, 8.99 obj/s
|
||||||
|
|
||||||
|
Operation: STAT, 30%, Concurrency: 20, Ran 5m0s.
|
||||||
|
* Throughput: 18.63 obj/s
|
||||||
|
|
||||||
|
Cluster Total: 369.74 MiB/s, 61.79 obj/s, 0 errors over 5m0s.
|
||||||
|
```
|
||||||
|
|
||||||
|
To see segmented request statistics, use the --analyze.v parameter.
|
||||||
|
```
|
||||||
|
warp analyze --analyze.v warp-mixed-2023-10-16[102354]-l70a.csv.zst
|
||||||
|
18642 operations loaded... Done!
|
||||||
|
Mixed operations.
|
||||||
|
----------------------------------------
|
||||||
|
Operation: DELETE - total: 1854, 10.0%, Concurrency: 20, Ran 5m0s, starting 2023-10-16 10:23:57.115 +0500 +05
|
||||||
|
* Throughput: 6.19 obj/s
|
||||||
|
|
||||||
|
Requests considered: 1855:
|
||||||
|
* Avg: 104ms, 50%: 30ms, 90%: 207ms, 99%: 1.355s, Fastest: 1ms, Slowest: 4.613s, StdDev: 320ms
|
||||||
|
|
||||||
|
----------------------------------------
|
||||||
|
Operation: GET - total: 8388, 45.3%, Size: 10485760 bytes. Concurrency: 20, Ran 5m0s, starting 2023-10-16 10:23:57.12 +0500 +05
|
||||||
|
* Throughput: 279.77 MiB/s, 27.98 obj/s
|
||||||
|
|
||||||
|
Requests considered: 8389:
|
||||||
|
* Avg: 221ms, 50%: 106ms, 90%: 492ms, 99%: 1.739s, Fastest: 8ms, Slowest: 8.633s, StdDev: 383ms
|
||||||
|
* TTFB: Avg: 81ms, Best: 2ms, 25th: 24ms, Median: 39ms, 75th: 65ms, 90th: 171ms, 99th: 669ms, Worst: 4.783s StdDev: 163ms
|
||||||
|
* First Access: Avg: 240ms, 50%: 105ms, 90%: 511ms, 99%: 2.08s, Fastest: 12ms, Slowest: 8.633s, StdDev: 480ms
|
||||||
|
* First Access TTFB: Avg: 88ms, Best: 2ms, 25th: 24ms, Median: 38ms, 75th: 64ms, 90th: 179ms, 99th: 919ms, Worst: 4.783s StdDev: 199ms
|
||||||
|
* Last Access: Avg: 219ms, 50%: 106ms, 90%: 463ms, 99%: 1.782s, Fastest: 9ms, Slowest: 8.633s, StdDev: 416ms
|
||||||
|
* Last Access TTFB: Avg: 81ms, Best: 2ms, 25th: 24ms, Median: 39ms, 75th: 65ms, 90th: 161ms, 99th: 657ms, Worst: 4.783s StdDev: 176ms
|
||||||
|
|
||||||
|
----------------------------------------
|
||||||
|
Operation: PUT - total: 2688, 14.5%, Size: 10485760 bytes. Concurrency: 20, Ran 5m0s, starting 2023-10-16 10:23:57.115 +0500 +05
|
||||||
|
* Throughput: 89.83 MiB/s, 8.98 obj/s
|
||||||
|
|
||||||
|
Requests considered: 2689:
|
||||||
|
* Avg: 1.165s, 50%: 878ms, 90%: 2.015s, 99%: 5.74s, Fastest: 99ms, Slowest: 8.264s, StdDev: 968ms
|
||||||
|
|
||||||
|
----------------------------------------
|
||||||
|
Operation: STAT - total: 5586, 30.2%, Concurrency: 20, Ran 5m0s, starting 2023-10-16 10:23:57.113 +0500 +05
|
||||||
|
* Throughput: 18.63 obj/s
|
||||||
|
|
||||||
|
Requests considered: 5587:
|
||||||
|
* Avg: 15ms, 50%: 11ms, 90%: 34ms, 99%: 80ms, Fastest: 0s, Slowest: 245ms, StdDev: 17ms
|
||||||
|
* First Access: Avg: 14ms, 50%: 10ms, 90%: 33ms, 99%: 69ms, Fastest: 0s, Slowest: 203ms, StdDev: 16ms
|
||||||
|
* Last Access: Avg: 15ms, 50%: 11ms, 90%: 34ms, 99%: 74ms, Fastest: 0s, Slowest: 203ms, StdDev: 17ms
|
||||||
|
|
||||||
|
Cluster Total: 369.64 MiB/s, 61.77 obj/s, 0 errors over 5m0s.
|
||||||
|
Total Errors:0.
|
||||||
|
```
|
||||||
|
|
||||||
[Back to TOC](#table-of-contents)
|
[Back to TOC](#table-of-contents)
|
||||||
|
|
||||||
## License ##
|
## License ##
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
FROM gcc:11 as builder
|
|
||||||
RUN mkdir -p /go/src/github.com/seaweedfs/
|
|
||||||
RUN git clone https://github.com/seaweedfs/seaweedfs /go/src/github.com/seaweedfs/seaweedfs
|
|
||||||
ARG BRANCH=${BRANCH:-master}
|
|
||||||
RUN cd /go/src/github.com/seaweedfs/seaweedfs && git checkout $BRANCH
|
|
||||||
RUN cd /go/src/github.com/seaweedfs/seaweedfs/weed \
|
|
||||||
&& apt-get update \
|
|
||||||
&& apt-get install -y golang-src \
|
|
||||||
&& export LDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(git rev-parse --short HEAD)" \
|
|
||||||
&& CGO_ENABLED=0 go install -ldflags "-extldflags -static ${LDFLAGS}" -compiler=gccgo -tags gccgo,noasm
|
|
||||||
|
|
||||||
FROM alpine AS final
|
|
||||||
LABEL author="Chris Lu"
|
|
||||||
COPY --from=builder /go/bin/weed /usr/bin/
|
|
||||||
RUN mkdir -p /etc/seaweedfs
|
|
||||||
COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/filer.toml /etc/seaweedfs/filer.toml
|
|
||||||
COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/entrypoint.sh /entrypoint.sh
|
|
||||||
RUN apk add fuse # for weed mount
|
|
||||||
|
|
||||||
# volume server gprc port
|
|
||||||
EXPOSE 18080
|
|
||||||
# volume server http port
|
|
||||||
EXPOSE 8080
|
|
||||||
# filer server gprc port
|
|
||||||
EXPOSE 18888
|
|
||||||
# filer server http port
|
|
||||||
EXPOSE 8888
|
|
||||||
# master server shared gprc port
|
|
||||||
EXPOSE 19333
|
|
||||||
# master server shared http port
|
|
||||||
EXPOSE 9333
|
|
||||||
# s3 server http port
|
|
||||||
EXPOSE 8333
|
|
||||||
# webdav server http port
|
|
||||||
EXPOSE 7333
|
|
||||||
|
|
||||||
RUN mkdir -p /data/filerldb2
|
|
||||||
|
|
||||||
VOLUME /data
|
|
||||||
WORKDIR /data
|
|
||||||
|
|
||||||
RUN chmod +x /entrypoint.sh
|
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.20-alpine as builder
|
FROM golang:1.22-alpine as builder
|
||||||
RUN apk add git g++ fuse
|
RUN apk add git g++ fuse
|
||||||
RUN mkdir -p /go/src/github.com/seaweedfs/
|
RUN mkdir -p /go/src/github.com/seaweedfs/
|
||||||
RUN git clone https://github.com/seaweedfs/seaweedfs /go/src/github.com/seaweedfs/seaweedfs
|
RUN git clone https://github.com/seaweedfs/seaweedfs /go/src/github.com/seaweedfs/seaweedfs
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
FROM alpine AS final
|
FROM alpine AS final
|
||||||
LABEL author="Chris Lu"
|
LABEL author="Chris Lu"
|
||||||
COPY ./weed /usr/bin/
|
COPY ./weed /usr/bin/
|
||||||
|
COPY ./weed_pub* /usr/bin/
|
||||||
|
COPY ./weed_sub* /usr/bin/
|
||||||
RUN mkdir -p /etc/seaweedfs
|
RUN mkdir -p /etc/seaweedfs
|
||||||
COPY ./filer.toml /etc/seaweedfs/filer.toml
|
COPY ./filer.toml /etc/seaweedfs/filer.toml
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
FROM golang:1.20-buster as builder
|
FROM golang:1.22 as builder
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
|
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
|
||||||
|
|
||||||
ENV ROCKSDB_VERSION v8.1.1
|
ENV ROCKSDB_VERSION v8.10.0
|
||||||
|
|
||||||
# build RocksDB
|
# build RocksDB
|
||||||
RUN cd /tmp && \
|
RUN cd /tmp && \
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
FROM golang:1.20-buster as builder
|
FROM golang:1.22 as builder
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
|
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
|
||||||
|
|
||||||
ENV ROCKSDB_VERSION v8.1.1
|
ENV ROCKSDB_VERSION v8.10.0
|
||||||
|
|
||||||
# build RocksDB
|
# build RocksDB
|
||||||
RUN cd /tmp && \
|
RUN cd /tmp && \
|
||||||
|
|||||||
+16
-6
@@ -9,6 +9,10 @@ binary:
|
|||||||
export SWCOMMIT=$(shell git rev-parse --short HEAD)
|
export SWCOMMIT=$(shell git rev-parse --short HEAD)
|
||||||
export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(SWCOMMIT)"
|
export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(SWCOMMIT)"
|
||||||
cd ../weed && CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-s -w -extldflags -static $(SWLDFLAGS)" && mv weed ../docker/
|
cd ../weed && CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-s -w -extldflags -static $(SWLDFLAGS)" && mv weed ../docker/
|
||||||
|
cd ../weed/mq/client/cmd/weed_pub_kv && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_pub_kv ../../../../../docker/
|
||||||
|
cd ../weed/mq/client/cmd/weed_pub_record && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_pub_record ../../../../../docker/
|
||||||
|
cd ../weed/mq/client/cmd/weed_sub_kv && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_sub_kv ../../../../../docker/
|
||||||
|
cd ../weed/mq/client/cmd/weed_sub_record && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_sub_record ../../../../../docker/
|
||||||
|
|
||||||
binary_race: options = -race
|
binary_race: options = -race
|
||||||
binary_race: cgo = 1
|
binary_race: cgo = 1
|
||||||
@@ -81,12 +85,18 @@ cluster: build
|
|||||||
2mount: build
|
2mount: build
|
||||||
docker compose -f compose/local-sync-mount-compose.yml -p seaweedfs up
|
docker compose -f compose/local-sync-mount-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
|
filer_backup: build
|
||||||
|
docker compose -f compose/local-filer-backup-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
hashicorp_raft: build
|
hashicorp_raft: build
|
||||||
docker compose -f compose/local-hashicorp-raft-compose.yml -p seaweedfs up
|
docker compose -f compose/local-hashicorp-raft-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
s3tests: build s3tests_build
|
s3tests: build s3tests_build
|
||||||
docker compose -f compose/local-s3tests-compose.yml -p seaweedfs up
|
docker compose -f compose/local-s3tests-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
|
brokers: build
|
||||||
|
docker compose -f compose/local-brokers-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
filer_etcd: build
|
filer_etcd: build
|
||||||
docker stack deploy -c compose/swarm-etcd.yml fs
|
docker stack deploy -c compose/swarm-etcd.yml fs
|
||||||
|
|
||||||
@@ -102,12 +112,12 @@ clean:
|
|||||||
rm ./weed
|
rm ./weed
|
||||||
|
|
||||||
certstrap:
|
certstrap:
|
||||||
go get github.com/square/certstrap
|
go install -v github.com/square/certstrap@latest
|
||||||
certstrap --depot-path compose/tls init --passphrase "" --common-name "SeaweedFS CA" || true
|
certstrap --depot-path compose/tls init --curve P-256 --passphrase "" --common-name "SeaweedFS CA" || true
|
||||||
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name volume01.dev || true
|
certstrap --depot-path compose/tls request-cert --ou "SeaweedFS" --curve P-256 --passphrase "" --domain localhost --common-name volume01.dev || true
|
||||||
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name master01.dev || true
|
certstrap --depot-path compose/tls request-cert --ou "SeaweedFS" --curve P-256 --passphrase "" --common-name master01.dev || true
|
||||||
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name filer01.dev || true
|
certstrap --depot-path compose/tls request-cert --ou "SeaweedFS" --curve P-256 --passphrase "" --common-name filer01.dev || true
|
||||||
certstrap --depot-path compose/tls request-cert --passphrase "" --common-name client01.dev || true
|
certstrap --depot-path compose/tls request-cert --ou "SeaweedFS" --curve P-256 --passphrase "" --common-name client01.dev || true
|
||||||
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" volume01.dev || true
|
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" volume01.dev || true
|
||||||
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" master01.dev || true
|
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" master01.dev || true
|
||||||
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" filer01.dev || true
|
certstrap --depot-path compose/tls sign --CA "SeaweedFS CA" filer01.dev || true
|
||||||
|
|||||||
@@ -0,0 +1,127 @@
|
|||||||
|
version: '3.9'
|
||||||
|
|
||||||
|
services:
|
||||||
|
master0:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 9333:9333
|
||||||
|
- 19333:19333
|
||||||
|
command: "-v=0 master -volumeSizeLimitMB 100 -resumeState=false -ip=master0 -port=9333 -peers=master0:9333,master1:9334,master2:9335 -mdir=/tmp"
|
||||||
|
environment:
|
||||||
|
WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
|
||||||
|
WEED_MASTER_VOLUME_GROWTH_COPY_2: 2
|
||||||
|
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
|
||||||
|
master1:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 9334:9334
|
||||||
|
- 19334:19334
|
||||||
|
command: "-v=0 master -volumeSizeLimitMB 100 -resumeState=false -ip=master1 -port=9334 -peers=master0:9333,master1:9334,master2:9335 -mdir=/tmp"
|
||||||
|
environment:
|
||||||
|
WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
|
||||||
|
WEED_MASTER_VOLUME_GROWTH_COPY_2: 2
|
||||||
|
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
|
||||||
|
master2:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 9335:9335
|
||||||
|
- 19335:19335
|
||||||
|
command: "-v=0 master -volumeSizeLimitMB 100 -resumeState=false -ip=master2 -port=9335 -peers=master0:9333,master1:9334,master2:9335 -mdir=/tmp"
|
||||||
|
environment:
|
||||||
|
WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
|
||||||
|
WEED_MASTER_VOLUME_GROWTH_COPY_2: 2
|
||||||
|
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
|
||||||
|
volume1:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
- 18080:18080
|
||||||
|
command: 'volume -dataCenter=dc1 -rack=v1 -mserver="master0:9333,master1:9334,master2:9335" -port=8080 -ip=volume1 -publicUrl=localhost:8080 -preStopSeconds=1'
|
||||||
|
depends_on:
|
||||||
|
- master0
|
||||||
|
- master1
|
||||||
|
- master2
|
||||||
|
volume2:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 8082:8082
|
||||||
|
- 18082:18082
|
||||||
|
command: 'volume -dataCenter=dc2 -rack=v2 -mserver="master0:9333,master1:9334,master2:9335" -port=8082 -ip=volume2 -publicUrl=localhost:8082 -preStopSeconds=1'
|
||||||
|
depends_on:
|
||||||
|
- master0
|
||||||
|
- master1
|
||||||
|
- master2
|
||||||
|
volume3:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 8083:8083
|
||||||
|
- 18083:18083
|
||||||
|
command: 'volume -dataCenter=dc3 -rack=v3 -mserver="master0:9333,master1:9334,master2:9335" -port=8083 -ip=volume3 -publicUrl=localhost:8083 -preStopSeconds=1'
|
||||||
|
depends_on:
|
||||||
|
- master0
|
||||||
|
- master1
|
||||||
|
- master2
|
||||||
|
filer1:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 8888:8888
|
||||||
|
- 18888:18888
|
||||||
|
command: 'filer -defaultReplicaPlacement=100 -iam -master="master0:9333,master1:9334,master2:9335" -port=8888 -ip=filer1'
|
||||||
|
depends_on:
|
||||||
|
- master0
|
||||||
|
- master1
|
||||||
|
- master2
|
||||||
|
- volume1
|
||||||
|
- volume2
|
||||||
|
filer2:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 8889:8889
|
||||||
|
- 18889:18889
|
||||||
|
command: 'filer -defaultReplicaPlacement=100 -iam -master="master0:9333,master1:9334,master2:9335" -port=8889 -ip=filer2'
|
||||||
|
depends_on:
|
||||||
|
- master0
|
||||||
|
- master1
|
||||||
|
- master2
|
||||||
|
- volume1
|
||||||
|
- volume2
|
||||||
|
- filer1
|
||||||
|
broker1:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 17777:17777
|
||||||
|
command: 'mq.broker -master="master0:9333,master1:9334,master2:9335" -port=17777 -ip=broker1'
|
||||||
|
depends_on:
|
||||||
|
- master0
|
||||||
|
- master1
|
||||||
|
- master2
|
||||||
|
- volume1
|
||||||
|
- volume2
|
||||||
|
- filer1
|
||||||
|
- filer2
|
||||||
|
broker2:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 17778:17778
|
||||||
|
command: 'mq.broker -master="master0:9333,master1:9334,master2:9335" -port=17778 -ip=broker2'
|
||||||
|
depends_on:
|
||||||
|
- master0
|
||||||
|
- master1
|
||||||
|
- master2
|
||||||
|
- volume1
|
||||||
|
- volume2
|
||||||
|
- filer1
|
||||||
|
- filer2
|
||||||
|
broker3:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 17779:17779
|
||||||
|
command: 'mq.broker -master="master0:9333,master1:9334,master2:9335" -port=17779 -ip=broker3'
|
||||||
|
depends_on:
|
||||||
|
- master0
|
||||||
|
- master1
|
||||||
|
- master2
|
||||||
|
- volume1
|
||||||
|
- volume2
|
||||||
|
- filer1
|
||||||
|
- filer2
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
version: '3.9'
|
||||||
|
|
||||||
|
services:
|
||||||
|
server-left:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
command: "-v=0 server -ip=server-left -filer -filer.maxMB 5 -s3 -s3.config=/etc/seaweedfs/s3.json -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1"
|
||||||
|
volumes:
|
||||||
|
- ./s3.json:/etc/seaweedfs/s3.json
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ]
|
||||||
|
interval: 3s
|
||||||
|
start_period: 15s
|
||||||
|
timeout: 30s
|
||||||
|
server-right:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
command: "-v=0 server -ip=server-right -filer -filer.maxMB 64 -s3 -s3.config=/etc/seaweedfs/s3.json -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1"
|
||||||
|
volumes:
|
||||||
|
- ./s3.json:/etc/seaweedfs/s3.json
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ]
|
||||||
|
interval: 3s
|
||||||
|
start_period: 15s
|
||||||
|
timeout: 30s
|
||||||
|
filer-backup:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
command: "-v=0 filer.backup -debug -doDeleteFiles=False -filer server-left:8888"
|
||||||
|
volumes:
|
||||||
|
- ./replication.toml:/etc/seaweedfs/replication.toml
|
||||||
|
environment:
|
||||||
|
WEED_SINK_LOCAL_INCREMENTAL_ENABLED: "false"
|
||||||
|
WEED_SINK_S3_ENABLED: "true"
|
||||||
|
WEED_SINK_S3_BUCKET: "backup"
|
||||||
|
WEED_SINK_S3_ENDPOINT: "http://server-right:8333"
|
||||||
|
WEED_SINK_S3_DIRECTORY: "/"
|
||||||
|
WEED_SINK_S3_AWS_ACCESS_KEY_ID: "some_access_key1"
|
||||||
|
WEED_SINK_S3_AWS_SECRET_ACCESS_KEY: "some_secret_key1"
|
||||||
|
WEED_SINK_S3_S3_DISABLE_CONTENT_MD5_VALIDATION: "false"
|
||||||
|
WEED_SINK_S3_UPLOADER_PART_SIZE_MB: "5"
|
||||||
|
WEED_SINK_S3_KEEP_PART_SIZE: "false"
|
||||||
|
depends_on:
|
||||||
|
server-left:
|
||||||
|
condition: service_healthy
|
||||||
|
server-right:
|
||||||
|
condition: service_healthy
|
||||||
|
minio-warp:
|
||||||
|
image: minio/warp
|
||||||
|
command: 'mixed --duration 5s --obj.size=6mb --md5 --objects 10 --concurrent 2'
|
||||||
|
restart: on-failure
|
||||||
|
environment:
|
||||||
|
WARP_HOST: "server-left:8333"
|
||||||
|
WARP_ACCESS_KEY: "some_access_key1"
|
||||||
|
WARP_SECRET_KEY: "some_secret_key1"
|
||||||
|
depends_on:
|
||||||
|
- filer-backup
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
version: '3.9'
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 9333:9333
|
||||||
|
- 19333:19333
|
||||||
|
- 8888:8888
|
||||||
|
- 18888:18888
|
||||||
|
command: "server -ip=server -filer -volume.max=0 -master.volumeSizeLimitMB=8 -volume.preStopSeconds=1"
|
||||||
|
healthcheck:
|
||||||
|
test: curl -f http://localhost:8888/healthz
|
||||||
|
mq_broker:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 17777:17777
|
||||||
|
command: "mq.broker -master=server:9333 -ip=mq_broker"
|
||||||
|
depends_on:
|
||||||
|
server:
|
||||||
|
condition: service_healthy
|
||||||
|
mq_client:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
# run a custom command instead of entrypoint
|
||||||
|
command: "ls -al"
|
||||||
|
depends_on:
|
||||||
|
- mq_broker
|
||||||
@@ -3,19 +3,54 @@ services:
|
|||||||
node1:
|
node1:
|
||||||
image: chrislusf/seaweedfs:local
|
image: chrislusf/seaweedfs:local
|
||||||
command: "server -master -volume -filer"
|
command: "server -master -volume -filer"
|
||||||
|
ports:
|
||||||
|
- 8888:8888
|
||||||
|
- 18888:18888
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ]
|
||||||
|
interval: 1s
|
||||||
|
start_period: 10s
|
||||||
|
timeout: 30s
|
||||||
mount1:
|
mount1:
|
||||||
image: chrislusf/seaweedfs:local
|
image: chrislusf/seaweedfs:local
|
||||||
privileged: true
|
privileged: true
|
||||||
command: "mount -filer=node1:8888 -dir=/mnt -dirAutoCreate"
|
command: "mount -filer=node1:8888 -dir=/mnt -dirAutoCreate"
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "curl", "--fail", "-I", "http://node1:8888/" ]
|
||||||
|
interval: 1s
|
||||||
|
start_period: 10s
|
||||||
|
timeout: 30s
|
||||||
|
depends_on:
|
||||||
|
node1:
|
||||||
|
condition: service_healthy
|
||||||
node2:
|
node2:
|
||||||
image: chrislusf/seaweedfs:local
|
image: chrislusf/seaweedfs:local
|
||||||
ports:
|
ports:
|
||||||
- 7888:8888
|
- 7888:8888
|
||||||
|
- 17888:18888
|
||||||
command: "server -master -volume -filer"
|
command: "server -master -volume -filer"
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "curl", "--fail", "-I", "http://localhost:9333/cluster/healthz" ]
|
||||||
|
interval: 1s
|
||||||
|
start_period: 10s
|
||||||
|
timeout: 30s
|
||||||
mount2:
|
mount2:
|
||||||
image: chrislusf/seaweedfs:local
|
image: chrislusf/seaweedfs:local
|
||||||
privileged: true
|
privileged: true
|
||||||
command: "mount -filer=node2:8888 -dir=/mnt -dirAutoCreate"
|
command: "mount -filer=node2:8888 -dir=/mnt -dirAutoCreate"
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "curl", "--fail", "-I", "http://node2:8888/" ]
|
||||||
|
interval: 1s
|
||||||
|
start_period: 10s
|
||||||
|
timeout: 30s
|
||||||
|
depends_on:
|
||||||
|
node2:
|
||||||
|
condition: service_healthy
|
||||||
sync:
|
sync:
|
||||||
image: chrislusf/seaweedfs:local
|
image: chrislusf/seaweedfs:local
|
||||||
command: "-v=4 filer.sync -a=node1:8888 -b=node2:8888 -a.debug -b.debug"
|
command: "-v=4 filer.sync -a=node1:8888 -b=node2:8888 -a.debug -b.debug"
|
||||||
|
depends_on:
|
||||||
|
mount1:
|
||||||
|
condition: service_healthy
|
||||||
|
mount2:
|
||||||
|
condition: service_healthy
|
||||||
+12
-2
@@ -40,7 +40,10 @@
|
|||||||
"List",
|
"List",
|
||||||
"Tagging",
|
"Tagging",
|
||||||
"Write"
|
"Write"
|
||||||
]
|
],
|
||||||
|
"account": {
|
||||||
|
"id": "testid"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "s3_tests_alt",
|
"name": "s3_tests_alt",
|
||||||
@@ -101,5 +104,12 @@
|
|||||||
"Write"
|
"Write"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"accounts": [
|
||||||
|
{
|
||||||
|
"id" : "testid",
|
||||||
|
"displayName": "M. Tester",
|
||||||
|
"emailAddress": "tester@ceph.com"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
## this section is just used for host, port and bucket_prefix
|
## this section is just used for host, port and bucket_prefix
|
||||||
|
|
||||||
# host set for rgw in vstart.sh
|
# host set for rgw in vstart.sh
|
||||||
host = s3
|
host = 127.0.0.1
|
||||||
|
|
||||||
# port set for rgw in vstart.sh
|
# port set for rgw in vstart.sh
|
||||||
port = 8000
|
port = 8000
|
||||||
@@ -18,10 +18,10 @@ bucket prefix = yournamehere-{random}-
|
|||||||
|
|
||||||
[s3 main]
|
[s3 main]
|
||||||
# main display_name set in vstart.sh
|
# main display_name set in vstart.sh
|
||||||
display_name = s3_tests
|
display_name = M. Tester
|
||||||
|
|
||||||
# main user_idname set in vstart.sh
|
# main user_idname set in vstart.sh
|
||||||
user_id = s3_tests
|
user_id = testid
|
||||||
|
|
||||||
# main email set in vstart.sh
|
# main email set in vstart.sh
|
||||||
email = tester@ceph.com
|
email = tester@ceph.com
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
WEED_LEVELDB2_ENABLED: 'false'
|
WEED_LEVELDB2_ENABLED: 'false'
|
||||||
WEED_ETCD_ENABLED: 'true'
|
WEED_ETCD_ENABLED: 'true'
|
||||||
|
WEED_ETCD_KEY_PREFIX: 'seaweedfs.'
|
||||||
WEED_ETCD_SERVERS: "http://etcd:2379"
|
WEED_ETCD_SERVERS: "http://etcd:2379"
|
||||||
volumes:
|
volumes:
|
||||||
- ./s3.json:/etc/seaweedfs/s3.json
|
- ./s3.json:/etc/seaweedfs/s3.json
|
||||||
|
|||||||
@@ -12,5 +12,9 @@ WEED_GRPC_MASTER_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,clie
|
|||||||
WEED_GRPC_VOLUME_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
WEED_GRPC_VOLUME_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
||||||
WEED_GRPC_FILER_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
WEED_GRPC_FILER_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
||||||
WEED_GRPC_CLIENT_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
WEED_GRPC_CLIENT_ALLOWED_COMMONNAMES="volume01.dev,master01.dev,filer01.dev,client01.dev"
|
||||||
|
WEED_HTTPS_CLIENT_ENABLE=true
|
||||||
|
WEED_HTTPS_VOLUME_CERT=/etc/seaweedfs/tls/volume01.dev.crt
|
||||||
|
WEED_HTTPS_VOLUME_KEY=/etc/seaweedfs/tls/volume01.dev.key
|
||||||
|
WEED_HTTPS_VOLUME_CA=/etc/seaweedfs/tls/SeaweedFS_CA.crt
|
||||||
#GRPC_GO_LOG_SEVERITY_LEVEL=info
|
#GRPC_GO_LOG_SEVERITY_LEVEL=info
|
||||||
#GRPC_GO_LOG_VERBOSITY_LEVEL=2
|
#GRPC_GO_LOG_VERBOSITY_LEVEL=2
|
||||||
@@ -1,24 +1,23 @@
|
|||||||
module github.com/seaweedfs/seaweedfs
|
module github.com/seaweedfs/seaweedfs
|
||||||
|
|
||||||
go 1.20
|
go 1.22.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go v0.110.7 // indirect
|
cloud.google.com/go v0.113.0 // indirect
|
||||||
cloud.google.com/go/pubsub v1.33.0
|
cloud.google.com/go/pubsub v1.38.0
|
||||||
cloud.google.com/go/storage v1.32.0
|
cloud.google.com/go/storage v1.41.0
|
||||||
github.com/Azure/azure-pipeline-go v0.2.3
|
github.com/Azure/azure-pipeline-go v0.2.3
|
||||||
github.com/Azure/azure-storage-blob-go v0.15.0
|
github.com/Azure/azure-storage-blob-go v0.15.0
|
||||||
github.com/Shopify/sarama v1.38.1
|
github.com/Shopify/sarama v1.38.1
|
||||||
github.com/aws/aws-sdk-go v1.44.314
|
github.com/aws/aws-sdk-go v1.53.5
|
||||||
github.com/beorn7/perks v1.0.1 // indirect
|
github.com/beorn7/perks v1.0.1 // indirect
|
||||||
github.com/bwmarrin/snowflake v0.3.0
|
github.com/bwmarrin/snowflake v0.3.0
|
||||||
github.com/cenkalti/backoff/v4 v4.2.1
|
github.com/cenkalti/backoff/v4 v4.3.0
|
||||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||||
github.com/coreos/go-semver v0.3.1 // indirect
|
github.com/coreos/go-semver v0.3.1 // indirect
|
||||||
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
|
||||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
||||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
||||||
github.com/disintegration/imaging v1.6.2
|
|
||||||
github.com/dustin/go-humanize v1.0.1
|
github.com/dustin/go-humanize v1.0.1
|
||||||
github.com/eapache/go-resiliency v1.3.0 // indirect
|
github.com/eapache/go-resiliency v1.3.0 // indirect
|
||||||
github.com/eapache/go-xerial-snappy v0.0.0-20230111030713-bf00bc1b83b6 // indirect
|
github.com/eapache/go-xerial-snappy v0.0.0-20230111030713-bf00bc1b83b6 // indirect
|
||||||
@@ -28,24 +27,21 @@ require (
|
|||||||
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
|
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
|
||||||
github.com/facebookgo/stats v0.0.0-20151006221625-1b76add642e4
|
github.com/facebookgo/stats v0.0.0-20151006221625-1b76add642e4
|
||||||
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect
|
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect
|
||||||
github.com/fclairamb/ftpserverlib v0.22.0
|
github.com/fclairamb/ftpserverlib v0.24.0
|
||||||
github.com/fsnotify/fsnotify v1.6.0 // indirect
|
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
||||||
github.com/go-errors/errors v1.1.1 // indirect
|
|
||||||
github.com/go-redis/redis/v8 v8.11.5
|
github.com/go-redis/redis/v8 v8.11.5
|
||||||
github.com/go-redsync/redsync/v4 v4.8.2
|
github.com/go-redsync/redsync/v4 v4.13.0
|
||||||
github.com/go-sql-driver/mysql v1.7.1
|
github.com/go-sql-driver/mysql v1.8.1
|
||||||
github.com/go-zookeeper/zk v1.0.3 // indirect
|
github.com/go-zookeeper/zk v1.0.3 // indirect
|
||||||
github.com/gocql/gocql v1.6.0
|
github.com/gocql/gocql v1.6.0
|
||||||
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
|
|
||||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||||
github.com/golang/protobuf v1.5.3
|
github.com/golang/protobuf v1.5.4
|
||||||
github.com/golang/snappy v0.0.4 // indirect
|
github.com/golang/snappy v0.0.4 // indirect
|
||||||
github.com/google/btree v1.1.2
|
github.com/google/btree v1.1.2
|
||||||
github.com/google/go-cmp v0.5.9 // indirect
|
github.com/google/uuid v1.6.0
|
||||||
github.com/google/uuid v1.3.1
|
github.com/google/wire v0.6.0 // indirect
|
||||||
github.com/google/wire v0.5.0 // indirect
|
github.com/googleapis/gax-go/v2 v2.12.4 // indirect
|
||||||
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
|
github.com/gorilla/mux v1.8.1
|
||||||
github.com/gorilla/mux v1.8.0
|
|
||||||
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
|
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
|
||||||
github.com/hashicorp/errwrap v1.1.0 // indirect
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
||||||
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
||||||
@@ -57,264 +53,293 @@ require (
|
|||||||
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
||||||
github.com/json-iterator/go v1.1.12
|
github.com/json-iterator/go v1.1.12
|
||||||
github.com/karlseguin/ccache/v2 v2.0.8
|
github.com/karlseguin/ccache/v2 v2.0.8
|
||||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
github.com/klauspost/compress v1.17.8 // indirect
|
||||||
github.com/klauspost/compress v1.16.7 // indirect
|
github.com/klauspost/reedsolomon v1.12.1
|
||||||
github.com/klauspost/reedsolomon v1.11.8
|
|
||||||
github.com/kurin/blazer v0.5.3
|
github.com/kurin/blazer v0.5.3
|
||||||
github.com/lib/pq v1.10.9
|
github.com/lib/pq v1.10.9
|
||||||
github.com/linxGnu/grocksdb v1.8.0
|
github.com/linxGnu/grocksdb v1.8.14
|
||||||
github.com/magiconair/properties v1.8.7 // indirect
|
github.com/magiconair/properties v1.8.7 // indirect
|
||||||
github.com/mailru/easyjson v0.7.7 // indirect
|
github.com/mailru/easyjson v0.7.7 // indirect
|
||||||
github.com/mattn/go-ieproxy v0.0.11 // indirect
|
github.com/mattn/go-ieproxy v0.0.11 // indirect
|
||||||
github.com/mattn/go-isatty v0.0.17 // indirect
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||||
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
|
|
||||||
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
github.com/mitchellh/mapstructure v1.5.0 // indirect
|
||||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||||
github.com/olivere/elastic/v7 v7.0.32
|
github.com/olivere/elastic/v7 v7.0.32
|
||||||
github.com/peterh/liner v1.2.2
|
github.com/peterh/liner v1.2.2
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
||||||
github.com/posener/complete v1.2.3
|
github.com/posener/complete v1.2.3
|
||||||
github.com/pquerna/cachecontrol v0.2.0
|
github.com/pquerna/cachecontrol v0.2.0
|
||||||
github.com/prometheus/client_golang v1.16.0
|
github.com/prometheus/client_golang v1.19.0
|
||||||
github.com/prometheus/client_model v0.3.0 // indirect
|
github.com/prometheus/client_model v0.5.0 // indirect
|
||||||
github.com/prometheus/common v0.42.0 // indirect
|
github.com/prometheus/common v0.48.0 // indirect
|
||||||
github.com/prometheus/procfs v0.11.1
|
github.com/prometheus/procfs v0.15.0
|
||||||
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
|
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
|
||||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||||
github.com/seaweedfs/goexif v1.0.3
|
github.com/seaweedfs/goexif v1.0.3
|
||||||
github.com/seaweedfs/raft v1.1.3
|
github.com/seaweedfs/raft v1.1.3
|
||||||
github.com/sirupsen/logrus v1.9.0 // indirect
|
github.com/sirupsen/logrus v1.9.3 // indirect
|
||||||
github.com/spf13/afero v1.9.5 // indirect
|
github.com/spf13/afero v1.11.0 // indirect
|
||||||
github.com/spf13/cast v1.5.1 // indirect
|
github.com/spf13/cast v1.6.0 // indirect
|
||||||
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
github.com/spf13/viper v1.18.2
|
||||||
github.com/spf13/viper v1.16.0
|
github.com/stretchr/testify v1.9.0
|
||||||
github.com/stretchr/testify v1.8.4
|
|
||||||
github.com/stvp/tempredis v0.0.0-20181119212430-b82af8480203
|
github.com/stvp/tempredis v0.0.0-20181119212430-b82af8480203
|
||||||
github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965
|
github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965
|
||||||
github.com/tidwall/gjson v1.16.0
|
github.com/tidwall/gjson v1.17.1
|
||||||
github.com/tidwall/match v1.1.1
|
github.com/tidwall/match v1.1.1
|
||||||
github.com/tidwall/pretty v1.2.0 // indirect
|
github.com/tidwall/pretty v1.2.0 // indirect
|
||||||
github.com/tsuna/gohbase v0.0.0-20201125011725-348991136365
|
github.com/tsuna/gohbase v0.0.0-20201125011725-348991136365
|
||||||
github.com/tylertreat/BoomFilters v0.0.0-20210315201527-1a82519a3e43
|
github.com/tylertreat/BoomFilters v0.0.0-20210315201527-1a82519a3e43
|
||||||
github.com/valyala/bytebufferpool v1.0.0
|
github.com/valyala/bytebufferpool v1.0.0
|
||||||
github.com/viant/assertly v0.5.4 // indirect
|
github.com/viant/ptrie v1.0.1
|
||||||
github.com/viant/ptrie v0.3.0
|
|
||||||
github.com/viant/toolbox v0.33.2 // indirect
|
|
||||||
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
|
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
|
||||||
github.com/xdg-go/scram v1.1.2 // indirect
|
github.com/xdg-go/scram v1.1.2 // indirect
|
||||||
github.com/xdg-go/stringprep v1.0.4 // indirect
|
github.com/xdg-go/stringprep v1.0.4 // indirect
|
||||||
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
|
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
|
||||||
go.etcd.io/etcd/client/v3 v3.5.9
|
go.etcd.io/etcd/client/v3 v3.5.13
|
||||||
go.mongodb.org/mongo-driver v1.12.1
|
go.mongodb.org/mongo-driver v1.15.0
|
||||||
go.opencensus.io v0.24.0 // indirect
|
go.opencensus.io v0.24.0 // indirect
|
||||||
gocloud.dev v0.34.0
|
gocloud.dev v0.37.0
|
||||||
gocloud.dev/pubsub/natspubsub v0.33.0
|
gocloud.dev/pubsub/natspubsub v0.37.0
|
||||||
gocloud.dev/pubsub/rabbitpubsub v0.33.0
|
gocloud.dev/pubsub/rabbitpubsub v0.37.0
|
||||||
golang.org/x/crypto v0.13.0 // indirect
|
golang.org/x/crypto v0.23.0 // indirect
|
||||||
golang.org/x/exp v0.0.0-20230321023759-10a507213a29
|
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3
|
||||||
golang.org/x/image v0.11.0
|
golang.org/x/image v0.16.0
|
||||||
golang.org/x/net v0.15.0
|
golang.org/x/net v0.25.0
|
||||||
golang.org/x/oauth2 v0.12.0 // indirect
|
golang.org/x/oauth2 v0.20.0 // indirect
|
||||||
golang.org/x/sys v0.12.0
|
golang.org/x/sys v0.20.0
|
||||||
golang.org/x/text v0.13.0 // indirect
|
golang.org/x/text v0.15.0 // indirect
|
||||||
golang.org/x/tools v0.11.0
|
golang.org/x/tools v0.21.0
|
||||||
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
|
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
|
||||||
google.golang.org/api v0.141.0
|
google.golang.org/api v0.181.0
|
||||||
google.golang.org/appengine v1.6.7 // indirect
|
google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda // indirect
|
||||||
google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect
|
google.golang.org/grpc v1.63.2
|
||||||
google.golang.org/grpc v1.58.0
|
google.golang.org/protobuf v1.34.1
|
||||||
google.golang.org/protobuf v1.31.0
|
|
||||||
gopkg.in/inf.v0 v0.9.1 // indirect
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
||||||
modernc.org/b v1.0.0 // indirect
|
modernc.org/b v1.0.0 // indirect
|
||||||
modernc.org/cc/v3 v3.40.0 // indirect
|
modernc.org/libc v1.50.9 // indirect
|
||||||
modernc.org/ccgo/v3 v3.16.13 // indirect
|
modernc.org/mathutil v1.6.0
|
||||||
modernc.org/libc v1.24.1 // indirect
|
modernc.org/memory v1.8.0 // indirect
|
||||||
modernc.org/mathutil v1.6.0 // indirect
|
modernc.org/sqlite v1.30.0
|
||||||
modernc.org/memory v1.6.0 // indirect
|
modernc.org/strutil v1.2.0
|
||||||
modernc.org/opt v0.1.3 // indirect
|
modernc.org/token v1.1.0 // indirect
|
||||||
modernc.org/sqlite v1.25.0
|
|
||||||
modernc.org/strutil v1.1.3
|
|
||||||
modernc.org/token v1.0.1 // indirect
|
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Jille/raft-grpc-transport v1.4.0
|
github.com/Jille/raft-grpc-transport v1.5.0
|
||||||
github.com/arangodb/go-driver v1.6.0
|
github.com/arangodb/go-driver v1.6.2
|
||||||
github.com/armon/go-metrics v0.4.1
|
github.com/armon/go-metrics v0.4.1
|
||||||
github.com/aws/aws-sdk-go-v2 v1.21.0
|
github.com/aws/aws-sdk-go-v2 v1.27.0
|
||||||
github.com/aws/aws-sdk-go-v2/config v1.18.39
|
github.com/aws/aws-sdk-go-v2/config v1.27.16
|
||||||
github.com/aws/aws-sdk-go-v2/credentials v1.13.37
|
github.com/aws/aws-sdk-go-v2/credentials v1.17.16
|
||||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.38.5
|
github.com/aws/aws-sdk-go-v2/service/s3 v1.54.3
|
||||||
|
github.com/cognusion/imaging v1.0.1
|
||||||
github.com/fluent/fluent-logger-golang v1.9.0
|
github.com/fluent/fluent-logger-golang v1.9.0
|
||||||
github.com/golang-jwt/jwt/v5 v5.0.0
|
github.com/getsentry/sentry-go v0.27.0
|
||||||
|
github.com/golang-jwt/jwt/v5 v5.2.1
|
||||||
github.com/google/flatbuffers/go v0.0.0-20230108230133-3b8644d32c50
|
github.com/google/flatbuffers/go v0.0.0-20230108230133-3b8644d32c50
|
||||||
github.com/hanwen/go-fuse/v2 v2.4.0
|
github.com/hanwen/go-fuse/v2 v2.5.1
|
||||||
github.com/hashicorp/raft v1.5.0
|
github.com/hashicorp/raft v1.6.1
|
||||||
github.com/hashicorp/raft-boltdb/v2 v2.2.2
|
github.com/hashicorp/raft-boltdb/v2 v2.3.0
|
||||||
github.com/orcaman/concurrent-map/v2 v2.0.1
|
github.com/orcaman/concurrent-map/v2 v2.0.1
|
||||||
github.com/puzpuzpuz/xsync/v2 v2.5.0
|
github.com/parquet-go/parquet-go v0.22.0
|
||||||
github.com/rabbitmq/amqp091-go v1.8.1
|
github.com/rabbitmq/amqp091-go v1.9.0
|
||||||
github.com/rclone/rclone v1.63.1
|
github.com/rclone/rclone v1.66.0
|
||||||
github.com/rdleal/intervalst v0.0.0-20221028215511-a098aa0d2cb8
|
github.com/rdleal/intervalst v1.4.0
|
||||||
github.com/schollz/progressbar/v3 v3.13.1
|
github.com/schollz/progressbar/v3 v3.14.3
|
||||||
github.com/shirou/gopsutil/v3 v3.23.5
|
github.com/shirou/gopsutil/v3 v3.24.4
|
||||||
github.com/tikv/client-go/v2 v2.0.7
|
github.com/tikv/client-go/v2 v2.0.7
|
||||||
github.com/ydb-platform/ydb-go-sdk-auth-environ v0.2.0
|
github.com/ydb-platform/ydb-go-sdk-auth-environ v0.4.2
|
||||||
github.com/ydb-platform/ydb-go-sdk/v3 v3.48.8
|
github.com/ydb-platform/ydb-go-sdk/v3 v3.68.1
|
||||||
|
go.etcd.io/etcd/client/pkg/v3 v3.5.14
|
||||||
|
go.uber.org/atomic v1.11.0
|
||||||
|
golang.org/x/sync v0.7.0
|
||||||
google.golang.org/grpc/security/advancedtls v0.0.0-20220622233350-5cdb09fa29c1
|
google.golang.org/grpc/security/advancedtls v0.0.0-20220622233350-5cdb09fa29c1
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
cloud.google.com/go/compute v1.23.0 // indirect
|
cloud.google.com/go/auth v0.4.1 // indirect
|
||||||
cloud.google.com/go/compute/metadata v0.2.3 // indirect
|
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
|
||||||
cloud.google.com/go/iam v1.1.1 // indirect
|
cloud.google.com/go/compute/metadata v0.3.0 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.0 // indirect
|
cloud.google.com/go/iam v1.1.8 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0 // indirect
|
filippo.io/edwards25519 v1.1.0 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 // indirect
|
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.10.0 // indirect
|
||||||
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.1.0 // indirect
|
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.1 // indirect
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.2 // indirect
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.1 // indirect
|
||||||
|
github.com/Azure/azure-sdk-for-go/sdk/storage/azfile v1.1.1 // indirect
|
||||||
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
|
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
|
||||||
github.com/AzureAD/microsoft-authentication-library-for-go v1.0.0 // indirect
|
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect
|
||||||
github.com/Max-Sum/base32768 v0.0.0-20230304063302-18e6ce5945fd // indirect
|
github.com/Max-Sum/base32768 v0.0.0-20230304063302-18e6ce5945fd // indirect
|
||||||
github.com/Microsoft/go-winio v0.6.0 // indirect
|
github.com/Microsoft/go-winio v0.6.1 // indirect
|
||||||
|
github.com/ProtonMail/bcrypt v0.0.0-20211005172633-e235017c1baf // indirect
|
||||||
|
github.com/ProtonMail/gluon v0.17.1-0.20230724134000-308be39be96e // indirect
|
||||||
|
github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c // indirect
|
||||||
|
github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f // indirect
|
||||||
|
github.com/ProtonMail/go-srp v0.0.7 // indirect
|
||||||
|
github.com/ProtonMail/gopenpgp/v2 v2.7.4 // indirect
|
||||||
|
github.com/PuerkitoBio/goquery v1.8.1 // indirect
|
||||||
github.com/Unknwon/goconfig v1.0.0 // indirect
|
github.com/Unknwon/goconfig v1.0.0 // indirect
|
||||||
github.com/abbot/go-http-auth v0.4.0 // indirect
|
github.com/abbot/go-http-auth v0.4.0 // indirect
|
||||||
|
github.com/andybalholm/brotli v1.0.5 // indirect
|
||||||
|
github.com/andybalholm/cascadia v1.3.2 // indirect
|
||||||
github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e // indirect
|
github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.13 // indirect
|
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.11 // indirect
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.3 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.41 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.7 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.35 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.7 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.42 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.1.4 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.7 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.14 // indirect
|
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.36 // indirect
|
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.9 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.35 // indirect
|
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.9 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.15.4 // indirect
|
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.7 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sns v1.21.1 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sns v1.29.2 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sqs v1.24.1 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sqs v1.31.2 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sso v1.13.6 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sso v1.20.9 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.15.6 // indirect
|
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.24.3 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sts v1.21.5 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sts v1.28.10 // indirect
|
||||||
github.com/aws/smithy-go v1.14.2 // indirect
|
github.com/aws/smithy-go v1.20.2 // indirect
|
||||||
github.com/benbjohnson/clock v1.3.0 // indirect
|
|
||||||
github.com/boltdb/bolt v1.3.1 // indirect
|
github.com/boltdb/bolt v1.3.1 // indirect
|
||||||
|
github.com/bradenaw/juniper v0.15.2 // indirect
|
||||||
github.com/buengese/sgzip v0.1.1 // indirect
|
github.com/buengese/sgzip v0.1.1 // indirect
|
||||||
github.com/calebcase/tmpfile v1.0.3 // indirect
|
github.com/calebcase/tmpfile v1.0.3 // indirect
|
||||||
github.com/colinmarc/hdfs/v2 v2.3.0 // indirect
|
github.com/cloudflare/circl v1.3.7 // indirect
|
||||||
|
github.com/cloudsoda/go-smb2 v0.0.0-20231124195312-f3ec8ae2c891 // indirect
|
||||||
|
github.com/colinmarc/hdfs/v2 v2.4.0 // indirect
|
||||||
|
github.com/cronokirby/saferith v0.33.0 // indirect
|
||||||
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
|
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
|
||||||
github.com/d4l3k/messagediff v1.2.1 // indirect
|
github.com/d4l3k/messagediff v1.2.1 // indirect
|
||||||
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 // indirect
|
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 // indirect
|
||||||
github.com/dropbox/dropbox-sdk-go-unofficial/v6 v6.0.5 // indirect
|
github.com/dropbox/dropbox-sdk-go-unofficial/v6 v6.0.5 // indirect
|
||||||
github.com/elastic/gosigar v0.14.2 // indirect
|
github.com/elastic/gosigar v0.14.2 // indirect
|
||||||
|
github.com/emersion/go-message v0.18.0 // indirect
|
||||||
|
github.com/emersion/go-textwrapper v0.0.0-20200911093747-65d896831594 // indirect
|
||||||
|
github.com/emersion/go-vcard v0.0.0-20230815062825-8fda7d206ec9 // indirect
|
||||||
github.com/fatih/color v1.14.1 // indirect
|
github.com/fatih/color v1.14.1 // indirect
|
||||||
github.com/fclairamb/go-log v0.4.1 // indirect
|
github.com/fclairamb/go-log v0.5.0 // indirect
|
||||||
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
||||||
|
github.com/flynn/noise v1.0.1 // indirect
|
||||||
|
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
|
||||||
github.com/geoffgarside/ber v1.1.0 // indirect
|
github.com/geoffgarside/ber v1.1.0 // indirect
|
||||||
github.com/go-chi/chi/v5 v5.0.8 // indirect
|
github.com/go-chi/chi/v5 v5.0.11 // indirect
|
||||||
github.com/go-ole/go-ole v1.2.6 // indirect
|
github.com/go-logr/logr v1.4.1 // indirect
|
||||||
|
github.com/go-logr/stdr v1.2.2 // indirect
|
||||||
|
github.com/go-ole/go-ole v1.3.0 // indirect
|
||||||
|
github.com/go-resty/resty/v2 v2.11.0 // indirect
|
||||||
github.com/gofrs/flock v0.8.1 // indirect
|
github.com/gofrs/flock v0.8.1 // indirect
|
||||||
github.com/gogo/protobuf v1.3.2 // indirect
|
github.com/gogo/protobuf v1.3.2 // indirect
|
||||||
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
|
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
|
||||||
github.com/google/go-querystring v1.1.0 // indirect
|
|
||||||
github.com/google/s2a-go v0.1.7 // indirect
|
github.com/google/s2a-go v0.1.7 // indirect
|
||||||
github.com/googleapis/enterprise-certificate-proxy v0.2.5 // indirect
|
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
|
||||||
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
||||||
github.com/hashicorp/go-hclog v1.5.0 // indirect
|
github.com/hashicorp/go-hclog v1.6.2 // indirect
|
||||||
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
|
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
|
||||||
github.com/hashicorp/go-msgpack v1.1.5 // indirect
|
github.com/hashicorp/go-msgpack/v2 v2.1.1 // indirect
|
||||||
github.com/hashicorp/golang-lru v0.6.0 // indirect
|
github.com/hashicorp/golang-lru v0.6.0 // indirect
|
||||||
github.com/hirochachacha/go-smb2 v1.1.0 // indirect
|
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
|
||||||
github.com/iguanesolutions/go-systemd/v5 v5.1.1 // indirect
|
github.com/henrybear327/Proton-API-Bridge v1.0.0 // indirect
|
||||||
|
github.com/henrybear327/go-proton-api v1.0.0 // indirect
|
||||||
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
|
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
|
||||||
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
|
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
|
||||||
github.com/jcmturner/goidentity/v6 v6.0.1 // indirect
|
github.com/jcmturner/goidentity/v6 v6.0.1 // indirect
|
||||||
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
|
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
|
||||||
|
github.com/jlaffaye/ftp v0.2.0 // indirect
|
||||||
github.com/jonboulle/clockwork v0.3.0 // indirect
|
github.com/jonboulle/clockwork v0.3.0 // indirect
|
||||||
github.com/josharian/intern v1.0.0 // indirect
|
github.com/josharian/intern v1.0.0 // indirect
|
||||||
github.com/jtolio/eventkit v0.0.0-20221004135224-074cf276595b // indirect
|
github.com/jtolio/eventkit v0.0.0-20231019094657-5d77ebb407d9 // indirect
|
||||||
|
github.com/jtolio/noiseconn v0.0.0-20231127013910-f6d9ecbf1de7 // indirect
|
||||||
github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004 // indirect
|
github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004 // indirect
|
||||||
github.com/klauspost/cpuid/v2 v2.2.3 // indirect
|
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
|
||||||
github.com/koofr/go-httpclient v0.0.0-20230225102643-5d51a2e9dea6 // indirect
|
github.com/koofr/go-httpclient v0.0.0-20230225102643-5d51a2e9dea6 // indirect
|
||||||
github.com/koofr/go-koofrclient v0.0.0-20221207135200-cbd7fc9ad6a6 // indirect
|
github.com/koofr/go-koofrclient v0.0.0-20221207135200-cbd7fc9ad6a6 // indirect
|
||||||
github.com/kr/fs v0.1.0 // indirect
|
github.com/kr/fs v0.1.0 // indirect
|
||||||
github.com/kylelemons/godebug v1.1.0 // indirect
|
github.com/kylelemons/godebug v1.1.0 // indirect
|
||||||
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
|
github.com/lufia/plan9stats v0.0.0-20231016141302-07b5767bb0ed // indirect
|
||||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||||
github.com/mattn/go-runewidth v0.0.14 // indirect
|
github.com/mattn/go-runewidth v0.0.15 // indirect
|
||||||
github.com/mattn/go-sqlite3 v2.0.1+incompatible // indirect
|
|
||||||
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
||||||
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
||||||
github.com/montanaflynn/stats v0.7.0 // indirect
|
github.com/montanaflynn/stats v0.7.0 // indirect
|
||||||
github.com/nats-io/nats.go v1.28.0 // indirect
|
github.com/nats-io/nats.go v1.33.1 // indirect
|
||||||
github.com/nats-io/nkeys v0.4.4 // indirect
|
github.com/nats-io/nkeys v0.4.7 // indirect
|
||||||
github.com/nats-io/nuid v1.0.1 // indirect
|
github.com/nats-io/nuid v1.0.1 // indirect
|
||||||
github.com/ncw/go-acd v0.0.0-20201019170801-fe55f33415b1 // indirect
|
github.com/ncruces/go-strftime v0.1.9 // indirect
|
||||||
github.com/ncw/swift/v2 v2.0.1 // indirect
|
github.com/ncw/swift/v2 v2.0.2 // indirect
|
||||||
|
github.com/olekukonko/tablewriter v0.0.5 // indirect
|
||||||
|
github.com/onsi/gomega v1.27.10 // indirect
|
||||||
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
||||||
github.com/oracle/oci-go-sdk/v65 v65.34.0 // indirect
|
github.com/oracle/oci-go-sdk/v65 v65.55.1 // indirect
|
||||||
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
|
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
|
||||||
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
|
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
|
||||||
github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14 // indirect
|
github.com/pengsrc/go-shared v0.2.1-0.20190131101655-1999055a4a14 // indirect
|
||||||
github.com/philhofer/fwd v1.1.1 // indirect
|
github.com/philhofer/fwd v1.1.2 // indirect
|
||||||
github.com/pierrec/lz4/v4 v4.1.17 // indirect
|
github.com/pierrec/lz4/v4 v4.1.18 // indirect
|
||||||
github.com/pingcap/errors v0.11.5-0.20211224045212-9687c2b0f87c // indirect
|
github.com/pingcap/errors v0.11.5-0.20211224045212-9687c2b0f87c // indirect
|
||||||
github.com/pingcap/failpoint v0.0.0-20220801062533-2eaa32854a6c // indirect
|
github.com/pingcap/failpoint v0.0.0-20220801062533-2eaa32854a6c // indirect
|
||||||
github.com/pingcap/kvproto v0.0.0-20230403051650-e166ae588106 // indirect
|
github.com/pingcap/kvproto v0.0.0-20230403051650-e166ae588106 // indirect
|
||||||
github.com/pingcap/log v1.1.1-0.20221110025148-ca232912c9f3 // indirect
|
github.com/pingcap/log v1.1.1-0.20221110025148-ca232912c9f3 // indirect
|
||||||
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect
|
||||||
github.com/pkg/sftp v1.13.6-0.20230213180117-971c283182b6 // indirect
|
github.com/pkg/sftp v1.13.6 // indirect
|
||||||
github.com/pkg/xattr v0.4.9 // indirect
|
github.com/pkg/xattr v0.4.9 // indirect
|
||||||
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
|
github.com/power-devops/perfstat v0.0.0-20221212215047-62379fc7944b // indirect
|
||||||
github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8 // indirect
|
github.com/putdotio/go-putio/putio v0.0.0-20200123120452-16d982cac2b8 // indirect
|
||||||
github.com/rclone/ftp v0.0.0-20230327202000-dadc1f64e87d // indirect
|
github.com/relvacode/iso8601 v1.3.0 // indirect
|
||||||
github.com/rdleal/intervalst v0.0.0-20221028215511-a098aa0d2cb8 // indirect
|
|
||||||
github.com/rfjakob/eme v1.1.2 // indirect
|
github.com/rfjakob/eme v1.1.2 // indirect
|
||||||
github.com/rivo/uniseg v0.4.4 // indirect
|
github.com/rivo/uniseg v0.4.7 // indirect
|
||||||
|
github.com/sagikazarmark/locafero v0.4.0 // indirect
|
||||||
|
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
|
||||||
|
github.com/segmentio/encoding v0.3.6 // indirect
|
||||||
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
github.com/shoenig/go-m1cpu v0.1.6 // indirect
|
||||||
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
|
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
|
||||||
github.com/smartystreets/goconvey v1.8.1 // indirect
|
github.com/smartystreets/goconvey v1.8.1 // indirect
|
||||||
github.com/sony/gobreaker v0.5.0 // indirect
|
github.com/sony/gobreaker v0.5.0 // indirect
|
||||||
github.com/spacemonkeygo/monkit/v3 v3.0.19 // indirect
|
github.com/sourcegraph/conc v0.3.0 // indirect
|
||||||
|
github.com/spacemonkeygo/monkit/v3 v3.0.22 // indirect
|
||||||
github.com/spf13/pflag v1.0.5 // indirect
|
github.com/spf13/pflag v1.0.5 // indirect
|
||||||
github.com/subosito/gotenv v1.4.2 // indirect
|
github.com/subosito/gotenv v1.6.0 // indirect
|
||||||
github.com/t3rm1n4l/go-mega v0.0.0-20230228171823-a01a2cda13ca // indirect
|
github.com/t3rm1n4l/go-mega v0.0.0-20240219080617-d494b6a8ace7 // indirect
|
||||||
github.com/tiancaiamao/gp v0.0.0-20221230034425-4025bc8a4d4a // indirect
|
github.com/tiancaiamao/gp v0.0.0-20221230034425-4025bc8a4d4a // indirect
|
||||||
github.com/tikv/pd/client v0.0.0-20230329114254-1948c247c2b1 // indirect
|
github.com/tikv/pd/client v0.0.0-20230329114254-1948c247c2b1 // indirect
|
||||||
github.com/tinylib/msgp v1.1.6 // indirect
|
github.com/tinylib/msgp v1.1.8 // indirect
|
||||||
github.com/tklauser/go-sysconf v0.3.11 // indirect
|
github.com/tklauser/go-sysconf v0.3.13 // indirect
|
||||||
github.com/tklauser/numcpus v0.6.0 // indirect
|
github.com/tklauser/numcpus v0.7.0 // indirect
|
||||||
github.com/twmb/murmur3 v1.1.3 // indirect
|
github.com/twmb/murmur3 v1.1.3 // indirect
|
||||||
github.com/vivint/infectious v0.0.0-20200605153912-25a574ae18a3 // indirect
|
|
||||||
github.com/xanzy/ssh-agent v0.3.3 // indirect
|
github.com/xanzy/ssh-agent v0.3.3 // indirect
|
||||||
github.com/yandex-cloud/go-genproto v0.0.0-20211115083454-9ca41db5ed9e // indirect
|
github.com/yandex-cloud/go-genproto v0.0.0-20211115083454-9ca41db5ed9e // indirect
|
||||||
github.com/ydb-platform/ydb-go-genproto v0.0.0-20230528143953-42c825ace222 // indirect
|
github.com/ydb-platform/ydb-go-genproto v0.0.0-20240316140903-4a47abca1cca // indirect
|
||||||
github.com/ydb-platform/ydb-go-yc v0.10.2 // indirect
|
github.com/ydb-platform/ydb-go-yc v0.12.1 // indirect
|
||||||
github.com/ydb-platform/ydb-go-yc-metadata v0.5.2 // indirect
|
github.com/ydb-platform/ydb-go-yc-metadata v0.6.1 // indirect
|
||||||
github.com/yunify/qingstor-sdk-go/v3 v3.2.0 // indirect
|
github.com/yunify/qingstor-sdk-go/v3 v3.2.0 // indirect
|
||||||
github.com/yusufpapurcu/wmi v1.2.3 // indirect
|
github.com/yusufpapurcu/wmi v1.2.4 // indirect
|
||||||
github.com/zeebo/blake3 v0.2.3 // indirect
|
github.com/zeebo/blake3 v0.2.3 // indirect
|
||||||
github.com/zeebo/errs v1.3.0 // indirect
|
github.com/zeebo/errs v1.3.0 // indirect
|
||||||
go.etcd.io/bbolt v1.3.7 // indirect
|
go.etcd.io/bbolt v1.3.8 // indirect
|
||||||
go.etcd.io/etcd/api/v3 v3.5.9 // indirect
|
go.etcd.io/etcd/api/v3 v3.5.13 // indirect
|
||||||
go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect
|
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
|
||||||
go.uber.org/atomic v1.11.0 // indirect
|
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
|
||||||
|
go.opentelemetry.io/otel v1.24.0 // indirect
|
||||||
|
go.opentelemetry.io/otel/metric v1.24.0 // indirect
|
||||||
|
go.opentelemetry.io/otel/trace v1.24.0 // indirect
|
||||||
go.uber.org/multierr v1.11.0 // indirect
|
go.uber.org/multierr v1.11.0 // indirect
|
||||||
go.uber.org/zap v1.24.0 // indirect
|
go.uber.org/zap v1.27.0 // indirect
|
||||||
golang.org/x/mod v0.12.0 // indirect
|
golang.org/x/mod v0.17.0 // indirect
|
||||||
golang.org/x/sync v0.3.0 // indirect
|
golang.org/x/term v0.20.0 // indirect
|
||||||
golang.org/x/term v0.12.0 // indirect
|
golang.org/x/time v0.5.0 // indirect
|
||||||
golang.org/x/time v0.3.0 // indirect
|
google.golang.org/genproto/googleapis/api v0.0.0-20240506185236-b8a5c65736ae // indirect
|
||||||
google.golang.org/genproto/googleapis/api v0.0.0-20230803162519-f966b187b2e5 // indirect
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20240513163218-0867130af1f8 // indirect
|
||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230911183012-2d3300fd4832 // indirect
|
|
||||||
gopkg.in/ini.v1 v1.67.0 // indirect
|
gopkg.in/ini.v1 v1.67.0 // indirect
|
||||||
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
|
||||||
|
gopkg.in/validator.v2 v2.0.1 // indirect
|
||||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||||
lukechampine.com/uint128 v1.2.0 // indirect
|
modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6 // indirect
|
||||||
storj.io/common v0.0.0-20221123115229-fed3e6651b63 // indirect
|
storj.io/common v0.0.0-20240111121419-ecae1362576c // indirect
|
||||||
storj.io/drpc v0.0.32 // indirect
|
storj.io/drpc v0.0.33 // indirect
|
||||||
storj.io/uplink v1.10.0 // indirect
|
storj.io/infectious v0.0.2 // indirect
|
||||||
|
storj.io/picobuf v0.0.2-0.20230906122608-c4ba17033c6c // indirect
|
||||||
|
storj.io/uplink v1.12.2 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
// replace github.com/seaweedfs/raft => /Users/chrislu/go/src/github.com/seaweedfs/raft
|
// replace github.com/seaweedfs/raft => /Users/chrislu/go/src/github.com/seaweedfs/raft
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
description: SeaweedFS
|
description: SeaweedFS
|
||||||
name: seaweedfs
|
name: seaweedfs
|
||||||
appVersion: "3.57"
|
appVersion: "3.68"
|
||||||
version: 3.57.0
|
version: 3.68.0
|
||||||
@@ -4,15 +4,21 @@
|
|||||||
|
|
||||||
### Add the helm repo
|
### Add the helm repo
|
||||||
|
|
||||||
`helm repo add seaweedfs https://seaweedfs.github.io/seaweedfs/helm`
|
```bash
|
||||||
|
helm repo add seaweedfs https://seaweedfs.github.io/seaweedfs/helm
|
||||||
|
```
|
||||||
|
|
||||||
### Install the helm chart
|
### Install the helm chart
|
||||||
|
|
||||||
`helm install seaweedfs seaweedfs/seaweedfs`
|
```bash
|
||||||
|
helm install seaweedfs seaweedfs/seaweedfs
|
||||||
|
```
|
||||||
|
|
||||||
### (Recommended) Provide `values.yaml`
|
### (Recommended) Provide `values.yaml`
|
||||||
|
|
||||||
`helm install --values=values.yaml seaweedfs seaweedfs/seaweedfs`
|
```bash
|
||||||
|
helm install --values=values.yaml seaweedfs seaweedfs/seaweedfs
|
||||||
|
```
|
||||||
|
|
||||||
## Info:
|
## Info:
|
||||||
* master/filer/volume are stateful sets with anti-affinity on the hostname,
|
* master/filer/volume are stateful sets with anti-affinity on the hostname,
|
||||||
@@ -24,11 +30,11 @@ so your deployment will be spread/HA.
|
|||||||
## Prerequisites
|
## Prerequisites
|
||||||
### Database
|
### Database
|
||||||
|
|
||||||
leveldb is the default database this only supports one filer replica.
|
leveldb is the default database, this supports multiple filer replicas that will [sync automatically](https://github.com/seaweedfs/seaweedfs/wiki/Filer-Store-Replication), with some [limitations](https://github.com/seaweedfs/seaweedfs/wiki/Filer-Store-Replication#limitation).
|
||||||
|
|
||||||
To have multiple filers a external datastore is recommened.
|
When the [limitations](https://github.com/seaweedfs/seaweedfs/wiki/Filer-Store-Replication#limitation) apply, or for a large number of filer replicas, an external datastore is recommended.
|
||||||
|
|
||||||
Such as MySQL-compatible database, as specified in the `values.yaml` at `filer.extraEnvironmentVars`.
|
Such as MySQL-compatible database, as specified in the `values.yaml` at `filer.extraEnvironmentVars`.
|
||||||
This database should be pre-configured and initialized by running:
|
This database should be pre-configured and initialized by running:
|
||||||
```sql
|
```sql
|
||||||
CREATE TABLE IF NOT EXISTS `filemeta` (
|
CREATE TABLE IF NOT EXISTS `filemeta` (
|
||||||
@@ -78,4 +84,63 @@ for your deployment.
|
|||||||
You can update the replicas count for each node type in values.yaml,
|
You can update the replicas count for each node type in values.yaml,
|
||||||
need to add more nodes with the corresponding labels if applicable.
|
need to add more nodes with the corresponding labels if applicable.
|
||||||
|
|
||||||
Most of the configuration are available through values.yaml any pull requests to expand functionality or usability are greatly appreciated. Any pull request must pass [chart-testing](https://github.com/helm/chart-testing).
|
Most of the configuration are available through values.yaml any pull requests to expand functionality or usability are greatly appreciated. Any pull request must pass [chart-testing](https://github.com/helm/chart-testing).
|
||||||
|
|
||||||
|
## S3 configuration
|
||||||
|
|
||||||
|
To enable an s3 endpoint for your filer with a default install add the following to your values.yaml:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
filer:
|
||||||
|
s3:
|
||||||
|
enabled: true
|
||||||
|
```
|
||||||
|
|
||||||
|
### Enabling Authentication to S3
|
||||||
|
|
||||||
|
To enable authentication for S3, you have two options:
|
||||||
|
|
||||||
|
- let the helm chart create an admin user as well as a read only user
|
||||||
|
- provide your own s3 config.json file via an existing Kubernetes Secret
|
||||||
|
|
||||||
|
#### Use the default credentials for S3
|
||||||
|
|
||||||
|
Example parameters for your values.yaml:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
filer:
|
||||||
|
s3:
|
||||||
|
enabled: true
|
||||||
|
enableAuth: true
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Provide your own credentials for S3
|
||||||
|
|
||||||
|
Example parameters for your values.yaml:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
filer:
|
||||||
|
s3:
|
||||||
|
enabled: true
|
||||||
|
enableAuth: true
|
||||||
|
existingConfigSecret: my-s3-secret
|
||||||
|
```
|
||||||
|
|
||||||
|
Example existing secret with your s3 config to create an admin user and readonly user, both with credentials:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
# Source: seaweedfs/templates/seaweedfs-s3-secret.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
type: Opaque
|
||||||
|
metadata:
|
||||||
|
name: my-s3-secret
|
||||||
|
namespace: seaweedfs
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: seaweedfs
|
||||||
|
app.kubernetes.io/component: s3
|
||||||
|
stringData:
|
||||||
|
# this key must be an inline json config file
|
||||||
|
seaweedfs_s3_config: '{"identities":[{"name":"anvAdmin","credentials":[{"accessKey":"snu8yoP6QAlY0ne4","secretKey":"PNzBcmeLNEdR0oviwm04NQAicOrDH1Km"}],"actions":["Admin","Read","Write"]},{"name":"anvReadOnly","credentials":[{"accessKey":"SCigFee6c5lbi04A","secretKey":"kgFhbT38R8WUYVtiFQ1OiSVOrYr3NKku"}],"actions":["Read"]}]}'
|
||||||
|
```
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -118,20 +118,7 @@ Inject extra environment vars in the format key:value, if populated
|
|||||||
{{- if or (or (eq .Values.volume.data.type "persistentVolumeClaim") (and (eq .Values.volume.idx.type "persistentVolumeClaim") .Values.volume.dir_idx )) (eq .Values.volume.logs.type "persistentVolumeClaim") -}}
|
{{- if or (or (eq .Values.volume.data.type "persistentVolumeClaim") (and (eq .Values.volume.idx.type "persistentVolumeClaim") .Values.volume.dir_idx )) (eq .Values.volume.logs.type "persistentVolumeClaim") -}}
|
||||||
{{- printf "true" -}}
|
{{- printf "true" -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "false" -}}
|
{{- printf "" -}}
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/* check if any Volume HostPath exists */}}
|
|
||||||
{{- define "volume.hostpath_exists" -}}
|
|
||||||
{{- if or (or (eq .Values.volume.data.type "hostPath") (and (eq .Values.volume.idx.type "hostPath") .Values.volume.dir_idx )) (eq .Values.volume.logs.type "hostPath") -}}
|
|
||||||
{{- printf "true" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if or .Values.global.enableSecurity .Values.volume.extraVolumes -}}
|
|
||||||
{{- printf "true" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- printf "false" -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
@@ -140,16 +127,7 @@ Inject extra environment vars in the format key:value, if populated
|
|||||||
{{- if or (eq .Values.filer.data.type "persistentVolumeClaim") (eq .Values.filer.logs.type "persistentVolumeClaim") -}}
|
{{- if or (eq .Values.filer.data.type "persistentVolumeClaim") (eq .Values.filer.logs.type "persistentVolumeClaim") -}}
|
||||||
{{- printf "true" -}}
|
{{- printf "true" -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "false" -}}
|
{{- printf "" -}}
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/* check if any Filer HostPath exists */}}
|
|
||||||
{{- define "filer.hostpath_exists" -}}
|
|
||||||
{{- if or (eq .Values.filer.data.type "hostPath") (eq .Values.filer.logs.type "hostPath") -}}
|
|
||||||
{{- printf "true" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- printf "false" -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
@@ -158,29 +136,16 @@ Inject extra environment vars in the format key:value, if populated
|
|||||||
{{- if or (eq .Values.master.data.type "persistentVolumeClaim") (eq .Values.master.logs.type "persistentVolumeClaim") -}}
|
{{- if or (eq .Values.master.data.type "persistentVolumeClaim") (eq .Values.master.logs.type "persistentVolumeClaim") -}}
|
||||||
{{- printf "true" -}}
|
{{- printf "true" -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "false" -}}
|
{{- printf "" -}}
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/* check if any Master HostPath exists */}}
|
|
||||||
{{- define "master.hostpath_exists" -}}
|
|
||||||
{{- if or (eq .Values.master.data.type "hostPath") (eq .Values.master.logs.type "hostPath") -}}
|
|
||||||
{{- printf "true" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- if or .Values.global.enableSecurity .Values.volume.extraVolumes -}}
|
|
||||||
{{- printf "true" -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- printf "false" -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/* check if any InitContainers exist for Volumes */}}
|
{{/* check if any InitContainers exist for Volumes */}}
|
||||||
{{- define "volume.initContainers_exists" -}}
|
{{- define "volume.initContainers_exists" -}}
|
||||||
{{- if or (not (empty .Values.volume.dir_idx )) (not (empty .Values.volume.initContainers )) -}}
|
{{- if or (not (empty .Values.volume.idx )) (not (empty .Values.volume.initContainers )) -}}
|
||||||
{{- printf "true" -}}
|
{{- printf "true" -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- printf "false" -}}
|
{{- printf "" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
@@ -198,3 +163,22 @@ imagePullSecrets:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Renders a value that contains template perhaps with scope if the scope is present.
|
||||||
|
Usage:
|
||||||
|
{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $ ) }}
|
||||||
|
{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $ "scope" $app ) }}
|
||||||
|
*/}}
|
||||||
|
{{- define "common.tplvalues.render" -}}
|
||||||
|
{{- $value := typeIs "string" .value | ternary .value (.value | toYaml) }}
|
||||||
|
{{- if contains "{{" (toJson .value) }}
|
||||||
|
{{- if .scope }}
|
||||||
|
{{- tpl (cat "{{- with $.RelativeScope -}}" $value "{{- end }}") (merge (dict "RelativeScope" .scope) .context) }}
|
||||||
|
{{- else }}
|
||||||
|
{{- tpl $value .context }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $value }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.global.enableSecurity }}
|
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.global.enableSecurity }}
|
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
||||||
kind: Issuer
|
kind: Issuer
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.global.enableSecurity }}
|
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
||||||
kind: ClusterIssuer
|
kind: ClusterIssuer
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.global.enableSecurity }}
|
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.global.enableSecurity }}
|
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
+5
-3
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.filer.enabled }}
|
||||||
{{- if .Values.filer.ingress.enabled }}
|
{{- if .Values.filer.ingress.enabled }}
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
@@ -10,9 +11,9 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
name: ingress-{{ template "seaweedfs.name" . }}-filer
|
name: ingress-{{ template "seaweedfs.name" . }}-filer
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if .Values.filer.ingress.annotations }}
|
{{- with .Values.filer.ingress.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ tpl .Values.filer.ingress.annotations . | nindent 4 | trim }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
@@ -43,4 +44,5 @@ spec:
|
|||||||
{{- if .Values.filer.ingress.host }}
|
{{- if .Values.filer.ingress.host }}
|
||||||
host: {{ .Values.filer.ingress.host }}
|
host: {{ .Values.filer.ingress.host }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.filer.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
@@ -32,3 +33,4 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
|
{{- end }}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.filer.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
@@ -44,3 +45,4 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
|
{{- end }}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.filer.enabled }}
|
||||||
{{- if .Values.filer.metricsPort }}
|
{{- if .Values.filer.metricsPort }}
|
||||||
{{- if .Values.global.monitoring.enabled }}
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
@@ -11,6 +12,9 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
|
{{- with .Values.global.monitoring.additionalLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 30s
|
- interval: 30s
|
||||||
@@ -21,4 +25,5 @@ spec:
|
|||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -12,7 +12,7 @@ metadata:
|
|||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
spec:
|
spec:
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-filer
|
serviceName: {{ template "seaweedfs.name" . }}-filer
|
||||||
podManagementPolicy: Parallel
|
podManagementPolicy: {{ .Values.filer.podManagementPolicy }}
|
||||||
replicas: {{ .Values.filer.replicas }}
|
replicas: {{ .Values.filer.replicas }}
|
||||||
{{- if (gt (int .Values.filer.updatePartition) 0) }}
|
{{- if (gt (int .Values.filer.updatePartition) 0) }}
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
@@ -23,7 +23,6 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
template:
|
template:
|
||||||
@@ -33,6 +32,19 @@ spec:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: filer
|
app.kubernetes.io/component: filer
|
||||||
|
{{ with .Values.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.filer.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{ with .Values.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.filer.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.filer.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.filer.restartPolicy }}
|
||||||
{{- if .Values.filer.affinity }}
|
{{- if .Values.filer.affinity }}
|
||||||
@@ -45,20 +57,20 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
||||||
{{- if .Values.global.createClusterRole }}
|
{{- if .Values.global.createClusterRole }}
|
||||||
serviceAccountName: seaweedfs-rw-sa #hack for delete pod master after migration
|
serviceAccountName: {{ .Values.filer.serviceAccountName | default .Values.global.serviceAccountName | quote }} # for deleting statefulset pods after migration
|
||||||
{{- end }}
|
{{- end }}
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
{{- if .Values.filer.priorityClassName }}
|
{{- if .Values.filer.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.filer.priorityClassName | quote }}
|
priorityClassName: {{ .Values.filer.priorityClassName | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
{{- if .Values.filer.serviceAccountName }}
|
|
||||||
serviceAccountName: {{ .Values.filer.serviceAccountName | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.filer.initContainers }}
|
{{- if .Values.filer.initContainers }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{ tpl .Values.filer.initContainers . | nindent 8 | trim }}
|
{{ tpl .Values.filer.initContainers . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.filer.podSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit .Values.filer.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: seaweedfs
|
- name: seaweedfs
|
||||||
image: {{ template "filer.image" . }}
|
image: {{ template "filer.image" . }}
|
||||||
@@ -81,11 +93,13 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: secret-seaweedfs-db
|
name: secret-seaweedfs-db
|
||||||
key: user
|
key: user
|
||||||
|
optional: true
|
||||||
- name: WEED_MYSQL_PASSWORD
|
- name: WEED_MYSQL_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: secret-seaweedfs-db
|
name: secret-seaweedfs-db
|
||||||
key: password
|
key: password
|
||||||
|
optional: true
|
||||||
- name: SEAWEEDFS_FULLNAME
|
- name: SEAWEEDFS_FULLNAME
|
||||||
value: "{{ template "seaweedfs.name" . }}"
|
value: "{{ template "seaweedfs.name" . }}"
|
||||||
{{- if .Values.filer.extraEnvironmentVars }}
|
{{- if .Values.filer.extraEnvironmentVars }}
|
||||||
@@ -102,7 +116,12 @@ spec:
|
|||||||
{{- if .Values.global.extraEnvironmentVars }}
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.filer.secretExtraEnvironmentVars }}
|
{{- if .Values.filer.secretExtraEnvironmentVars }}
|
||||||
@@ -110,13 +129,13 @@ spec:
|
|||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
valueFrom: {{ toYaml $value | nindent 16 }}
|
valueFrom: {{ toYaml $value | nindent 16 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command:
|
command:
|
||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
- "-ec"
|
- "-ec"
|
||||||
- |
|
- |
|
||||||
exec /usr/bin/weed \
|
exec /usr/bin/weed \
|
||||||
{{- if eq .Values.filer.logs.type "hostPath" }}
|
{{- if or (eq .Values.filer.logs.type "hostPath") (eq .Values.filer.logs.type "persistentVolumeClaim") (eq .Values.filer.logs.type "emptyDir") }}
|
||||||
-logdir=/logs \
|
-logdir=/logs \
|
||||||
{{- else }}
|
{{- else }}
|
||||||
-logtostderr=true \
|
-logtostderr=true \
|
||||||
@@ -182,16 +201,18 @@ spec:
|
|||||||
-s3.auditLogConfig=/etc/sw/filer_s3_auditLogConfig.json \
|
-s3.auditLogConfig=/etc/sw/filer_s3_auditLogConfig.json \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-master={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}
|
-master={{ if .Values.global.masterServer }}{{.Values.global.masterServer}}{{ else }}{{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}{{ end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if eq .Values.filer.logs.type "hostPath" }}
|
{{- if (or (eq .Values.filer.logs.type "hostPath") (eq .Values.filer.logs.type "persistentVolumeClaim") (eq .Values.filer.logs.type "emptyDir")) }}
|
||||||
- name: seaweedfs-filer-log-volume
|
- name: seaweedfs-filer-log-volume
|
||||||
mountPath: "/logs/"
|
mountPath: "/logs/"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- mountPath: /etc/sw
|
{{- if .Values.filer.s3.enableAuth }}
|
||||||
name: config-users
|
- name: config-users
|
||||||
|
mountPath: /etc/sw
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- if (or .Values.filer.enablePVC (or (eq .Values.filer.data.type "hostPath") (eq .Values.filer.data.type "persistentVolumeClaim"))) }}
|
{{- end }}
|
||||||
|
{{- if (or .Values.filer.enablePVC (or (eq .Values.filer.data.type "hostPath") (eq .Values.filer.data.type "persistentVolumeClaim") (eq .Values.filer.data.type "emptyDir"))) }}
|
||||||
- name: data-filer
|
- name: data-filer
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -252,6 +273,12 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{ tpl .Values.filer.resources . | nindent 12 | trim }}
|
{{ tpl .Values.filer.resources . | nindent 12 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.filer.containerSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit .Values.filer.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.sidecars }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.filer.sidecars "context" $) | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- if eq .Values.filer.logs.type "hostPath" }}
|
{{- if eq .Values.filer.logs.type "hostPath" }}
|
||||||
- name: seaweedfs-filer-log-volume
|
- name: seaweedfs-filer-log-volume
|
||||||
@@ -259,19 +286,43 @@ spec:
|
|||||||
path: {{ .Values.filer.logs.hostPathPrefix }}/logs/seaweedfs/filer
|
path: {{ .Values.filer.logs.hostPathPrefix }}/logs/seaweedfs/filer
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if eq .Values.filer.logs.type "existingClaim" }}
|
||||||
|
- name: seaweedfs-filer-log-volume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.filer.logs.claimName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if eq .Values.filer.logs.type "emptyDir" }}
|
||||||
|
- name: seaweedfs-filer-log-volume
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
{{- if eq .Values.filer.data.type "hostPath" }}
|
{{- if eq .Values.filer.data.type "hostPath" }}
|
||||||
- name: data-filer
|
- name: data-filer
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ .Values.filer.data.hostPathPrefix }}/filer_store
|
path: {{ .Values.filer.data.hostPathPrefix }}/filer_store
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if eq .Values.filer.data.type "existingClaim" }}
|
||||||
|
- name: data-filer
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.filer.data.claimName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if eq .Values.filer.data.type "emptyDir" }}
|
||||||
|
- name: data-filer
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
- name: db-schema-config-volume
|
- name: db-schema-config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: seaweedfs-db-init-config
|
name: seaweedfs-db-init-config
|
||||||
|
{{- if and .Values.filer.s3.enabled .Values.filer.s3.enableAuth }}
|
||||||
- name: config-users
|
- name: config-users
|
||||||
secret:
|
secret:
|
||||||
defaultMode: 420
|
defaultMode: 420
|
||||||
|
{{- if .Values.filer.s3.existingConfigSecret }}
|
||||||
|
secretName: {{ .Values.filer.s3.existingConfigSecret }}
|
||||||
|
{{- else }}
|
||||||
secretName: seaweedfs-s3-secret
|
secretName: seaweedfs-s3-secret
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
- name: security-config
|
- name: security-config
|
||||||
configMap:
|
configMap:
|
||||||
@@ -297,7 +348,7 @@ spec:
|
|||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ tpl .Values.filer.nodeSelector . | indent 8 | trim }}
|
{{ tpl .Values.filer.nodeSelector . | indent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.filer.enablePVC }}
|
{{- if and (.Values.filer.enablePVC) (eq .Values.filer.data.type "persistentVolumeClaim") }}
|
||||||
# DEPRECATION: Deprecate in favor of filer.data section below
|
# DEPRECATION: Deprecate in favor of filer.data section below
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
@@ -315,9 +366,13 @@ spec:
|
|||||||
{{- $pvc_exists := include "filer.pvc_exists" . -}}
|
{{- $pvc_exists := include "filer.pvc_exists" . -}}
|
||||||
{{- if $pvc_exists }}
|
{{- if $pvc_exists }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
{{- if eq .Values.filer.data.type "persistentVolumeClaim"}}
|
{{- if eq .Values.filer.data.type "persistentVolumeClaim" }}
|
||||||
- metadata:
|
- metadata:
|
||||||
name: data-filer
|
name: data-filer
|
||||||
|
{{- with .Values.filer.data.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
storageClassName: {{ .Values.filer.data.storageClass }}
|
storageClassName: {{ .Values.filer.data.storageClass }}
|
||||||
@@ -325,9 +380,13 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.filer.data.size }}
|
storage: {{ .Values.filer.data.size }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq .Values.filer.logs.type "persistentVolumeClaim"}}
|
{{- if eq .Values.filer.logs.type "persistentVolumeClaim" }}
|
||||||
- metadata:
|
- metadata:
|
||||||
name: seaweedfs-filer-log-volume
|
name: seaweedfs-filer-log-volume
|
||||||
|
{{- with .Values.filer.logs.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
storageClassName: {{ .Values.filer.logs.storageClass }}
|
storageClassName: {{ .Values.filer.logs.storageClass }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.global.enableSecurity }}
|
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.master.enabled }}
|
||||||
{{- if .Values.master.ingress.enabled }}
|
{{- if .Values.master.ingress.enabled }}
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
@@ -10,9 +11,9 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
name: ingress-{{ template "seaweedfs.name" . }}-master
|
name: ingress-{{ template "seaweedfs.name" . }}-master
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
{{- if .Values.master.ingress.annotations }}
|
{{- with .Values.master.ingress.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{ tpl .Values.master.ingress.annotations . | nindent 4 | trim }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
@@ -22,6 +23,8 @@ metadata:
|
|||||||
app.kubernetes.io/component: master
|
app.kubernetes.io/component: master
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: {{ .Values.master.ingress.className | quote }}
|
ingressClassName: {{ .Values.master.ingress.className | quote }}
|
||||||
|
tls:
|
||||||
|
{{ .Values.master.ingress.tls | default list | toYaml | nindent 6 }}
|
||||||
rules:
|
rules:
|
||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
@@ -42,3 +45,4 @@ spec:
|
|||||||
host: {{ .Values.master.ingress.host }}
|
host: {{ .Values.master.ingress.host }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.master.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
@@ -9,7 +10,7 @@ metadata:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
annotations:
|
annotations:
|
||||||
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
|
||||||
spec:
|
spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
publishNotReadyAddresses: true
|
publishNotReadyAddresses: true
|
||||||
@@ -31,3 +32,4 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: master
|
app.kubernetes.io/component: master
|
||||||
|
{{- end }}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.master.enabled }}
|
||||||
{{- if .Values.master.metricsPort }}
|
{{- if .Values.master.metricsPort }}
|
||||||
{{- if .Values.global.monitoring.enabled }}
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
@@ -11,6 +12,9 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: master
|
app.kubernetes.io/component: master
|
||||||
|
{{- with .Values.global.monitoring.additionalLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 30s
|
- interval: 30s
|
||||||
@@ -18,7 +22,8 @@ spec:
|
|||||||
scrapeTimeout: 5s
|
scrapeTimeout: 5s
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
component: master
|
app.kubernetes.io/component: master
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
@@ -11,7 +11,7 @@ metadata:
|
|||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
spec:
|
spec:
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-master
|
serviceName: {{ template "seaweedfs.name" . }}-master
|
||||||
podManagementPolicy: Parallel
|
podManagementPolicy: {{ .Values.master.podManagementPolicy }}
|
||||||
replicas: {{ .Values.master.replicas }}
|
replicas: {{ .Values.master.replicas }}
|
||||||
{{- if (gt (int .Values.master.updatePartition) 0) }}
|
{{- if (gt (int .Values.master.updatePartition) 0) }}
|
||||||
updateStrategy:
|
updateStrategy:
|
||||||
@@ -22,7 +22,6 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: master
|
app.kubernetes.io/component: master
|
||||||
template:
|
template:
|
||||||
@@ -32,6 +31,19 @@ spec:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: master
|
app.kubernetes.io/component: master
|
||||||
|
{{ with .Values.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.master.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{ with .Values.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.master.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.master.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.master.restartPolicy }}
|
||||||
{{- if .Values.master.affinity }}
|
{{- if .Values.master.affinity }}
|
||||||
@@ -48,13 +60,16 @@ spec:
|
|||||||
priorityClassName: {{ .Values.master.priorityClassName | quote }}
|
priorityClassName: {{ .Values.master.priorityClassName | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
{{- if .Values.master.serviceAccountName }}
|
{{- if .Values.global.createClusterRole }}
|
||||||
serviceAccountName: {{ .Values.master.serviceAccountName | quote }}
|
serviceAccountName: {{ .Values.master.serviceAccountName | default .Values.global.serviceAccountName | quote }} # for deleting statefulset pods after migration
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.master.initContainers }}
|
{{- if .Values.master.initContainers }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{ tpl .Values.master.initContainers . | nindent 8 | trim }}
|
{{ tpl .Values.master.initContainers . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.master.podSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit .Values.master.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: seaweedfs
|
- name: seaweedfs
|
||||||
image: {{ template "master.image" . }}
|
image: {{ template "master.image" . }}
|
||||||
@@ -77,21 +92,31 @@ spec:
|
|||||||
{{- if .Values.master.extraEnvironmentVars }}
|
{{- if .Values.master.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.master.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.master.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.extraEnvironmentVars }}
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command:
|
command:
|
||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
- "-ec"
|
- "-ec"
|
||||||
- |
|
- |
|
||||||
exec /usr/bin/weed \
|
exec /usr/bin/weed \
|
||||||
{{- if eq .Values.master.logs.type "hostPath" }}
|
{{- if or (eq .Values.master.logs.type "hostPath") (eq .Values.master.logs.type "persistentVolumeClaim") (eq .Values.master.logs.type "emptyDir") }}
|
||||||
-logdir=/logs \
|
-logdir=/logs \
|
||||||
{{- else }}
|
{{- else }}
|
||||||
-logtostderr=true \
|
-logtostderr=true \
|
||||||
@@ -119,10 +144,11 @@ spec:
|
|||||||
{{- if .Values.master.metricsIntervalSec }}
|
{{- if .Values.master.metricsIntervalSec }}
|
||||||
-metrics.intervalSeconds={{ .Values.master.metricsIntervalSec }} \
|
-metrics.intervalSeconds={{ .Values.master.metricsIntervalSec }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else if .Values.master.metricsPort }}
|
|
||||||
-metricsPort={{ .Values.master.metricsPort }} \
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.master.metricsPort }}
|
||||||
|
-metricsPort={{ .Values.master.metricsPort }} \
|
||||||
|
{{- end }}
|
||||||
-volumeSizeLimitMB={{ .Values.master.volumeSizeLimitMB }} \
|
-volumeSizeLimitMB={{ .Values.master.volumeSizeLimitMB }} \
|
||||||
{{- if .Values.master.disableHttp }}
|
{{- if .Values.master.disableHttp }}
|
||||||
-disableHttp \
|
-disableHttp \
|
||||||
@@ -138,7 +164,7 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name : data-{{ .Release.Namespace }}
|
- name : data-{{ .Release.Namespace }}
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
{{- if eq .Values.master.logs.type "hostPath" }}
|
{{- if or (eq .Values.master.logs.type "hostPath") (eq .Values.master.logs.type "persistentVolumeClaim") (eq .Values.master.logs.type "emptyDir") }}
|
||||||
- name: seaweedfs-master-log-volume
|
- name: seaweedfs-master-log-volume
|
||||||
mountPath: "/logs/"
|
mountPath: "/logs/"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -205,8 +231,12 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{ tpl .Values.master.resources . | nindent 12 | trim }}
|
{{ tpl .Values.master.resources . | nindent 12 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $hostpath_exists := include "master.hostpath_exists" . -}}
|
{{- if .Values.master.containerSecurityContext.enabled }}
|
||||||
{{- if $hostpath_exists }}
|
securityContext: {{- omit .Values.master.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.master.sidecars }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.master.sidecars "context" $) | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- if eq .Values.master.logs.type "hostPath" }}
|
{{- if eq .Values.master.logs.type "hostPath" }}
|
||||||
- name: seaweedfs-master-log-volume
|
- name: seaweedfs-master-log-volume
|
||||||
@@ -214,12 +244,30 @@ spec:
|
|||||||
path: {{ .Values.master.logs.hostPathPrefix }}/logs/seaweedfs/master
|
path: {{ .Values.master.logs.hostPathPrefix }}/logs/seaweedfs/master
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if eq .Values.master.logs.type "existingClaim" }}
|
||||||
|
- name: seaweedfs-master-log-volume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.master.logs.claimName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if eq .Values.master.logs.type "emptyDir" }}
|
||||||
|
- name: seaweedfs-master-log-volume
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
{{- if eq .Values.master.data.type "hostPath" }}
|
{{- if eq .Values.master.data.type "hostPath" }}
|
||||||
- name: data-{{ .Release.Namespace }}
|
- name: data-{{ .Release.Namespace }}
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ .Values.master.data.hostPathPrefix }}/seaweed-master/
|
path: {{ .Values.master.data.hostPathPrefix }}/seaweed-master/
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if eq .Values.master.data.type "existingClaim" }}
|
||||||
|
- name: data-{{ .Release.Namespace }}
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.master.data.claimName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if eq .Values.master.data.type "emptyDir" }}
|
||||||
|
- name: data-{{ .Release.Namespace }}
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
- name: master-config
|
- name: master-config
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ template "seaweedfs.name" . }}-master-config
|
name: {{ template "seaweedfs.name" . }}-master-config
|
||||||
@@ -244,7 +292,6 @@ spec:
|
|||||||
secretName: {{ template "seaweedfs.name" . }}-client-cert
|
secretName: {{ template "seaweedfs.name" . }}-client-cert
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ tpl .Values.master.extraVolumes . | indent 8 | trim }}
|
{{ tpl .Values.master.extraVolumes . | indent 8 | trim }}
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.master.nodeSelector }}
|
{{- if .Values.master.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ tpl .Values.master.nodeSelector . | indent 8 | trim }}
|
{{ tpl .Values.master.nodeSelector . | indent 8 | trim }}
|
||||||
@@ -255,6 +302,10 @@ spec:
|
|||||||
{{- if eq .Values.master.data.type "persistentVolumeClaim"}}
|
{{- if eq .Values.master.data.type "persistentVolumeClaim"}}
|
||||||
- metadata:
|
- metadata:
|
||||||
name: data-{{ .Release.Namespace }}
|
name: data-{{ .Release.Namespace }}
|
||||||
|
{{- with .Values.master.data.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
storageClassName: {{ .Values.master.data.storageClass }}
|
storageClassName: {{ .Values.master.data.storageClass }}
|
||||||
@@ -265,6 +316,10 @@ spec:
|
|||||||
{{- if eq .Values.master.logs.type "persistentVolumeClaim"}}
|
{{- if eq .Values.master.logs.type "persistentVolumeClaim"}}
|
||||||
- metadata:
|
- metadata:
|
||||||
name: seaweedfs-master-log-volume
|
name: seaweedfs-master-log-volume
|
||||||
|
{{- with .Values.master.logs.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
storageClassName: {{ .Values.master.logs.storageClass }}
|
storageClassName: {{ .Values.master.logs.storageClass }}
|
||||||
|
|||||||
@@ -0,0 +1,102 @@
|
|||||||
|
{{- if .Values.master.enabled }}
|
||||||
|
{{- if .Values.filer.s3.enabled }}
|
||||||
|
{{- if .Values.filer.s3.createBuckets }}
|
||||||
|
---
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: "{{ $.Release.Name }}-bucket-hook"
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": post-install
|
||||||
|
"helm.sh/hook-weight": "-5"
|
||||||
|
"helm.sh/hook-delete-policy": hook-succeeded
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: "{{ .Release.Name }}"
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name | quote }}
|
||||||
|
spec:
|
||||||
|
restartPolicy: Never
|
||||||
|
{{- if .Values.filer.podSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit .Values.filer.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
containers:
|
||||||
|
- name: post-install-job
|
||||||
|
image: {{ template "master.image" . }}
|
||||||
|
env:
|
||||||
|
- name: WEED_CLUSTER_DEFAULT
|
||||||
|
value: "sw"
|
||||||
|
- name: WEED_CLUSTER_SW_MASTER
|
||||||
|
value: "{{ template "seaweedfs.name" . }}-master.{{ .Release.Namespace }}:9333"
|
||||||
|
- name: WEED_CLUSTER_SW_FILER
|
||||||
|
value: "{{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:8888"
|
||||||
|
- name: POD_IP
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: status.podIP
|
||||||
|
- name: POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: SEAWEEDFS_FULLNAME
|
||||||
|
value: "{{ template "seaweedfs.name" . }}"
|
||||||
|
command:
|
||||||
|
- "/bin/sh"
|
||||||
|
- "-ec"
|
||||||
|
- |
|
||||||
|
{{- range $reg, $props := $.Values.filer.s3.createBuckets }}
|
||||||
|
exec /bin/echo \
|
||||||
|
"s3.bucket.create --name {{ $props.name }}" |\
|
||||||
|
/usr/bin/weed shell
|
||||||
|
{{- end }}
|
||||||
|
{{- range $reg, $props := $.Values.filer.s3.createBuckets }}
|
||||||
|
{{- if $props.anonymousRead }}
|
||||||
|
exec /bin/echo \
|
||||||
|
"s3.configure --user anonymous \
|
||||||
|
--buckets {{ $props.name }} \
|
||||||
|
--actions Read \
|
||||||
|
--apply true" |\
|
||||||
|
/usr/bin/weed shell
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.s3.enableAuth }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: config-users
|
||||||
|
mountPath: /etc/sw
|
||||||
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
|
ports:
|
||||||
|
- containerPort: {{ .Values.master.port }}
|
||||||
|
name: swfs-master
|
||||||
|
{{- if and .Values.global.monitoring.enabled .Values.master.metricsPort }}
|
||||||
|
- containerPort: {{ .Values.master.metricsPort }}
|
||||||
|
name: metrics
|
||||||
|
{{- end }}
|
||||||
|
- containerPort: {{ .Values.master.grpcPort }}
|
||||||
|
#name: swfs-master-grpc
|
||||||
|
{{- if .Values.filer.containerSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit .Values.filer.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.filer.s3.enableAuth }}
|
||||||
|
volumes:
|
||||||
|
- name: config-users
|
||||||
|
secret:
|
||||||
|
defaultMode: 420
|
||||||
|
{{- if not (empty .Values.filer.s3.existingConfigSecret) }}
|
||||||
|
secretName: {{ .Values.filer.s3.existingConfigSecret }}
|
||||||
|
{{- else }}
|
||||||
|
secretName: seaweedfs-s3-secret
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}{{/** if .Values.filer.s3.enableAuth **/}}
|
||||||
|
{{- end }}{{/** if .Values.master.enabled **/}}
|
||||||
|
{{- end }}{{/** if .Values.filer.s3.enabled **/}}
|
||||||
|
{{- end }}{{/** if .Values.filer.s3.createBuckets **/}}
|
||||||
@@ -24,6 +24,19 @@ spec:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: s3
|
app.kubernetes.io/component: s3
|
||||||
|
{{ with .Values.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.s3.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{ with .Values.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.s3.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: {{ default .Values.global.restartPolicy .Values.s3.restartPolicy }}
|
restartPolicy: {{ default .Values.global.restartPolicy .Values.s3.restartPolicy }}
|
||||||
{{- if .Values.s3.tolerations }}
|
{{- if .Values.s3.tolerations }}
|
||||||
@@ -43,6 +56,9 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
{{ tpl .Values.s3.initContainers . | nindent 8 | trim }}
|
{{ tpl .Values.s3.initContainers . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.s3.podSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit .Values.s3.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: seaweedfs
|
- name: seaweedfs
|
||||||
image: {{ template "s3.image" . }}
|
image: {{ template "s3.image" . }}
|
||||||
@@ -62,18 +78,34 @@ spec:
|
|||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: SEAWEEDFS_FULLNAME
|
- name: SEAWEEDFS_FULLNAME
|
||||||
value: "{{ template "seaweedfs.name" . }}"
|
value: "{{ template "seaweedfs.name" . }}"
|
||||||
|
{{- if .Values.s3.extraEnvironmentVars }}
|
||||||
|
{{- range $key, $value := .Values.s3.extraEnvironmentVars }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.extraEnvironmentVars }}
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command:
|
command:
|
||||||
- "/bin/sh"
|
- "/bin/sh"
|
||||||
- "-ec"
|
- "-ec"
|
||||||
- |
|
- |
|
||||||
exec /usr/bin/weed \
|
exec /usr/bin/weed \
|
||||||
{{- if eq .Values.s3.logs.type "hostPath" }}
|
{{- if or (eq .Values.s3.logs.type "hostPath") (eq .Values.s3.logs.type "emptyDir") }}
|
||||||
-logdir=/logs \
|
-logdir=/logs \
|
||||||
{{- else }}
|
{{- else }}
|
||||||
-logtostderr=true \
|
-logtostderr=true \
|
||||||
@@ -110,13 +142,15 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
-filer={{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:{{ .Values.filer.port }}
|
-filer={{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:{{ .Values.filer.port }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if eq .Values.s3.logs.type "hostPath" }}
|
{{- if or (eq .Values.s3.logs.type "hostPath") (eq .Values.s3.logs.type "emptyDir") }}
|
||||||
- name: logs
|
- name: logs
|
||||||
mountPath: "/logs/"
|
mountPath: "/logs/"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.s3.enableAuth }}
|
||||||
- mountPath: /etc/sw
|
- mountPath: /etc/sw
|
||||||
name: config-users
|
name: config-users
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
- name: security-config
|
- name: security-config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -174,17 +208,33 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{ tpl .Values.s3.resources . | nindent 12 | trim }}
|
{{ tpl .Values.s3.resources . | nindent 12 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.s3.containerSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit .Values.s3.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.s3.sidecars }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.s3.sidecars "context" $) | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
|
{{- if .Values.s3.enableAuth }}
|
||||||
- name: config-users
|
- name: config-users
|
||||||
secret:
|
secret:
|
||||||
defaultMode: 420
|
defaultMode: 420
|
||||||
|
{{- if .Values.s3.existingConfigSecret }}
|
||||||
|
secretName: {{ .Values.s3.existingConfigSecret }}
|
||||||
|
{{- else }}
|
||||||
secretName: seaweedfs-s3-secret
|
secretName: seaweedfs-s3-secret
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if eq .Values.s3.logs.type "hostPath" }}
|
{{- if eq .Values.s3.logs.type "hostPath" }}
|
||||||
- name: logs
|
- name: logs
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ .Values.s3.logs.hostPathPrefix }}/logs/seaweedfs/s3
|
path: {{ .Values.s3.logs.hostPathPrefix }}/logs/seaweedfs/s3
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if eq .Values.s3.logs.type "emptyDir" }}
|
||||||
|
- name: logs
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
- name: security-config
|
- name: security-config
|
||||||
configMap:
|
configMap:
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{{- if .Values.s3.ingress.enabled }}
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
{{- else }}
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
{{- end }}
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: ingress-{{ template "seaweedfs.name" . }}-s3
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
{{- with .Values.s3.ingress.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/component: s3
|
||||||
|
spec:
|
||||||
|
ingressClassName: {{ .Values.s3.ingress.className | quote }}
|
||||||
|
tls:
|
||||||
|
{{ .Values.s3.ingress.tls | default list | toYaml | nindent 6}}
|
||||||
|
rules:
|
||||||
|
- http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ template "seaweedfs.name" . }}-s3
|
||||||
|
port:
|
||||||
|
number: {{ .Values.s3.port }}
|
||||||
|
#name:
|
||||||
|
{{- else }}
|
||||||
|
serviceName: {{ template "seaweedfs.name" . }}-s3
|
||||||
|
servicePort: {{ .Values.s3.port }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.s3.ingress.host }}
|
||||||
|
host: {{ .Values.s3.ingress.host }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
{{- if not (or .Values.filer.s3.skipAuthSecretCreation .Values.s3.skipAuthSecretCreation) }}
|
{{- if or (and .Values.filer.s3.enabled .Values.filer.s3.enableAuth (not .Values.filer.s3.existingConfigSecret)) (and .Values.s3.enabled .Values.s3.enableAuth (not .Values.s3.existingConfigSecret)) }}
|
||||||
{{- $access_key_admin := randAlphaNum 16 -}}
|
{{- $access_key_admin := randAlphaNum 16 -}}
|
||||||
{{- $secret_key_admin := randAlphaNum 32 -}}
|
{{- $secret_key_admin := randAlphaNum 32 -}}
|
||||||
{{- $access_key_read := randAlphaNum 16 -}}
|
{{- $access_key_read := randAlphaNum 16 -}}
|
||||||
@@ -32,4 +32,4 @@ stringData:
|
|||||||
s3_auditLogConfig.json: |
|
s3_auditLogConfig.json: |
|
||||||
{{ toJson .Values.s3.auditLogConfig | nindent 4 }}
|
{{ toJson .Values.s3.auditLogConfig | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if or .Values.s3.enabled .Values.filer.s3.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
@@ -9,6 +10,7 @@ metadata:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
spec:
|
spec:
|
||||||
|
internalTrafficPolicy: {{ .Values.s3.internalTrafficPolicy | default "Cluster" }}
|
||||||
ports:
|
ports:
|
||||||
- name: "swfs-s3"
|
- name: "swfs-s3"
|
||||||
port: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
|
port: {{ if .Values.s3.enabled }}{{ .Values.s3.port }}{{ else }}{{ .Values.filer.s3.port }}{{ end }}
|
||||||
@@ -29,3 +31,4 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: {{ if .Values.s3.enabled }}s3{{ else }}filer{{ end }}
|
app.kubernetes.io/component: {{ if .Values.s3.enabled }}s3{{ else }}filer{{ end }}
|
||||||
|
{{- end }}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if or .Values.s3.enabled .Values.filer.s3.enabled }}
|
||||||
{{- if .Values.s3.metricsPort }}
|
{{- if .Values.s3.metricsPort }}
|
||||||
{{- if .Values.global.monitoring.enabled }}
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
@@ -11,6 +12,9 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: s3
|
app.kubernetes.io/component: s3
|
||||||
|
{{- with .Values.global.monitoring.additionalLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 30s
|
- interval: 30s
|
||||||
@@ -21,4 +25,5 @@ spec:
|
|||||||
app: {{ template "seaweedfs.name" . }}
|
app: {{ template "seaweedfs.name" . }}
|
||||||
component: s3
|
component: s3
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.filer.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
type: Opaque
|
type: Opaque
|
||||||
@@ -17,3 +18,4 @@ stringData:
|
|||||||
password: "HardCodedPassword"
|
password: "HardCodedPassword"
|
||||||
# better to random generate and create in DB
|
# better to random generate and create in DB
|
||||||
# password: {{ randAlphaNum 10 | sha256sum | b64enc | trunc 32 }}
|
# password: {{ randAlphaNum 10 | sha256sum | b64enc | trunc 32 }}
|
||||||
|
{{- end }}
|
||||||
@@ -13,10 +13,38 @@ data:
|
|||||||
security.toml: |-
|
security.toml: |-
|
||||||
# this file is read by master, volume server, and filer
|
# this file is read by master, volume server, and filer
|
||||||
|
|
||||||
|
{{- if .Values.global.securityConfig.jwtSigning.volumeWrite }}
|
||||||
# the jwt signing key is read by master and volume server
|
# the jwt signing key is read by master and volume server
|
||||||
# a jwt expires in 10 seconds
|
# a jwt expires in 10 seconds
|
||||||
[jwt.signing]
|
[jwt.signing]
|
||||||
key = "{{ randAlphaNum 10 | b64enc }}"
|
key = "{{ randAlphaNum 10 | b64enc }}"
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.global.securityConfig.jwtSigning.volumeRead }}
|
||||||
|
# this jwt signing key is read by master and volume server, and it is used for read operations:
|
||||||
|
# - the Master server generates the JWT, which can be used to read a certain file on a volume server
|
||||||
|
# - the Volume server validates the JWT on reading
|
||||||
|
[jwt.signing.read]
|
||||||
|
key = "{{ randAlphaNum 10 | b64enc }}"
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.global.securityConfig.jwtSigning.filerWrite }}
|
||||||
|
# If this JWT key is configured, Filer only accepts writes over HTTP if they are signed with this JWT:
|
||||||
|
# - f.e. the S3 API Shim generates the JWT
|
||||||
|
# - the Filer server validates the JWT on writing
|
||||||
|
# the jwt defaults to expire after 10 seconds.
|
||||||
|
[jwt.filer_signing]
|
||||||
|
key = "{{ randAlphaNum 10 | b64enc }}"
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.global.securityConfig.jwtSigning.filerRead }}
|
||||||
|
# If this JWT key is configured, Filer only accepts reads over HTTP if they are signed with this JWT:
|
||||||
|
# - f.e. the S3 API Shim generates the JWT
|
||||||
|
# - the Filer server validates the JWT on writing
|
||||||
|
# the jwt defaults to expire after 10 seconds.
|
||||||
|
[jwt.filer_signing.read]
|
||||||
|
key = "{{ randAlphaNum 10 | b64enc }}"
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
# all grpc tls authentications are mutual
|
# all grpc tls authentications are mutual
|
||||||
# the values for the following ca, cert, and key are paths to the PERM files.
|
# the values for the following ca, cert, and key are paths to the PERM files.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: seaweedfs-rw-cr
|
name: {{ .Values.global.serviceAccountName }}-rw-cr
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
@@ -18,7 +18,7 @@ rules:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: seaweedfs-rw-sa
|
name: {{ .Values.global.serviceAccountName }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
@@ -29,7 +29,7 @@ metadata:
|
|||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: system:serviceaccount:seaweedfs-rw-sa:default
|
name: system:serviceaccount:{{ .Values.global.serviceAccountName }}:default
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
@@ -37,10 +37,10 @@ metadata:
|
|||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: seaweedfs-rw-sa
|
name: {{ .Values.global.serviceAccountName }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: seaweedfs-rw-cr
|
name: {{ .Values.global.serviceAccountName }}-rw-cr
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.global.enableSecurity }}
|
{{- if and .Values.global.enableSecurity (not .Values.certificates.externalCertificates.enabled)}}
|
||||||
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
apiVersion: cert-manager.io/v1{{ if .Values.global.certificates.alphacrds }}alpha1{{ end }}
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.volume.enabled }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
@@ -10,6 +11,7 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
spec:
|
spec:
|
||||||
clusterIP: None
|
clusterIP: None
|
||||||
|
internalTrafficPolicy: {{ .Values.volume.internalTrafficPolicy | default "Cluster" }}
|
||||||
ports:
|
ports:
|
||||||
- name: "swfs-volume"
|
- name: "swfs-volume"
|
||||||
port: {{ .Values.volume.port }}
|
port: {{ .Values.volume.port }}
|
||||||
@@ -27,4 +29,5 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: volume
|
app.kubernetes.io/component: volume
|
||||||
|
{{- end }}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.volume.enabled }}
|
||||||
{{- if .Values.volume.metricsPort }}
|
{{- if .Values.volume.metricsPort }}
|
||||||
{{- if .Values.global.monitoring.enabled }}
|
{{- if .Values.global.monitoring.enabled }}
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
@@ -11,6 +12,9 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: volume
|
app.kubernetes.io/component: volume
|
||||||
|
{{- with .Values.global.monitoring.additionalLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- interval: 30s
|
- interval: 30s
|
||||||
@@ -21,4 +25,5 @@ spec:
|
|||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
app.kubernetes.io/component: volume
|
app.kubernetes.io/component: volume
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@@ -12,11 +12,10 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
serviceName: {{ template "seaweedfs.name" . }}-volume
|
serviceName: {{ template "seaweedfs.name" . }}-volume
|
||||||
replicas: {{ .Values.volume.replicas }}
|
replicas: {{ .Values.volume.replicas }}
|
||||||
podManagementPolicy: Parallel
|
podManagementPolicy: {{ .Values.volume.podManagementPolicy }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: volume
|
app.kubernetes.io/component: volume
|
||||||
template:
|
template:
|
||||||
@@ -26,6 +25,19 @@ spec:
|
|||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/component: volume
|
app.kubernetes.io/component: volume
|
||||||
|
{{ with .Values.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.volume.podLabels }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
annotations:
|
||||||
|
{{ with .Values.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.volume.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.volume.affinity }}
|
{{- if .Values.volume.affinity }}
|
||||||
affinity:
|
affinity:
|
||||||
@@ -42,28 +54,33 @@ spec:
|
|||||||
priorityClassName: {{ .Values.volume.priorityClassName | quote }}
|
priorityClassName: {{ .Values.volume.priorityClassName | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
{{- if .Values.volume.serviceAccountName }}
|
{{- if .Values.global.createClusterRole }}
|
||||||
serviceAccountName: {{ .Values.volume.serviceAccountName | quote }}
|
serviceAccountName: {{ .Values.volume.serviceAccountName | default .Values.global.serviceAccountName | quote }} # for deleting statefulset pods after migration
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $initContainers_exists := include "volume.initContainers_exists" . -}}
|
{{- $initContainers_exists := include "volume.initContainers_exists" . -}}
|
||||||
{{- if $initContainers_exists }}
|
{{- if $initContainers_exists }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{- if .Values.volume.dir_idx }}
|
{{- if .Values.volume.idx }}
|
||||||
- name: seaweedfs-vol-move-idx
|
- name: seaweedfs-vol-move-idx
|
||||||
image: {{ template "volume.image" . }}
|
image: {{ template "volume.image" . }}
|
||||||
imagePullPolicy: {{ .Values.global.imagePullPolicy | default "IfNotPresent" }}
|
imagePullPolicy: {{ .Values.global.imagePullPolicy | default "IfNotPresent" }}
|
||||||
command: [ '/bin/sh', '-c' ]
|
command: [ '/bin/sh', '-c' ]
|
||||||
args: [ 'if ls {{ .Values.volume.dir }}/*.idx >/dev/null 2>&1; then mv {{ .Values.volume.dir }}/*.idx {{ .Values.volume.dir_idx }}/; fi;' ]
|
args: [ '{{range $dir := .Values.volume.dataDirs }}if ls /{{$dir.name}}/*.idx >/dev/null 2>&1; then mv /{{$dir.name}}/*.idx /idx/ ; fi; {{end}}' ]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: idx
|
- name: idx
|
||||||
mountPath: {{ .Values.volume.dir_idx }}
|
mountPath: /idx
|
||||||
- name: data
|
{{- range $dir := .Values.volume.dataDirs }}
|
||||||
mountPath: {{ .Values.volume.dir }}
|
- name: {{ $dir.name }}
|
||||||
|
mountPath: /{{ $dir.name }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.volume.initContainers }}
|
{{- if .Values.volume.initContainers }}
|
||||||
{{ tpl .Values.volume.initContainers . | nindent 8 | trim }}
|
{{ tpl .Values.volume.initContainers . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.volume.podSecurityContext.enabled }}
|
||||||
|
securityContext: {{- omit .Values.volume.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: seaweedfs
|
- name: seaweedfs
|
||||||
image: {{ template "volume.image" . }}
|
image: {{ template "volume.image" . }}
|
||||||
@@ -83,10 +100,26 @@ spec:
|
|||||||
fieldPath: status.hostIP
|
fieldPath: status.hostIP
|
||||||
- name: SEAWEEDFS_FULLNAME
|
- name: SEAWEEDFS_FULLNAME
|
||||||
value: "{{ template "seaweedfs.name" . }}"
|
value: "{{ template "seaweedfs.name" . }}"
|
||||||
|
{{- if .Values.volume.extraEnvironmentVars }}
|
||||||
|
{{- range $key, $value := .Values.volume.extraEnvironmentVars }}
|
||||||
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.extraEnvironmentVars }}
|
{{- if .Values.global.extraEnvironmentVars }}
|
||||||
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
{{- range $key, $value := .Values.global.extraEnvironmentVars }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
|
{{- if kindIs "string" $value }}
|
||||||
value: {{ $value | quote }}
|
value: {{ $value | quote }}
|
||||||
|
{{- else }}
|
||||||
|
valueFrom:
|
||||||
|
{{ toYaml $value | nindent 16 | trim }}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command:
|
command:
|
||||||
@@ -94,7 +127,7 @@ spec:
|
|||||||
- "-ec"
|
- "-ec"
|
||||||
- |
|
- |
|
||||||
exec /usr/bin/weed \
|
exec /usr/bin/weed \
|
||||||
{{- if eq .Values.volume.logs.type "hostPath" }}
|
{{- if .Values.volume.logs }}
|
||||||
-logdir=/logs \
|
-logdir=/logs \
|
||||||
{{- else }}
|
{{- else }}
|
||||||
-logtostderr=true \
|
-logtostderr=true \
|
||||||
@@ -109,11 +142,11 @@ spec:
|
|||||||
{{- if .Values.volume.metricsPort }}
|
{{- if .Values.volume.metricsPort }}
|
||||||
-metricsPort={{ .Values.volume.metricsPort }} \
|
-metricsPort={{ .Values.volume.metricsPort }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-dir={{ .Values.volume.dir }} \
|
-dir {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}/{{$dir.name}}{{end}} \
|
||||||
{{- if .Values.volume.dir_idx }}
|
{{- if .Values.volume.idx }}
|
||||||
-dir.idx={{ .Values.volume.dir_idx }} \
|
-dir.idx=/idx \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
-max={{ .Values.volume.maxVolumes }} \
|
-max {{range $index, $dir := .Values.volume.dataDirs }}{{if ne $index 0}},{{end}}{{$dir.maxVolumes}}{{end}} \
|
||||||
{{- if .Values.volume.rack }}
|
{{- if .Values.volume.rack }}
|
||||||
-rack={{ .Values.volume.rack }} \
|
-rack={{ .Values.volume.rack }} \
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -140,18 +173,20 @@ spec:
|
|||||||
-minFreeSpacePercent={{ .Values.volume.minFreeSpacePercent }} \
|
-minFreeSpacePercent={{ .Values.volume.minFreeSpacePercent }} \
|
||||||
-ip=${POD_NAME}.${SEAWEEDFS_FULLNAME}-volume.{{ .Release.Namespace }} \
|
-ip=${POD_NAME}.${SEAWEEDFS_FULLNAME}-volume.{{ .Release.Namespace }} \
|
||||||
-compactionMBps={{ .Values.volume.compactionMBps }} \
|
-compactionMBps={{ .Values.volume.compactionMBps }} \
|
||||||
-mserver={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}
|
-mserver={{ if .Values.global.masterServer }}{{.Values.global.masterServer}}{{ else }}{{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }}{{ end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
{{- range $dir := .Values.volume.dataDirs }}
|
||||||
mountPath: "{{ .Values.volume.dir }}/"
|
- name: {{ $dir.name }}
|
||||||
{{- if .Values.volume.dir_idx }}
|
mountPath: "/{{ $dir.name }}/"
|
||||||
- name: idx
|
|
||||||
mountPath: "{{ .Values.volume.dir_idx }}/"
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq .Values.volume.logs.type "hostPath" }}
|
{{- if .Values.volume.logs }}
|
||||||
- name: logs
|
- name: logs
|
||||||
mountPath: "/logs/"
|
mountPath: "/logs/"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.volume.idx }}
|
||||||
|
- name: idx
|
||||||
|
mountPath: "/idx/"
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if .Values.global.enableSecurity }}
|
||||||
- name: security-config
|
- name: security-config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -178,7 +213,7 @@ spec:
|
|||||||
- containerPort: {{ .Values.volume.port }}
|
- containerPort: {{ .Values.volume.port }}
|
||||||
name: swfs-vol
|
name: swfs-vol
|
||||||
{{- if .Values.volume.metricsPort }}
|
{{- if .Values.volume.metricsPort }}
|
||||||
- containerPort: {{ .Values.filer.metricsPort }}
|
- containerPort: {{ .Values.volume.metricsPort }}
|
||||||
name: metrics
|
name: metrics
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- containerPort: {{ .Values.volume.grpcPort }}
|
- containerPort: {{ .Values.volume.grpcPort }}
|
||||||
@@ -211,28 +246,70 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{ tpl .Values.volume.resources . | nindent 12 | trim }}
|
{{ tpl .Values.volume.resources . | nindent 12 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $hostpath_exists := include "volume.hostpath_exists" . -}}
|
{{- if .Values.volume.containerSecurityContext.enabled }}
|
||||||
{{- if $hostpath_exists }}
|
securityContext: {{- omit .Values.volume.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.volume.sidecars }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.volume.sidecars "context" $) | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- if eq .Values.volume.data.type "hostPath" }}
|
|
||||||
- name: data
|
{{- range $dir := .Values.volume.dataDirs }}
|
||||||
|
|
||||||
|
{{- if eq $dir.type "hostPath" }}
|
||||||
|
- name: {{ $dir.name }}
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ .Values.volume.data.hostPathPrefix }}/object_store/
|
path: {{ $dir.hostPathPrefix }}/object_store/
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and (eq .Values.volume.idx.type "hostPath") .Values.volume.dir_idx }}
|
{{- if eq $dir.type "existingClaim" }}
|
||||||
|
- name: {{ $dir.name }}
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ $dir.claimName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if eq $dir.type "emptyDir" }}
|
||||||
|
- name: {{ $dir.name }}
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.volume.idx }}
|
||||||
|
{{- if eq .Values.volume.idx.type "hostPath" }}
|
||||||
- name: idx
|
- name: idx
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ .Values.volume.idx.hostPathPrefix }}/seaweedfs-volume-idx/
|
path: {{ .Values.volume.idx.hostPathPrefix }}/seaweedfs-volume-idx/
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq .Values.volume.logs.type "hostPath" }}
|
{{- if eq .Values.volume.idx.type "existingClaim" }}
|
||||||
|
- name: idx
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.volume.idx.claimName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if eq .Values.volume.idx.type "emptyDir" }}
|
||||||
|
- name: idx
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.volume.logs }}
|
||||||
|
{{- if eq .Values.volume.logs.type "hostPath" }}
|
||||||
- name: logs
|
- name: logs
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ .Values.volume.logs.hostPathPrefix }}/logs/seaweedfs/volume
|
path: {{ .Values.volume.logs.hostPathPrefix }}/logs/seaweedfs/volume
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.enableSecurity }}
|
{{- if eq .Values.volume.logs.type "existingClaim" }}
|
||||||
|
- name: logs
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ .Values.volume.logs.claimName }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if eq .Values.volume.logs.type "emptyDir" }}
|
||||||
|
- name: logs
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.global.enableSecurity }}
|
||||||
- name: security-config
|
- name: security-config
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ template "seaweedfs.name" . }}-security-config
|
name: {{ template "seaweedfs.name" . }}-security-config
|
||||||
@@ -251,31 +328,39 @@ spec:
|
|||||||
- name: client-cert
|
- name: client-cert
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ template "seaweedfs.name" . }}-client-cert
|
secretName: {{ template "seaweedfs.name" . }}-client-cert
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.volume.extraVolumes }}
|
{{- if .Values.volume.extraVolumes }}
|
||||||
{{ tpl .Values.volume.extraVolumes . | indent 8 | trim }}
|
{{ tpl .Values.volume.extraVolumes . | indent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.volume.nodeSelector }}
|
{{- if .Values.volume.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ tpl .Values.volume.nodeSelector . | indent 8 | trim }}
|
{{ tpl .Values.volume.nodeSelector . | indent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $pvc_exists := include "volume.pvc_exists" . -}}
|
|
||||||
{{- if $pvc_exists }}
|
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
{{- if eq .Values.volume.data.type "persistentVolumeClaim"}}
|
{{- range $dir := .Values.volume.dataDirs }}
|
||||||
|
{{- if eq $dir.type "persistentVolumeClaim" }}
|
||||||
- metadata:
|
- metadata:
|
||||||
name: data
|
name: {{ $dir.name }}
|
||||||
|
{{- with $dir.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
storageClassName: {{ .Values.volume.data.storageClass }}
|
storageClassName: {{ $dir.storageClass }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.volume.data.size }}
|
storage: {{ $dir.size }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and (eq .Values.volume.idx.type "persistentVolumeClaim") .Values.volume.dir_idx }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if and .Values.volume.idx (eq .Values.volume.idx.type "persistentVolumeClaim") }}
|
||||||
- metadata:
|
- metadata:
|
||||||
name: idx
|
name: idx
|
||||||
|
{{- with .Values.volume.idx.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
storageClassName: {{ .Values.volume.idx.storageClass }}
|
storageClassName: {{ .Values.volume.idx.storageClass }}
|
||||||
@@ -283,9 +368,13 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.volume.idx.size }}
|
storage: {{ .Values.volume.idx.size }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq .Values.volume.logs.type "persistentVolumeClaim" }}
|
{{- if and .Values.volume.logs (eq .Values.volume.logs.type "persistentVolumeClaim") }}
|
||||||
- metadata:
|
- metadata:
|
||||||
name: logs
|
name: logs
|
||||||
|
{{- with .Values.volume.logs.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
storageClassName: {{ .Values.volume.logs.storageClass }}
|
storageClassName: {{ .Values.volume.logs.storageClass }}
|
||||||
@@ -293,5 +382,4 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.volume.logs.size }}
|
storage: {{ .Values.volume.logs.size }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
@@ -10,12 +10,22 @@ global:
|
|||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
loggingLevel: 1
|
loggingLevel: 1
|
||||||
enableSecurity: false
|
enableSecurity: false
|
||||||
|
masterServer: null
|
||||||
|
securityConfig:
|
||||||
|
jwtSigning:
|
||||||
|
volumeWrite: true
|
||||||
|
volumeRead: false
|
||||||
|
filerWrite: false
|
||||||
|
filerRead: false
|
||||||
|
# we will use this serviceAccountName for all ClusterRoles/ClusterRoleBindings
|
||||||
|
serviceAccountName: "seaweedfs"
|
||||||
certificates:
|
certificates:
|
||||||
alphacrds: false
|
alphacrds: false
|
||||||
monitoring:
|
monitoring:
|
||||||
enabled: false
|
enabled: false
|
||||||
gatewayHost: null
|
gatewayHost: null
|
||||||
gatewayPort: null
|
gatewayPort: null
|
||||||
|
additionalLabels: {}
|
||||||
# if enabled will use global.replicationPlacment and override master & filer defaultReplicaPlacement config
|
# if enabled will use global.replicationPlacment and override master & filer defaultReplicaPlacement config
|
||||||
enableReplication: false
|
enableReplication: false
|
||||||
# replication type is XYZ:
|
# replication type is XYZ:
|
||||||
@@ -27,6 +37,10 @@ global:
|
|||||||
WEED_CLUSTER_DEFAULT: "sw"
|
WEED_CLUSTER_DEFAULT: "sw"
|
||||||
WEED_CLUSTER_SW_MASTER: "seaweedfs-master.seaweedfs:9333"
|
WEED_CLUSTER_SW_MASTER: "seaweedfs-master.seaweedfs:9333"
|
||||||
WEED_CLUSTER_SW_FILER: "seaweedfs-filer-client.seaweedfs:8888"
|
WEED_CLUSTER_SW_FILER: "seaweedfs-filer-client.seaweedfs:8888"
|
||||||
|
# WEED_JWT_SIGNING_KEY:
|
||||||
|
# secretKeyRef:
|
||||||
|
# name: seaweedfs-signing-key
|
||||||
|
# key: signingKey
|
||||||
|
|
||||||
image:
|
image:
|
||||||
registry: ""
|
registry: ""
|
||||||
@@ -64,30 +78,64 @@ master:
|
|||||||
|
|
||||||
config: |-
|
config: |-
|
||||||
# Enter any extra configuration for master.toml here.
|
# Enter any extra configuration for master.toml here.
|
||||||
# It may be be a multi-line string.
|
# It may be a multi-line string.
|
||||||
|
|
||||||
# can use ANY storage-class , example with local-path-provisioner
|
# You may use ANY storage-class, example with local-path-provisioner
|
||||||
|
# Annotations are optional.
|
||||||
# data:
|
# data:
|
||||||
# type: "persistentVolumeClaim"
|
# type: "persistentVolumeClaim"
|
||||||
# size: "24Ti"
|
# size: "24Ti"
|
||||||
# storageClass: "local-path-provisioner"
|
# storageClass: "local-path-provisioner"
|
||||||
|
# annotations:
|
||||||
|
# "key": "value"
|
||||||
|
#
|
||||||
|
# You may also spacify an existing claim:
|
||||||
|
# data:
|
||||||
|
# type: "existingClaim"
|
||||||
|
# claimName: "my-pvc"
|
||||||
|
#
|
||||||
|
# You can also use emptyDir storage:
|
||||||
|
# data:
|
||||||
|
# type: "emptyDir"
|
||||||
data:
|
data:
|
||||||
type: "hostPath"
|
type: "hostPath"
|
||||||
size: ""
|
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
hostPathPrefix: /ssd
|
hostPathPrefix: /ssd
|
||||||
|
|
||||||
|
# You can also use emptyDir storage:
|
||||||
|
# logs:
|
||||||
|
# type: "emptyDir"
|
||||||
logs:
|
logs:
|
||||||
type: "hostPath"
|
type: "hostPath"
|
||||||
size: ""
|
size: ""
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
hostPathPrefix: /storage
|
hostPathPrefix: /storage
|
||||||
|
|
||||||
|
## @param master.sidecars Add additional sidecar containers to the master pod(s)
|
||||||
|
## e.g:
|
||||||
|
## sidecars:
|
||||||
|
## - name: your-image-name
|
||||||
|
## image: your-image
|
||||||
|
## imagePullPolicy: Always
|
||||||
|
## ports:
|
||||||
|
## - name: portname
|
||||||
|
## containerPort: 1234
|
||||||
|
##
|
||||||
|
sidecars: []
|
||||||
initContainers: ""
|
initContainers: ""
|
||||||
|
|
||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
|
# Labels to be added to the master pods
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the master pods
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
|
## Set podManagementPolicy
|
||||||
|
podManagementPolicy: Parallel
|
||||||
|
|
||||||
# Resource requests, limits, etc. for the master cluster placement. This
|
# Resource requests, limits, etc. for the master cluster placement. This
|
||||||
# should map directly to the value of the resources field for a PodSpec,
|
# should map directly to the value of the resources field for a PodSpec,
|
||||||
# formatted as a multi-line string. By default no direct resource request
|
# formatted as a multi-line string. By default no direct resource request
|
||||||
@@ -120,7 +168,7 @@ master:
|
|||||||
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
||||||
# Example:
|
# Example:
|
||||||
nodeSelector: |
|
nodeSelector: |
|
||||||
beta.kubernetes.io/arch: amd64
|
kubernetes.io/arch: amd64
|
||||||
# nodeSelector: |
|
# nodeSelector: |
|
||||||
# sw-backend: "true"
|
# sw-backend: "true"
|
||||||
|
|
||||||
@@ -132,12 +180,31 @@ master:
|
|||||||
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
||||||
serviceAccountName: ""
|
serviceAccountName: ""
|
||||||
|
|
||||||
|
# Configure security context for Pod
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||||
|
# Example:
|
||||||
|
# podSecurityContext:
|
||||||
|
# enabled: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
# runAsGroup: 3000
|
||||||
|
# fsGroup: 2000
|
||||||
|
podSecurityContext: {}
|
||||||
|
|
||||||
|
# Configure security context for Container
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||||
|
# Example:
|
||||||
|
# containerSecurityContext:
|
||||||
|
# enabled: true
|
||||||
|
# runAsUser: 2000
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
containerSecurityContext: {}
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className: "nginx"
|
className: "nginx"
|
||||||
# host: false for "*" hostname
|
# host: false for "*" hostname
|
||||||
host: "master.seaweedfs.local"
|
host: "master.seaweedfs.local"
|
||||||
annotations: |
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/auth-type: "basic"
|
nginx.ingress.kubernetes.io/auth-type: "basic"
|
||||||
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
|
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
|
||||||
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Master'
|
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - SW-Master'
|
||||||
@@ -153,12 +220,13 @@ master:
|
|||||||
sub_filter '=/' '=./';
|
sub_filter '=/' '=./';
|
||||||
sub_filter '/seaweedfsstatic' './seaweedfsstatic';
|
sub_filter '/seaweedfsstatic' './seaweedfsstatic';
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
|
tls: []
|
||||||
|
|
||||||
extraEnvironmentVars:
|
extraEnvironmentVars:
|
||||||
WEED_MASTER_VOLUME_GROWTH_COPY_1: 7
|
WEED_MASTER_VOLUME_GROWTH_COPY_1: '7'
|
||||||
WEED_MASTER_VOLUME_GROWTH_COPY_2: 6
|
WEED_MASTER_VOLUME_GROWTH_COPY_2: '6'
|
||||||
WEED_MASTER_VOLUME_GROWTH_COPY_3: 3
|
WEED_MASTER_VOLUME_GROWTH_COPY_3: '3'
|
||||||
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1
|
WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: '1'
|
||||||
|
|
||||||
# used to configure livenessProbe on master-server containers
|
# used to configure livenessProbe on master-server containers
|
||||||
#
|
#
|
||||||
@@ -208,40 +276,73 @@ volume:
|
|||||||
# minimum free disk space(in percents). If free disk space lower this value - all volumes marks as ReadOnly
|
# minimum free disk space(in percents). If free disk space lower this value - all volumes marks as ReadOnly
|
||||||
minFreeSpacePercent: 7
|
minFreeSpacePercent: 7
|
||||||
|
|
||||||
# can use ANY storage-class , example with local-path-provisioner
|
# For each data disk you may use ANY storage-class, example with local-path-provisioner
|
||||||
# data:
|
# Annotations are optional.
|
||||||
# type: "persistentVolumeClaim"
|
# dataDirs:
|
||||||
# size: "24Ti"
|
# - name: data:
|
||||||
# storageClass: "local-path-provisioner"
|
# type: "persistentVolumeClaim"
|
||||||
data:
|
# size: "24Ti"
|
||||||
type: "hostPath"
|
# storageClass: "local-path-provisioner"
|
||||||
size: ""
|
# annotations:
|
||||||
storageClass: ""
|
# "key": "value"
|
||||||
hostPathPrefix: /storage
|
# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
||||||
|
#
|
||||||
|
# You may also spacify an existing claim:
|
||||||
|
# - name: data
|
||||||
|
# type: "existingClaim"
|
||||||
|
# claimName: "my-pvc"
|
||||||
|
# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
||||||
|
#
|
||||||
|
# You can also use emptyDir storage:
|
||||||
|
# - name: data
|
||||||
|
# type: "emptyDir"
|
||||||
|
# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
||||||
|
|
||||||
idx:
|
dataDirs:
|
||||||
|
- name: data1
|
||||||
type: "hostPath"
|
type: "hostPath"
|
||||||
size: ""
|
|
||||||
storageClass: ""
|
|
||||||
hostPathPrefix: /ssd
|
hostPathPrefix: /ssd
|
||||||
|
maxVolumes: 0
|
||||||
|
|
||||||
logs:
|
# - name: data2
|
||||||
type: "hostPath"
|
# type: "persistentVolumeClaim"
|
||||||
size: ""
|
# storageClass: "yourClassNameOfChoice"
|
||||||
storageClass: ""
|
# size: "800Gi"
|
||||||
hostPathPrefix: /storage
|
# maxVolumes: 0
|
||||||
|
|
||||||
|
# idx can be defined by:
|
||||||
|
#
|
||||||
|
# idx:
|
||||||
|
# type: "hostPath"
|
||||||
|
# hostPathPrefix: /ssd
|
||||||
|
#
|
||||||
|
# or
|
||||||
|
#
|
||||||
|
# idx:
|
||||||
|
# type: "persistentVolumeClaim"
|
||||||
|
# size: "20Gi"
|
||||||
|
# storageClass: "local-path-provisioner"
|
||||||
|
#
|
||||||
|
# or
|
||||||
|
#
|
||||||
|
# idx:
|
||||||
|
# type: "existingClaim"
|
||||||
|
# claimName: "myClaim"
|
||||||
|
#
|
||||||
|
# or
|
||||||
|
#
|
||||||
|
# idx:
|
||||||
|
# type: "emptyDir"
|
||||||
|
|
||||||
|
# same applies to "logs"
|
||||||
|
|
||||||
|
idx: {}
|
||||||
|
|
||||||
|
logs: {}
|
||||||
|
|
||||||
# limit background compaction or copying speed in mega bytes per second
|
# limit background compaction or copying speed in mega bytes per second
|
||||||
compactionMBps: "50"
|
compactionMBps: "50"
|
||||||
|
|
||||||
# Directories to store data files. dir[,dir]... (default "/tmp")
|
|
||||||
dir: "/data"
|
|
||||||
# Directories to store index files. dir[,dir]... (default is the same as "dir")
|
|
||||||
dir_idx: null
|
|
||||||
|
|
||||||
# Maximum numbers of volumes, count[,count]...
|
|
||||||
# If set to zero on non-windows OS, the limit will be auto configured. (default "7")
|
|
||||||
maxVolumes: "0"
|
|
||||||
|
|
||||||
# Volume server's rack name
|
# Volume server's rack name
|
||||||
rack: null
|
rack: null
|
||||||
@@ -258,11 +359,31 @@ volume:
|
|||||||
# Adjust jpg orientation when uploading.
|
# Adjust jpg orientation when uploading.
|
||||||
imagesFixOrientation: false
|
imagesFixOrientation: false
|
||||||
|
|
||||||
|
## @param volume.sidecars Add additional sidecar containers to the volume pod(s)
|
||||||
|
## e.g:
|
||||||
|
## sidecars:
|
||||||
|
## - name: your-image-name
|
||||||
|
## image: your-image
|
||||||
|
## imagePullPolicy: Always
|
||||||
|
## ports:
|
||||||
|
## - name: portname
|
||||||
|
## containerPort: 1234
|
||||||
|
##
|
||||||
|
sidecars: []
|
||||||
initContainers: ""
|
initContainers: ""
|
||||||
|
|
||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
|
# Labels to be added to the volume pods
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the volume pods
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
|
## Set podManagementPolicy
|
||||||
|
podManagementPolicy: Parallel
|
||||||
|
|
||||||
# Affinity Settings
|
# Affinity Settings
|
||||||
# Commenting out or setting as empty the affinity variable, will allow
|
# Commenting out or setting as empty the affinity variable, will allow
|
||||||
# deployment to single node services such as Minikube
|
# deployment to single node services such as Minikube
|
||||||
@@ -291,7 +412,7 @@ volume:
|
|||||||
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
||||||
# Example:
|
# Example:
|
||||||
nodeSelector: |
|
nodeSelector: |
|
||||||
beta.kubernetes.io/arch: amd64
|
kubernetes.io/arch: amd64
|
||||||
# nodeSelector: |
|
# nodeSelector: |
|
||||||
# sw-volume: "true"
|
# sw-volume: "true"
|
||||||
|
|
||||||
@@ -303,6 +424,27 @@ volume:
|
|||||||
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
||||||
serviceAccountName: ""
|
serviceAccountName: ""
|
||||||
|
|
||||||
|
extraEnvironmentVars:
|
||||||
|
|
||||||
|
# Configure security context for Pod
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||||
|
# Example:
|
||||||
|
# podSecurityContext:
|
||||||
|
# enabled: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
# runAsGroup: 3000
|
||||||
|
# fsGroup: 2000
|
||||||
|
podSecurityContext: {}
|
||||||
|
|
||||||
|
# Configure security context for Container
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||||
|
# Example:
|
||||||
|
# containerSecurityContext:
|
||||||
|
# enabled: true
|
||||||
|
# runAsUser: 2000
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
containerSecurityContext: {}
|
||||||
|
|
||||||
# used to configure livenessProbe on volume-server containers
|
# used to configure livenessProbe on volume-server containers
|
||||||
#
|
#
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
@@ -373,29 +515,63 @@ filer:
|
|||||||
storage: 25Gi
|
storage: 25Gi
|
||||||
# storageClass is the class of storage which defaults to null (the Kube cluster will pick the default).
|
# storageClass is the class of storage which defaults to null (the Kube cluster will pick the default).
|
||||||
storageClass: null
|
storageClass: null
|
||||||
|
# You may use ANY storage-class, example with local-path-provisioner
|
||||||
# can use ANY storage-class , example with local-path-provisioner
|
# Annotations are optional.
|
||||||
# data:
|
# data:
|
||||||
# type: "persistentVolumeClaim"
|
# type: "persistentVolumeClaim"
|
||||||
# size: "24Ti"
|
# size: "24Ti"
|
||||||
# storageClass: "local-path-provisioner"
|
# storageClass: "local-path-provisioner"
|
||||||
|
# annotations:
|
||||||
|
# "key": "value"
|
||||||
|
#
|
||||||
|
# You may also specify an existing claim:
|
||||||
|
# data:
|
||||||
|
# type: "existingClaim"
|
||||||
|
# claimName: "my-pvc"
|
||||||
|
#
|
||||||
|
# You can also use emptyDir storage:
|
||||||
|
# data:
|
||||||
|
# type: "emptyDir"
|
||||||
data:
|
data:
|
||||||
type: "hostPath"
|
type: "hostPath"
|
||||||
size: ""
|
size: ""
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
hostPathPrefix: /storage
|
hostPathPrefix: /storage
|
||||||
|
|
||||||
|
# You can also use emptyDir storage:
|
||||||
|
# logs:
|
||||||
|
# type: "emptyDir"
|
||||||
logs:
|
logs:
|
||||||
type: "hostPath"
|
type: "hostPath"
|
||||||
size: ""
|
size: ""
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
hostPathPrefix: /storage
|
hostPathPrefix: /storage
|
||||||
|
|
||||||
|
## @param filer.sidecars Add additional sidecar containers to the filer pod(s)
|
||||||
|
## e.g:
|
||||||
|
## sidecars:
|
||||||
|
## - name: your-image-name
|
||||||
|
## image: your-image
|
||||||
|
## imagePullPolicy: Always
|
||||||
|
## ports:
|
||||||
|
## - name: portname
|
||||||
|
## containerPort: 1234
|
||||||
|
##
|
||||||
|
sidecars: []
|
||||||
initContainers: ""
|
initContainers: ""
|
||||||
|
|
||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
|
# Labels to be added to the filer pods
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the filer pods
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
|
## Set podManagementPolicy
|
||||||
|
podManagementPolicy: Parallel
|
||||||
|
|
||||||
# Affinity Settings
|
# Affinity Settings
|
||||||
# Commenting out or setting as empty the affinity variable, will allow
|
# Commenting out or setting as empty the affinity variable, will allow
|
||||||
# deployment to single node services such as Minikube
|
# deployment to single node services such as Minikube
|
||||||
@@ -428,7 +604,7 @@ filer:
|
|||||||
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
||||||
# Example:
|
# Example:
|
||||||
nodeSelector: |
|
nodeSelector: |
|
||||||
beta.kubernetes.io/arch: amd64
|
kubernetes.io/arch: amd64
|
||||||
# nodeSelector: |
|
# nodeSelector: |
|
||||||
# sw-backend: "true"
|
# sw-backend: "true"
|
||||||
|
|
||||||
@@ -440,12 +616,31 @@ filer:
|
|||||||
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
||||||
serviceAccountName: ""
|
serviceAccountName: ""
|
||||||
|
|
||||||
|
# Configure security context for Pod
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||||
|
# Example:
|
||||||
|
# podSecurityContext:
|
||||||
|
# enabled: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
# runAsGroup: 3000
|
||||||
|
# fsGroup: 2000
|
||||||
|
podSecurityContext: {}
|
||||||
|
|
||||||
|
# Configure security context for Container
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||||
|
# Example:
|
||||||
|
# containerSecurityContext:
|
||||||
|
# enabled: true
|
||||||
|
# runAsUser: 2000
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
containerSecurityContext: {}
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
className: "nginx"
|
className: "nginx"
|
||||||
# host: false for "*" hostname
|
# host: false for "*" hostname
|
||||||
host: "seaweedfs.cluster.local"
|
host: "seaweedfs.cluster.local"
|
||||||
annotations: |
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/backend-protocol: GRPC
|
nginx.ingress.kubernetes.io/backend-protocol: GRPC
|
||||||
nginx.ingress.kubernetes.io/auth-type: "basic"
|
nginx.ingress.kubernetes.io/auth-type: "basic"
|
||||||
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
|
nginx.ingress.kubernetes.io/auth-secret: "default/ingress-basic-auth-secret"
|
||||||
@@ -510,7 +705,7 @@ filer:
|
|||||||
timeoutSeconds: 10
|
timeoutSeconds: 10
|
||||||
|
|
||||||
# secret env variables
|
# secret env variables
|
||||||
secretExtraEnvironmentVars: []
|
secretExtraEnvironmentVars: {}
|
||||||
# WEED_POSTGRES_USERNAME:
|
# WEED_POSTGRES_USERNAME:
|
||||||
# secretKeyRef:
|
# secretKeyRef:
|
||||||
# name: postgres-credentials
|
# name: postgres-credentials
|
||||||
@@ -521,7 +716,7 @@ filer:
|
|||||||
# key: password
|
# key: password
|
||||||
|
|
||||||
s3:
|
s3:
|
||||||
enabled: true
|
enabled: false
|
||||||
port: 8333
|
port: 8333
|
||||||
# add additional https port
|
# add additional https port
|
||||||
httpsPort: 0
|
httpsPort: 0
|
||||||
@@ -531,8 +726,17 @@ filer:
|
|||||||
domainName: ""
|
domainName: ""
|
||||||
# enable user & permission to s3 (need to inject to all services)
|
# enable user & permission to s3 (need to inject to all services)
|
||||||
enableAuth: false
|
enableAuth: false
|
||||||
skipAuthSecretCreation: false
|
# set to the name of an existing kubernetes Secret with the s3 json config file
|
||||||
|
# should have a secret key called seaweedfs_s3_config with an inline json configure
|
||||||
|
existingConfigSecret: null
|
||||||
auditLogConfig: {}
|
auditLogConfig: {}
|
||||||
|
# You may specify buckets to be created during the install process.
|
||||||
|
# Buckets may be exposed publicly by setting `anonymousRead` to `true`
|
||||||
|
# createBuckets:
|
||||||
|
# - name: bucket-a
|
||||||
|
# anonymousRead: true
|
||||||
|
# - name: bucket-b
|
||||||
|
# anonymousRead: false
|
||||||
|
|
||||||
s3:
|
s3:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -551,22 +755,41 @@ s3:
|
|||||||
allowEmptyFolder: true
|
allowEmptyFolder: true
|
||||||
# enable user & permission to s3 (need to inject to all services)
|
# enable user & permission to s3 (need to inject to all services)
|
||||||
enableAuth: false
|
enableAuth: false
|
||||||
skipAuthSecretCreation: false
|
# set to the name of an existing kubernetes Secret with the s3 json config file
|
||||||
|
# should have a secret key called seaweedfs_s3_config with an inline json config
|
||||||
|
existingConfigSecret: null
|
||||||
auditLogConfig: {}
|
auditLogConfig: {}
|
||||||
|
|
||||||
# Suffix of the host name, {bucket}.{domainName}
|
# Suffix of the host name, {bucket}.{domainName}
|
||||||
domainName: ""
|
domainName: ""
|
||||||
|
|
||||||
|
## @param s3.sidecars Add additional sidecar containers to the s3 pod(s)
|
||||||
|
## e.g:
|
||||||
|
## sidecars:
|
||||||
|
## - name: your-image-name
|
||||||
|
## image: your-image
|
||||||
|
## imagePullPolicy: Always
|
||||||
|
## ports:
|
||||||
|
## - name: portname
|
||||||
|
## containerPort: 1234
|
||||||
|
##
|
||||||
|
sidecars: []
|
||||||
initContainers: ""
|
initContainers: ""
|
||||||
|
|
||||||
extraVolumes: ""
|
extraVolumes: ""
|
||||||
extraVolumeMounts: ""
|
extraVolumeMounts: ""
|
||||||
|
|
||||||
|
# Labels to be added to the s3 pods
|
||||||
|
podLabels: {}
|
||||||
|
|
||||||
|
# Annotations to be added to the s3 pods
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
# Resource requests, limits, etc. for the server cluster placement. This
|
# Resource requests, limits, etc. for the server cluster placement. This
|
||||||
# should map directly to the value of the resources field for a PodSpec,
|
# should map directly to the value of the resources field for a PodSpec,
|
||||||
# formatted as a multi-line string. By default no direct resource request
|
# formatted as a multi-line string. By default no direct resource request
|
||||||
# is made.
|
# is made.
|
||||||
resources: {}
|
resources: null
|
||||||
|
|
||||||
# Toleration Settings for server pods
|
# Toleration Settings for server pods
|
||||||
# This should be a multi-line string matching the Toleration array
|
# This should be a multi-line string matching the Toleration array
|
||||||
@@ -577,7 +800,7 @@ s3:
|
|||||||
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
|
||||||
# Example:
|
# Example:
|
||||||
nodeSelector: |
|
nodeSelector: |
|
||||||
beta.kubernetes.io/arch: amd64
|
kubernetes.io/arch: amd64
|
||||||
# nodeSelector: |
|
# nodeSelector: |
|
||||||
# sw-backend: "true"
|
# sw-backend: "true"
|
||||||
|
|
||||||
@@ -589,12 +812,36 @@ s3:
|
|||||||
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
||||||
serviceAccountName: ""
|
serviceAccountName: ""
|
||||||
|
|
||||||
|
# Configure security context for Pod
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||||
|
# Example:
|
||||||
|
# podSecurityContext:
|
||||||
|
# enabled: true
|
||||||
|
# runAsUser: 1000
|
||||||
|
# runAsGroup: 3000
|
||||||
|
# fsGroup: 2000
|
||||||
|
podSecurityContext: {}
|
||||||
|
|
||||||
|
# Configure security context for Container
|
||||||
|
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||||
|
# Example:
|
||||||
|
# containerSecurityContext:
|
||||||
|
# enabled: true
|
||||||
|
# runAsUser: 2000
|
||||||
|
# allowPrivilegeEscalation: false
|
||||||
|
containerSecurityContext: {}
|
||||||
|
|
||||||
|
# You can also use emptyDir storage:
|
||||||
|
# logs:
|
||||||
|
# type: "emptyDir"
|
||||||
logs:
|
logs:
|
||||||
type: "hostPath"
|
type: "hostPath"
|
||||||
size: ""
|
size: ""
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
hostPathPrefix: /storage
|
hostPathPrefix: /storage
|
||||||
|
|
||||||
|
extraEnvironmentVars:
|
||||||
|
|
||||||
# used to configure livenessProbe on s3 containers
|
# used to configure livenessProbe on s3 containers
|
||||||
#
|
#
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
@@ -621,6 +868,15 @@ s3:
|
|||||||
failureThreshold: 100
|
failureThreshold: 100
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 10
|
||||||
|
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
|
className: "nginx"
|
||||||
|
# host: false for "*" hostname
|
||||||
|
host: "seaweedfs.cluster.local"
|
||||||
|
# additional ingress annotations for the s3 endpoint
|
||||||
|
annotations: {}
|
||||||
|
tls: []
|
||||||
|
|
||||||
certificates:
|
certificates:
|
||||||
commonName: "SeaweedFS CA"
|
commonName: "SeaweedFS CA"
|
||||||
ipAddresses: []
|
ipAddresses: []
|
||||||
@@ -628,3 +884,13 @@ certificates:
|
|||||||
keySize: 2048
|
keySize: 2048
|
||||||
duration: 2160h # 90d
|
duration: 2160h # 90d
|
||||||
renewBefore: 360h # 15d
|
renewBefore: 360h # 15d
|
||||||
|
externalCertificates:
|
||||||
|
# This will avoid the need to use cert-manager and will rely on providing your own external certificates and CA
|
||||||
|
# you will need to store your provided certificates in the secret read by the different services:
|
||||||
|
# seaweedfs-master-cert, seaweedfs-filer-cert, etc. Can see any statefulset definition to see secret names
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# Labels to be added to all the created pods
|
||||||
|
podLabels: {}
|
||||||
|
# Annotations to be added to all the created pods
|
||||||
|
podAnnotations: {}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.github.chrislusf</groupId>
|
<groupId>com.github.chrislusf</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.55</version>
|
<version>3.59</version>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.sonatype.oss</groupId>
|
<groupId>org.sonatype.oss</groupId>
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<protobuf.version>3.16.3</protobuf.version>
|
<protobuf.version>3.16.3</protobuf.version>
|
||||||
<!-- follow https://github.com/grpc/grpc-java -->
|
<!-- follow https://github.com/grpc/grpc-java -->
|
||||||
<grpc.version>1.23.0</grpc.version>
|
<grpc.version>1.53.0</grpc.version>
|
||||||
<guava.version>30.0-jre</guava.version>
|
<guava.version>32.0.0-jre</guava.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -96,6 +96,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<source>8</source>
|
<source>8</source>
|
||||||
<target>8</target>
|
<target>8</target>
|
||||||
|
<release>8</release>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.github.chrislusf</groupId>
|
<groupId>com.github.chrislusf</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.55</version>
|
<version>3.59</version>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.sonatype.oss</groupId>
|
<groupId>org.sonatype.oss</groupId>
|
||||||
@@ -91,6 +91,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<source>8</source>
|
<source>8</source>
|
||||||
<target>8</target>
|
<target>8</target>
|
||||||
|
<release>8</release>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.github.chrislusf</groupId>
|
<groupId>com.github.chrislusf</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.55</version>
|
<version>3.59</version>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.sonatype.oss</groupId>
|
<groupId>org.sonatype.oss</groupId>
|
||||||
@@ -90,6 +90,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<source>8</source>
|
<source>8</source>
|
||||||
<target>8</target>
|
<target>8</target>
|
||||||
|
<release>8</release>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ public class FilerClient extends FilerGrpcClient {
|
|||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(FilerClient.class);
|
private static final Logger LOG = LoggerFactory.getLogger(FilerClient.class);
|
||||||
|
|
||||||
public FilerClient(String host, int grpcPort) {
|
public FilerClient(String filerHost, int filerGrpcPort) {
|
||||||
super(host, grpcPort-10000, grpcPort);
|
super(filerHost, filerGrpcPort-10000, filerGrpcPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
public FilerClient(String host, int port, int grpcPort) {
|
public FilerClient(String filerHost, int filerPort, int filerGrpcPort) {
|
||||||
super(host, port, grpcPort);
|
super(filerHost, filerPort, filerGrpcPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String toFileId(FilerProto.FileId fid) {
|
public static String toFileId(FilerProto.FileId fid) {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ public class SeaweedRead {
|
|||||||
if (locations == null || locations.getLocationsCount() == 0) {
|
if (locations == null || locations.getLocationsCount() == 0) {
|
||||||
LOG.error("failed to locate {}", chunkView.fileId);
|
LOG.error("failed to locate {}", chunkView.fileId);
|
||||||
volumeIdCache.clearLocations(volumeId);
|
volumeIdCache.clearLocations(volumeId);
|
||||||
return 0;
|
throw new IOException("failed to locate fileId " + chunkView.fileId);
|
||||||
}
|
}
|
||||||
|
|
||||||
int len = readChunkView(filerClient, startOffset, buf, chunkView, locations);
|
int len = readChunkView(filerClient, startOffset, buf, chunkView, locations);
|
||||||
|
|||||||
@@ -364,6 +364,7 @@ message LogEntry {
|
|||||||
int64 ts_ns = 1;
|
int64 ts_ns = 1;
|
||||||
int32 partition_key_hash = 2;
|
int32 partition_key_hash = 2;
|
||||||
bytes data = 3;
|
bytes data = 3;
|
||||||
|
bytes key = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message KeepConnectedRequest {
|
message KeepConnectedRequest {
|
||||||
@@ -424,6 +425,7 @@ message FilerConf {
|
|||||||
string data_center = 9;
|
string data_center = 9;
|
||||||
string rack = 10;
|
string rack = 10;
|
||||||
string data_node = 11;
|
string data_node = 11;
|
||||||
|
uint32 max_file_name_length = 12;
|
||||||
}
|
}
|
||||||
repeated PathConf locations = 2;
|
repeated PathConf locations = 2;
|
||||||
}
|
}
|
||||||
@@ -451,8 +453,9 @@ message LockRequest {
|
|||||||
}
|
}
|
||||||
message LockResponse {
|
message LockResponse {
|
||||||
string renew_token = 1;
|
string renew_token = 1;
|
||||||
string moved_to = 2;
|
string lock_owner = 2;
|
||||||
string error = 3;
|
string lock_host_moved_to = 3;
|
||||||
|
string error = 4;
|
||||||
}
|
}
|
||||||
message UnlockRequest {
|
message UnlockRequest {
|
||||||
string name = 1;
|
string name = 1;
|
||||||
|
|||||||
@@ -11,13 +11,13 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.chrislusf</groupId>
|
<groupId>com.github.chrislusf</groupId>
|
||||||
<artifactId>seaweedfs-client</artifactId>
|
<artifactId>seaweedfs-client</artifactId>
|
||||||
<version>3.55</version>
|
<version>3.59</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.chrislusf</groupId>
|
<groupId>com.github.chrislusf</groupId>
|
||||||
<artifactId>seaweedfs-hadoop2-client</artifactId>
|
<artifactId>seaweedfs-hadoop2-client</artifactId>
|
||||||
<version>3.55</version>
|
<version>3.59</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* reference: https://github.com/iponweb/hdfs-over-ftp
|
* reference: https://github.com/AShiou/hof
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class HFtpService {
|
public class HFtpService {
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<source>8</source>
|
<source>8</source>
|
||||||
<target>8</target>
|
<target>8</target>
|
||||||
|
<release>8</release>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -317,7 +318,7 @@
|
|||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<properties>
|
<properties>
|
||||||
<seaweedfs.client.version>3.55</seaweedfs.client.version>
|
<seaweedfs.client.version>3.59</seaweedfs.client.version>
|
||||||
<hadoop.version>3.2.4</hadoop.version>
|
<hadoop.version>3.2.4</hadoop.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<seaweedfs.client.version>3.55</seaweedfs.client.version>
|
<seaweedfs.client.version>3.59</seaweedfs.client.version>
|
||||||
<hadoop.version>3.2.4</hadoop.version>
|
<hadoop.version>3.2.4</hadoop.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<source>8</source>
|
<source>8</source>
|
||||||
<target>8</target>
|
<target>8</target>
|
||||||
|
<release>8</release>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<source>8</source>
|
<source>8</source>
|
||||||
<target>8</target>
|
<target>8</target>
|
||||||
|
<release>8</release>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -317,7 +318,7 @@
|
|||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
<properties>
|
<properties>
|
||||||
<seaweedfs.client.version>3.55</seaweedfs.client.version>
|
<seaweedfs.client.version>3.59</seaweedfs.client.version>
|
||||||
<hadoop.version>3.2.4</hadoop.version>
|
<hadoop.version>3.2.4</hadoop.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<seaweedfs.client.version>3.55</seaweedfs.client.version>
|
<seaweedfs.client.version>3.59</seaweedfs.client.version>
|
||||||
<hadoop.version>3.2.4</hadoop.version>
|
<hadoop.version>3.2.4</hadoop.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<source>8</source>
|
<source>8</source>
|
||||||
<target>8</target>
|
<target>8</target>
|
||||||
|
<release>8</release>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<source>8</source>
|
<source>8</source>
|
||||||
<target>8</target>
|
<target>8</target>
|
||||||
|
<release>8</release>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|||||||
@@ -1,2 +1,8 @@
|
|||||||
|
# Test run scratch data
|
||||||
/s3-tests
|
/s3-tests
|
||||||
/tmp
|
/tmp
|
||||||
|
|
||||||
|
# Test run outputs
|
||||||
|
weed.log
|
||||||
|
compat.raw.txt
|
||||||
|
compat.summary.txt
|
||||||
@@ -1,11 +1,21 @@
|
|||||||
# the tests only support python 3.6, not newer
|
# the tests only support python 3.6, not newer
|
||||||
FROM ubuntu:latest
|
#FROM ubuntu:latest
|
||||||
|
FROM python:3.6.15-slim-buster
|
||||||
|
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y git-core sudo tzdata
|
# Installed required system deps
|
||||||
|
RUN apt-get update \
|
||||||
|
&& DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y git-core sudo tzdata
|
||||||
|
|
||||||
|
# Install python deps
|
||||||
|
RUN pip install virtualenv
|
||||||
|
|
||||||
|
# Clone Ceph S3 tests
|
||||||
RUN git clone https://github.com/ceph/s3-tests.git
|
RUN git clone https://github.com/ceph/s3-tests.git
|
||||||
|
|
||||||
WORKDIR s3-tests
|
WORKDIR s3-tests
|
||||||
|
|
||||||
# we pin a certain commit
|
# Pin to a certain commit on ceph/s3-tests
|
||||||
|
# https://github.com/ceph/s3-tests/commit/9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e
|
||||||
RUN git checkout 9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e
|
RUN git checkout 9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e
|
||||||
|
|
||||||
RUN ./bootstrap
|
RUN ./bootstrap
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
.PHONY: all build-image test
|
||||||
|
|
||||||
|
all: build-image test
|
||||||
|
|
||||||
|
build-image:
|
||||||
|
./prepare.sh
|
||||||
|
|
||||||
|
test:
|
||||||
|
./run.sh
|
||||||
@@ -1,13 +1,245 @@
|
|||||||
# Running S3 Compatibility tests against SeaweedFS
|
# Running S3 Compatibility tests against SeaweedFS
|
||||||
|
|
||||||
This is using [the tests from CephFS](https://github.com/ceph/s3-tests).
|
This is using [the tests from CephFS][s3-tests].
|
||||||
|
|
||||||
|
[s3-tests]: https://github.com/ceph/s3-tests
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- have Docker installed
|
- have [Docker][docker] installed
|
||||||
- this has been executed on Mac. On Linux, the hostname in `s3tests.conf` needs to be adjusted.
|
- this has been executed on Mac. On Linux, the hostname in `s3tests.conf` needs to be adjusted.
|
||||||
|
|
||||||
|
[docker]: https://docs.docker.com
|
||||||
|
|
||||||
## Running tests
|
## Running tests
|
||||||
|
|
||||||
- `./prepare.sh` to build the docker image
|
To build the docker image that is used for the tests:
|
||||||
- `./run.sh` to execute all tests
|
|
||||||
|
```console
|
||||||
|
./prepare.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
To execute all tests:
|
||||||
|
|
||||||
|
```console
|
||||||
|
./run.sh
|
||||||
|
```
|
||||||
|
To see debug output including all commands run by the script:
|
||||||
|
|
||||||
|
```console
|
||||||
|
DEBUG=y ./run.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!WARNING]
|
||||||
|
>
|
||||||
|
> If your output does *not* look like the content in [`results.summary.txt`](./results.summary.txt)
|
||||||
|
> and it is full of HTTP level exceptions, there is likely an error contacting the `weed` server from
|
||||||
|
> the container that is runnin the S3 compatibility tests.
|
||||||
|
>
|
||||||
|
> There are at least a couple ways to solve this:
|
||||||
|
>
|
||||||
|
> - Modify your `docker` setup to ensure `host.docker.internal` is connected to your host running `weed`
|
||||||
|
> - Use `--net=host` and modify `host` in `s3tests.conf` to `localhost`
|
||||||
|
>
|
||||||
|
> The `--net=host` solution is potentially *unsafe*, as the container running [s3-tests][s3-tests] could
|
||||||
|
> visit unexpected websites or use the host-passthrough internet access maliciously.
|
||||||
|
>
|
||||||
|
> If you are OK with the risk of allowing `--net=host`:
|
||||||
|
>
|
||||||
|
> - Set `host = localhost` in `s3tests.conf`
|
||||||
|
> - Set `DOCKER_NET_HOST=y` when running `run.sh`
|
||||||
|
|
||||||
|
## Most recent results
|
||||||
|
|
||||||
|
See [`results.summary.txt`](./results.summary.txt) for the latest results of compatibility testing (with the caveat that `s3-tests` is pinned to [`ceph/s3-tests` @ 9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e](https://github.com/ceph/s3-tests/commit/9a6a1e9f197fc9fb031b809d1e057635c2ff8d4e)).
|
||||||
|
|
||||||
|
The file is reproduced below for ease of access:
|
||||||
|
|
||||||
|
```
|
||||||
|
/s3-tests/virtualenv/lib/python3.6/site-packages/boto3/compat.py:88: PythonDeprecationWarning: Boto3 will no longer support Python 3.6 starting May 30, 2022. To continue receiving service updates, bug fixes, and security updates please upgrade to Python 3.7 or later. More information can be found here: https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/
|
||||||
|
warnings.warn(warning, PythonDeprecationWarning)
|
||||||
|
s3tests_boto3.functional.test_s3.test_bucket_list_return_data ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_to_nonexist_bucket ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_read_not_exist ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_requestid_matches_header_on_error ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_multi_object_delete ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multi_objectv2_delete ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multi_object_delete_key_limit ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multi_objectv2_delete_key_limit ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_head_zero_bytes ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_check_etag ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_cache_control ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_expires ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_read_update_read_delete ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_metadata_replaced_on_put ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_file ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_anonymous_request ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_authenticated_request ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_authenticated_no_content_type ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_authenticated_request_bad_access_key ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_set_success_code ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_set_invalid_success_code ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_upload_larger_than_chunk ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_set_key_from_filename ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_ignored_header ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_case_insensitive_condition_fields ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_escaped_field_values ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_success_redirect_action ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_invalid_signature ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_invalid_access_key ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_invalid_date_format ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_no_key_specified ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_missing_signature ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_missing_policy_condition ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_user_specified_header ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_request_missing_policy_specified_field ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_condition_is_case_sensitive ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_expires_is_case_sensitive ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_expired_policy ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_invalid_request_field_value ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_missing_expires_condition ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_missing_conditions_list ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_upload_size_limit_exceeded ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_missing_content_length_argument ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_invalid_content_length_argument ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_upload_size_below_minimum ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_empty_conditions ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifmatch_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifmatch_failed ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifnonematch_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifnonematch_failed ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifmodifiedsince_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifmodifiedsince_failed ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifunmodifiedsince_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifunmodifiedsince_failed ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifmatch_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifmatch_failed ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifmatch_overwrite_existed_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifmatch_nonexisted_failed ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifnonmatch_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifnonmatch_failed ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifnonmatch_nonexisted_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifnonmatch_overwrite_existed_failed ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_bucket_gone ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_delete_key_bucket_gone ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_object_gone ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_authenticated ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_response_headers ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_authenticated_bucket_acl ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_authenticated_object_acl ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_authenticated_bucket_gone ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_authenticated_object_gone ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_x_amz_expires_not_expired ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_x_amz_expires_out_range_zero ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_x_amz_expires_out_max_range ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_x_amz_expires_out_positive_range ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_anon_put ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_anon_put_write_access ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_put_authenticated ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_put_authenticated_expired ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl_canned_publicreadwrite ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl_write ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl_writeacp ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl_read ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl_readacp ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_header_acl_grants ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_object_private ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_objectv2_private ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_object_publicread ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_objectv2_publicread ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_object_publicreadwrite ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_objectv2_publicreadwrite ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicread_object_private ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicread_object_publicread ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicread_object_publicreadwrite ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicreadwrite_object_private ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicreadwrite_object_publicread ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicreadwrite_object_publicreadwrite ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_bucket_create_special_key_names ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_zero_size ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_same_bucket ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_verify_contenttype ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_to_itself ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_to_itself_with_metadata ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_diff_bucket ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_not_owned_bucket ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_not_owned_object_bucket ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_canned_acl ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_retaining_metadata ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_replacing_metadata ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_bucket_not_found ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_key_not_found ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_empty ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_small ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_copy_small ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_copy_invalid_range ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_copy_improper_range ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_copy_without_range ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_copy_special_names ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_resend_part ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_size_too_small ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_contents ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_overwrite_existing_object ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_abort_multipart_upload ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_abort_multipart_upload_not_found ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_list_multipart_upload ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_missing_part ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_incorrect_etag ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_100_continue ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_read_1mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_read_4mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_read_8mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_write_1mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_write_4mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_write_8mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_dual_write_1mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_dual_write_4mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_dual_write_8mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_conditional_write_1mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_dual_conditional_write_1mb ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_write_bucket_gone ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_multipart_upload_write ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_resend_first_finishes_last ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_request_response_code ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_big_request_response_code ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_request_skip_leading_bytes_response_code ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_request_return_trailing_bytes_response_code ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_request_invalid_range ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_request_empty_object ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_obj_tagging ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_obj_head_tagging ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_max_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_excess_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_max_kvsize_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_excess_key_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_excess_val_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_modify_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_delete_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_tags_anonymous_request ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_tags_authenticated_request ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_obj_with_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_lock_multi_delete_object_with_retention ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_lock_changing_mode_from_governance_with_bypass ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_lock_changing_mode_from_governance_without_bypass ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_lock_changing_mode_from_compliance ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_copy_object_ifmatch_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_copy_object_ifmatch_failed ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_copy_object_ifnonematch_good ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_copy_object_ifnonematch_failed ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_read_unreadable ... FAIL
|
||||||
|
ERROR
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
ERROR: s3tests_boto3.functional.test_s3.test_bucket_list_return_data
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "/s3-tests/virtualenv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
|
||||||
|
self.test(*self.arg)
|
||||||
|
File "/s3-tests/s3tests_boto3/functional/test_s3.py", line 1669, in test_bucket_list_return_data
|
||||||
|
'DisplayName': acl_response['Owner']['DisplayName'],
|
||||||
|
KeyError: 'Owner'
|
||||||
|
-------------------- >> begin captured logging << --------------------
|
||||||
|
```
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
/s3-tests/virtualenv/lib/python3.6/site-packages/boto3/compat.py:88: PythonDeprecationWarning: Boto3 will no longer support Python 3.6 starting May 30, 2022. To continue receiving service updates, bug fixes, and security updates please upgrade to Python 3.7 or later. More information can be found here: https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/
|
||||||
|
warnings.warn(warning, PythonDeprecationWarning)
|
||||||
|
s3tests_boto3.functional.test_s3.test_bucket_list_return_data ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_to_nonexist_bucket ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_read_not_exist ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_requestid_matches_header_on_error ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_multi_object_delete ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multi_objectv2_delete ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multi_object_delete_key_limit ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multi_objectv2_delete_key_limit ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_head_zero_bytes ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_check_etag ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_cache_control ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_expires ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_read_update_read_delete ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_metadata_replaced_on_put ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_write_file ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_anonymous_request ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_authenticated_request ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_authenticated_no_content_type ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_authenticated_request_bad_access_key ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_set_success_code ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_set_invalid_success_code ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_upload_larger_than_chunk ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_set_key_from_filename ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_ignored_header ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_case_insensitive_condition_fields ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_escaped_field_values ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_success_redirect_action ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_invalid_signature ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_invalid_access_key ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_invalid_date_format ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_no_key_specified ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_missing_signature ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_missing_policy_condition ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_user_specified_header ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_request_missing_policy_specified_field ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_condition_is_case_sensitive ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_expires_is_case_sensitive ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_expired_policy ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_invalid_request_field_value ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_missing_expires_condition ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_missing_conditions_list ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_upload_size_limit_exceeded ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_missing_content_length_argument ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_invalid_content_length_argument ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_upload_size_below_minimum ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_empty_conditions ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifmatch_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifmatch_failed ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifnonematch_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifnonematch_failed ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifmodifiedsince_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifmodifiedsince_failed ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifunmodifiedsince_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_object_ifunmodifiedsince_failed ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifmatch_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifmatch_failed ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifmatch_overwrite_existed_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifmatch_nonexisted_failed ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifnonmatch_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifnonmatch_failed ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifnonmatch_nonexisted_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_object_ifnonmatch_overwrite_existed_failed ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_bucket_gone ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_delete_key_bucket_gone ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_object_gone ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_authenticated ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_response_headers ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_authenticated_bucket_acl ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_authenticated_object_acl ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_authenticated_bucket_gone ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_authenticated_object_gone ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_x_amz_expires_not_expired ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_x_amz_expires_out_range_zero ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_x_amz_expires_out_max_range ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_get_x_amz_expires_out_positive_range ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_anon_put ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_anon_put_write_access ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_put_authenticated ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_raw_put_authenticated_expired ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl_canned_publicreadwrite ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl_write ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl_writeacp ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl_read ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_acl_readacp ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_header_acl_grants ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_object_private ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_objectv2_private ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_object_publicread ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_objectv2_publicread ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_object_publicreadwrite ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_private_objectv2_publicreadwrite ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicread_object_private ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicread_object_publicread ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicread_object_publicreadwrite ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicreadwrite_object_private ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicreadwrite_object_publicread ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_access_bucket_publicreadwrite_object_publicreadwrite ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_bucket_create_special_key_names ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_zero_size ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_same_bucket ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_verify_contenttype ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_to_itself ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_to_itself_with_metadata ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_diff_bucket ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_not_owned_bucket ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_not_owned_object_bucket ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_canned_acl ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_retaining_metadata ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_replacing_metadata ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_bucket_not_found ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_copy_key_not_found ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_empty ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_small ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_copy_small ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_copy_invalid_range ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_copy_improper_range ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_copy_without_range ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_copy_special_names ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_resend_part ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_size_too_small ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_contents ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_overwrite_existing_object ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_abort_multipart_upload ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_abort_multipart_upload_not_found ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_list_multipart_upload ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_missing_part ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_upload_incorrect_etag ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_100_continue ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_read_1mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_read_4mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_read_8mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_write_1mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_write_4mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_write_8mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_dual_write_1mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_dual_write_4mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_dual_write_8mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_conditional_write_1mb ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_dual_conditional_write_1mb ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_write_bucket_gone ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_atomic_multipart_upload_write ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_multipart_resend_first_finishes_last ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_request_response_code ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_big_request_response_code ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_request_skip_leading_bytes_response_code ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_request_return_trailing_bytes_response_code ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_request_invalid_range ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_ranged_request_empty_object ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_obj_tagging ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_get_obj_head_tagging ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_max_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_excess_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_max_kvsize_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_excess_key_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_excess_val_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_modify_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_delete_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_tags_anonymous_request ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_post_object_tags_authenticated_request ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_put_obj_with_tags ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_lock_multi_delete_object_with_retention ... ERROR
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_lock_changing_mode_from_governance_with_bypass ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_lock_changing_mode_from_governance_without_bypass ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_lock_changing_mode_from_compliance ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_copy_object_ifmatch_good ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_copy_object_ifmatch_failed ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_copy_object_ifnonematch_good ... FAIL
|
||||||
|
s3tests_boto3.functional.test_s3.test_copy_object_ifnonematch_failed ... ok
|
||||||
|
s3tests_boto3.functional.test_s3.test_object_read_unreadable ... FAIL
|
||||||
|
ERROR
|
||||||
|
|
||||||
|
======================================================================
|
||||||
|
ERROR: s3tests_boto3.functional.test_s3.test_bucket_list_return_data
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "/s3-tests/virtualenv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
|
||||||
|
self.test(*self.arg)
|
||||||
|
File "/s3-tests/s3tests_boto3/functional/test_s3.py", line 1669, in test_bucket_list_return_data
|
||||||
|
'DisplayName': acl_response['Owner']['DisplayName'],
|
||||||
|
KeyError: 'Owner'
|
||||||
|
-------------------- >> begin captured logging << --------------------
|
||||||
@@ -1,24 +1,88 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -ex
|
CONTAINER_NAME=${CONTAINER_NAME:-s3test-instance}
|
||||||
|
CONF_FILE=${CONF_FILE:-s3tests.conf}
|
||||||
|
WEED_BIN=${WEED_BIN:-../../../weed/weed}
|
||||||
|
TEST_RAW_OUTPUT_FILE=${TEST_RAW_OUTPUT_FILE:-compat.raw.txt}
|
||||||
|
TEST_PROCESSED_OUTPUT_FILE=${TEST_PROCESSED_OUTPUT_FILE:-compat.summary.txt}
|
||||||
|
|
||||||
|
# Set up debugging for this bash script if DEBUG is set
|
||||||
|
if [ -n "${DEBUG}" ]; then
|
||||||
|
echo -e "DEBUG set [${DEBUG}], enabling debugging output...";
|
||||||
|
set -ex
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Reset from possible previous test run
|
||||||
killall -9 weed || echo "already stopped"
|
killall -9 weed || echo "already stopped"
|
||||||
rm -Rf tmp
|
rm -Rf tmp
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
docker stop s3test-instance || echo "already stopped"
|
docker stop $CONTAINER_NAME || echo "already stopped"
|
||||||
|
|
||||||
|
# Ensure ulimit is set to reasonable value
|
||||||
ulimit -n 10000
|
ulimit -n 10000
|
||||||
../../../weed/weed server -filer -s3 -volume.max 0 -master.volumeSizeLimitMB 5 -dir "$(pwd)/tmp" 1>&2>weed.log &
|
|
||||||
|
|
||||||
|
# Start weed w/ filer + s3 in the background
|
||||||
|
$WEED_BIN server \
|
||||||
|
-filer \
|
||||||
|
-s3 \
|
||||||
|
-volume.max 0 \
|
||||||
|
-master.volumeSizeLimitMB 5 \
|
||||||
|
-dir "$(pwd)/tmp" \
|
||||||
|
1>&2>weed.log &
|
||||||
|
|
||||||
|
# Wait for master to start up
|
||||||
|
echo -e "\n[info] waiting for master @ 9333...";
|
||||||
until curl --output /dev/null --silent --head --fail http://127.0.0.1:9333; do
|
until curl --output /dev/null --silent --head --fail http://127.0.0.1:9333; do
|
||||||
printf '.'
|
printf '.';
|
||||||
sleep 5
|
sleep 5;
|
||||||
done
|
done
|
||||||
sleep 3
|
sleep 3;
|
||||||
|
|
||||||
rm -Rf logs-full.txt logs-summary.txt
|
# Wait for s3 to start up
|
||||||
# docker run --name s3test-instance --rm -e S3TEST_CONF=s3tests.conf -v `pwd`/s3tests.conf:/s3-tests/s3tests.conf -it s3tests ./virtualenv/bin/nosetests s3tests_boto3/functional/test_s3.py:test_get_obj_tagging -v -a 'resource=object,!bucket-policy,!versioning,!encryption'
|
echo -e "\n[info] waiting for S3 @ 8333...";
|
||||||
docker run --name s3test-instance --rm -e S3TEST_CONF=s3tests.conf -v "$(pwd)"/s3tests.conf:/s3-tests/s3tests.conf -it s3tests ./virtualenv/bin/nosetests s3tests_boto3/functional/test_s3.py -v -a 'resource=object,!bucket-policy,!versioning,!encryption' | sed -n -e '/botocore.hooks/!p;//q' | tee logs-summary.txt
|
until curl --output /dev/null --silent --fail http://127.0.0.1:8333; do
|
||||||
|
printf '.';
|
||||||
|
sleep 5;
|
||||||
|
done
|
||||||
|
sleep 3;
|
||||||
|
|
||||||
docker stop s3test-instance || echo "already stopped"
|
# Determine whether docker net
|
||||||
killall -9 weed
|
DOCKER_NET_HOST_ARGS=""
|
||||||
|
if [ -n "${DOCKER_NET_HOST}" ]; then
|
||||||
|
DOCKER_NET_HOST_ARGS="--net=host"
|
||||||
|
echo -e "\n[info] setting docker to het nost"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\n[warn] You may have to run with UNFILTERED=y to disable output filtering, if you get the broken pipe error";
|
||||||
|
echo -e "\n[info] running tests with unfiltered output...";
|
||||||
|
docker run \
|
||||||
|
--name $CONTAINER_NAME \
|
||||||
|
--rm \
|
||||||
|
${DOCKER_NET_HOST_ARGS} \
|
||||||
|
-e S3TEST_CONF=$CONF_FILE \
|
||||||
|
-v "$(pwd)"/$CONF_FILE:/s3-tests/s3tests.conf \
|
||||||
|
-it \
|
||||||
|
s3tests \
|
||||||
|
./virtualenv/bin/nosetests \
|
||||||
|
s3tests_boto3/functional/test_s3.py \
|
||||||
|
-v \
|
||||||
|
-a 'resource=object,!bucket-policy,!versioning,!encryption' \
|
||||||
|
| tee ${TEST_RAW_OUTPUT_FILE}
|
||||||
|
|
||||||
|
# If the summary logs are present, process them
|
||||||
|
if [ -f "${TEST_RAW_OUTPUT_FILE}" ]; then
|
||||||
|
cat ${TEST_RAW_OUTPUT_FILE} | sed -n -e '/botocore.hooks/!p;//q' | tee ${TEST_PROCESSED_OUTPUT_FILE}
|
||||||
|
echo -e "\n[info] ✅ Successfully wrote processed output @ [${TEST_PROCESSED_OUTPUT_FILE}]";
|
||||||
|
if [ -z "${TEST_KEEP_RAW_OUTPUT}" ]; then
|
||||||
|
echo -e "\n[info] removing test raw output file @ [${TEST_RAW_OUTPUT_FILE}] (to disable this, set TEST_KEEP_RAW_OUTPUT=y)...";
|
||||||
|
rm -rf ${TEST_RAW_OUTPUT_FILE};
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo -e "\n[warn] failed to find raw output @ [${TEST_RAW_OUTPUT_FILE}]";
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "\n[info] stopping [${CONTAINER_NAME}] container...";
|
||||||
|
docker stop $CONTAINER_NAME || echo "[info] already stopped";
|
||||||
|
|
||||||
|
echo -e "\n[info] stopping seaweedfs processes (all, via kill -9)...";
|
||||||
|
killall -9 weed;
|
||||||
@@ -4,6 +4,14 @@
|
|||||||
# host set for rgw in vstart.sh
|
# host set for rgw in vstart.sh
|
||||||
host = host.docker.internal
|
host = host.docker.internal
|
||||||
|
|
||||||
|
## NOTE: if running docker --net=host (e.x. `DOCKER_NET_HOST=y ./run.sh`)
|
||||||
|
## then use 'localhost', so the container can more easily access your *local* weed instance
|
||||||
|
##
|
||||||
|
## This is *unsafe* -- it is possible that this script will do malicious
|
||||||
|
## things with host-level access. only run this if you trust the programmatic content of
|
||||||
|
## ceph/s3-tests (https://github.com/ceph/s3-tests) which will be using this file
|
||||||
|
#host = localhost
|
||||||
|
|
||||||
# port set for rgw in vstart.sh
|
# port set for rgw in vstart.sh
|
||||||
port = 8333
|
port = 8333
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ func (scanner *VolumeFileScanner4SeeDat) ReadNeedleBody() bool {
|
|||||||
|
|
||||||
func (scanner *VolumeFileScanner4SeeDat) VisitNeedle(n *needle.Needle, offset int64, needleHeader, needleBody []byte) error {
|
func (scanner *VolumeFileScanner4SeeDat) VisitNeedle(n *needle.Needle, offset int64, needleHeader, needleBody []byte) error {
|
||||||
t := time.Unix(int64(n.AppendAtNs)/int64(time.Second), int64(n.AppendAtNs)%int64(time.Second))
|
t := time.Unix(int64(n.AppendAtNs)/int64(time.Second), int64(n.AppendAtNs)%int64(time.Second))
|
||||||
glog.V(0).Infof("%d,%s%08x offset %d size %d(%s) cookie %08x appendedAt %v",
|
glog.V(0).Infof("%d,%s%08x offset %d size %d(%s) cookie %08x appendedAt %v name %s",
|
||||||
*volumeId, n.Id, n.Cookie, offset, n.Size, util.BytesToHumanReadable(uint64(n.Size)), n.Cookie, t)
|
*volumeId, n.Id, n.Cookie, offset, n.Size, util.BytesToHumanReadable(uint64(n.Size)), n.Cookie, t, n.Name)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ func main() {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
ticker := time.NewTicker(1000 * time.Millisecond)
|
ticker := time.NewTicker(1000 * time.Millisecond)
|
||||||
|
defer ticker.Stop()
|
||||||
|
|
||||||
var lastTime time.Time
|
var lastTime time.Time
|
||||||
var counter, size int64
|
var counter, size int64
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ func main() {
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
ticker := time.NewTicker(500 * time.Millisecond)
|
ticker := time.NewTicker(500 * time.Millisecond)
|
||||||
|
defer ticker.Stop()
|
||||||
|
|
||||||
var lastTime time.Time
|
var lastTime time.Time
|
||||||
var counter, size int64
|
var counter, size int64
|
||||||
|
|||||||
+86
-119
@@ -32,108 +32,104 @@ type LiveLock struct {
|
|||||||
key string
|
key string
|
||||||
renewToken string
|
renewToken string
|
||||||
expireAtNs int64
|
expireAtNs int64
|
||||||
filer pb.ServerAddress
|
hostFiler pb.ServerAddress
|
||||||
cancelCh chan struct{}
|
cancelCh chan struct{}
|
||||||
grpcDialOption grpc.DialOption
|
grpcDialOption grpc.DialOption
|
||||||
isLocked bool
|
isLocked bool
|
||||||
owner string
|
self string
|
||||||
lc *LockClient
|
lc *LockClient
|
||||||
|
owner string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewLock creates a lock with a very long duration
|
// NewShortLivedLock creates a lock with a 5-second duration
|
||||||
func (lc *LockClient) NewLock(key string, owner string) (lock *LiveLock) {
|
func (lc *LockClient) NewShortLivedLock(key string, owner string) (lock *LiveLock) {
|
||||||
return lc.doNewLock(key, lock_manager.MaxDuration, owner)
|
|
||||||
}
|
|
||||||
|
|
||||||
// StartLock starts a goroutine to lock the key and returns immediately.
|
|
||||||
func (lc *LockClient) StartLock(key string, owner string) (lock *LiveLock) {
|
|
||||||
lock = &LiveLock{
|
lock = &LiveLock{
|
||||||
key: key,
|
key: key,
|
||||||
filer: lc.seedFiler,
|
hostFiler: lc.seedFiler,
|
||||||
cancelCh: make(chan struct{}),
|
cancelCh: make(chan struct{}),
|
||||||
expireAtNs: time.Now().Add(lock_manager.MaxDuration).UnixNano(),
|
expireAtNs: time.Now().Add(5 * time.Second).UnixNano(),
|
||||||
grpcDialOption: lc.grpcDialOption,
|
grpcDialOption: lc.grpcDialOption,
|
||||||
owner: owner,
|
self: owner,
|
||||||
|
lc: lc,
|
||||||
|
}
|
||||||
|
lock.retryUntilLocked(5 * time.Second)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// StartLongLivedLock starts a goroutine to lock the key and returns immediately.
|
||||||
|
func (lc *LockClient) StartLongLivedLock(key string, owner string, onLockOwnerChange func(newLockOwner string)) (lock *LiveLock) {
|
||||||
|
lock = &LiveLock{
|
||||||
|
key: key,
|
||||||
|
hostFiler: lc.seedFiler,
|
||||||
|
cancelCh: make(chan struct{}),
|
||||||
|
expireAtNs: time.Now().Add(lock_manager.LiveLockTTL).UnixNano(),
|
||||||
|
grpcDialOption: lc.grpcDialOption,
|
||||||
|
self: owner,
|
||||||
lc: lc,
|
lc: lc,
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
util.RetryForever("create lock:"+key, func() error {
|
isLocked := false
|
||||||
errorMessage, err := lock.doLock(lock_manager.MaxDuration)
|
lockOwner := ""
|
||||||
if err != nil {
|
for {
|
||||||
glog.Infof("create lock %s: %s", key, err)
|
if isLocked {
|
||||||
time.Sleep(time.Second)
|
if err := lock.AttemptToLock(lock_manager.LiveLockTTL); err != nil {
|
||||||
return err
|
glog.V(0).Infof("Lost lock %s: %v", key, err)
|
||||||
|
isLocked = false
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if err := lock.AttemptToLock(lock_manager.LiveLockTTL); err == nil {
|
||||||
|
isLocked = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if errorMessage != "" {
|
if lockOwner != lock.LockOwner() && lock.LockOwner() != "" {
|
||||||
glog.Infof("create lock %s: %s", key, errorMessage)
|
glog.V(0).Infof("Lock owner changed from %s to %s", lockOwner, lock.LockOwner())
|
||||||
time.Sleep(time.Second)
|
onLockOwnerChange(lock.LockOwner())
|
||||||
return fmt.Errorf("%v", errorMessage)
|
lockOwner = lock.LockOwner()
|
||||||
}
|
}
|
||||||
lock.isLocked = true
|
select {
|
||||||
return nil
|
case <-lock.cancelCh:
|
||||||
}, func(err error) (shouldContinue bool) {
|
return
|
||||||
if err != nil {
|
default:
|
||||||
glog.Warningf("create lock %s: %s", key, err)
|
time.Sleep(lock_manager.RenewInterval)
|
||||||
time.Sleep(time.Second)
|
|
||||||
}
|
}
|
||||||
return lock.renewToken == ""
|
}
|
||||||
})
|
|
||||||
lc.keepLock(lock)
|
|
||||||
}()
|
}()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (lc *LockClient) doNewLock(key string, lockDuration time.Duration, owner string) (lock *LiveLock) {
|
func (lock *LiveLock) retryUntilLocked(lockDuration time.Duration) {
|
||||||
lock = &LiveLock{
|
util.RetryUntil("create lock:"+lock.key, func() error {
|
||||||
key: key,
|
return lock.AttemptToLock(lockDuration)
|
||||||
filer: lc.seedFiler,
|
|
||||||
cancelCh: make(chan struct{}),
|
|
||||||
expireAtNs: time.Now().Add(lockDuration).UnixNano(),
|
|
||||||
grpcDialOption: lc.grpcDialOption,
|
|
||||||
owner: owner,
|
|
||||||
lc: lc,
|
|
||||||
}
|
|
||||||
var needRenewal bool
|
|
||||||
if lockDuration > lc.maxLockDuration {
|
|
||||||
lockDuration = lc.maxLockDuration
|
|
||||||
needRenewal = true
|
|
||||||
}
|
|
||||||
util.RetryForever("create lock:"+key, func() error {
|
|
||||||
errorMessage, err := lock.doLock(lockDuration)
|
|
||||||
if err != nil {
|
|
||||||
time.Sleep(time.Second)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if errorMessage != "" {
|
|
||||||
time.Sleep(time.Second)
|
|
||||||
return fmt.Errorf("%v", errorMessage)
|
|
||||||
}
|
|
||||||
lock.isLocked = true
|
|
||||||
return nil
|
|
||||||
}, func(err error) (shouldContinue bool) {
|
}, func(err error) (shouldContinue bool) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Warningf("create lock %s: %s", key, err)
|
glog.Warningf("create lock %s: %s", lock.key, err)
|
||||||
}
|
}
|
||||||
return lock.renewToken == ""
|
return lock.renewToken == ""
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if needRenewal {
|
func (lock *LiveLock) AttemptToLock(lockDuration time.Duration) error {
|
||||||
go lc.keepLock(lock)
|
errorMessage, err := lock.doLock(lockDuration)
|
||||||
|
if err != nil {
|
||||||
|
time.Sleep(time.Second)
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
if errorMessage != "" {
|
||||||
return
|
time.Sleep(time.Second)
|
||||||
|
return fmt.Errorf("%v", errorMessage)
|
||||||
|
}
|
||||||
|
lock.isLocked = true
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (lock *LiveLock) IsLocked() bool {
|
func (lock *LiveLock) StopShortLivedLock() error {
|
||||||
return lock.isLocked
|
|
||||||
}
|
|
||||||
|
|
||||||
func (lock *LiveLock) StopLock() error {
|
|
||||||
close(lock.cancelCh)
|
|
||||||
if !lock.isLocked {
|
if !lock.isLocked {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return pb.WithFilerClient(false, 0, lock.filer, lock.grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
|
defer func() {
|
||||||
|
lock.isLocked = false
|
||||||
|
}()
|
||||||
|
return pb.WithFilerClient(false, 0, lock.hostFiler, lock.grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
|
||||||
_, err := client.DistributedUnlock(context.Background(), &filer_pb.UnlockRequest{
|
_, err := client.DistributedUnlock(context.Background(), &filer_pb.UnlockRequest{
|
||||||
Name: lock.key,
|
Name: lock.key,
|
||||||
RenewToken: lock.renewToken,
|
RenewToken: lock.renewToken,
|
||||||
@@ -142,69 +138,40 @@ func (lock *LiveLock) StopLock() error {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (lc *LockClient) keepLock(lock *LiveLock) {
|
|
||||||
ticker := time.Tick(lc.sleepDuration)
|
|
||||||
for {
|
|
||||||
select {
|
|
||||||
case <-ticker:
|
|
||||||
// renew the lock if lock.expireAtNs is still greater than now
|
|
||||||
util.RetryForever("keep lock:"+lock.key, func() error {
|
|
||||||
lockDuration := time.Duration(lock.expireAtNs-time.Now().UnixNano()) * time.Nanosecond
|
|
||||||
if lockDuration > lc.maxLockDuration {
|
|
||||||
lockDuration = lc.maxLockDuration
|
|
||||||
}
|
|
||||||
if lockDuration <= 0 {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
errorMessage, err := lock.doLock(lockDuration)
|
|
||||||
if err != nil {
|
|
||||||
lock.isLocked = false
|
|
||||||
time.Sleep(time.Second)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if errorMessage != "" {
|
|
||||||
lock.isLocked = false
|
|
||||||
time.Sleep(time.Second)
|
|
||||||
return fmt.Errorf("%v", errorMessage)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}, func(err error) (shouldContinue bool) {
|
|
||||||
if err == nil {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
glog.Warningf("keep lock %s: %v", lock.key, err)
|
|
||||||
return true
|
|
||||||
})
|
|
||||||
if !lock.isLocked {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
case <-lock.cancelCh:
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (lock *LiveLock) doLock(lockDuration time.Duration) (errorMessage string, err error) {
|
func (lock *LiveLock) doLock(lockDuration time.Duration) (errorMessage string, err error) {
|
||||||
err = pb.WithFilerClient(false, 0, lock.filer, lock.grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
|
err = pb.WithFilerClient(false, 0, lock.hostFiler, lock.grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
|
||||||
resp, err := client.DistributedLock(context.Background(), &filer_pb.LockRequest{
|
resp, err := client.DistributedLock(context.Background(), &filer_pb.LockRequest{
|
||||||
Name: lock.key,
|
Name: lock.key,
|
||||||
SecondsToLock: int64(lockDuration.Seconds()),
|
SecondsToLock: int64(lockDuration.Seconds()),
|
||||||
RenewToken: lock.renewToken,
|
RenewToken: lock.renewToken,
|
||||||
IsMoved: false,
|
IsMoved: false,
|
||||||
Owner: lock.owner,
|
Owner: lock.self,
|
||||||
})
|
})
|
||||||
if err == nil {
|
if err == nil && resp != nil {
|
||||||
lock.renewToken = resp.RenewToken
|
lock.renewToken = resp.RenewToken
|
||||||
|
} else {
|
||||||
|
//this can be retried. Need to remember the last valid renewToken
|
||||||
|
lock.renewToken = ""
|
||||||
}
|
}
|
||||||
if resp != nil {
|
if resp != nil {
|
||||||
errorMessage = resp.Error
|
errorMessage = resp.Error
|
||||||
if resp.MovedTo != "" {
|
if resp.LockHostMovedTo != "" {
|
||||||
lock.filer = pb.ServerAddress(resp.MovedTo)
|
lock.hostFiler = pb.ServerAddress(resp.LockHostMovedTo)
|
||||||
lock.lc.seedFiler = lock.filer
|
lock.lc.seedFiler = lock.hostFiler
|
||||||
|
}
|
||||||
|
if resp.LockOwner != "" {
|
||||||
|
lock.owner = resp.LockOwner
|
||||||
|
// fmt.Printf("lock %s owner: %s\n", lock.key, lock.owner)
|
||||||
|
} else {
|
||||||
|
// fmt.Printf("lock %s has no owner\n", lock.key)
|
||||||
|
lock.owner = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (lock *LiveLock) LockOwner() string {
|
||||||
|
return lock.owner
|
||||||
|
}
|
||||||
@@ -2,11 +2,13 @@ package lock_manager
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/seaweedfs/seaweedfs/weed/glog"
|
||||||
"github.com/seaweedfs/seaweedfs/weed/pb"
|
"github.com/seaweedfs/seaweedfs/weed/pb"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MaxDuration = 1<<63 - 1
|
const RenewInterval = time.Second * 3
|
||||||
|
const LiveLockTTL = time.Second * 7
|
||||||
|
|
||||||
var NoLockServerError = fmt.Errorf("no lock server found")
|
var NoLockServerError = fmt.Errorf("no lock server found")
|
||||||
|
|
||||||
@@ -24,7 +26,7 @@ func NewDistributedLockManager(host pb.ServerAddress) *DistributedLockManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (dlm *DistributedLockManager) LockWithTimeout(key string, expiredAtNs int64, token string, owner string) (renewToken string, movedTo pb.ServerAddress, err error) {
|
func (dlm *DistributedLockManager) LockWithTimeout(key string, expiredAtNs int64, token string, owner string) (lockOwner string, renewToken string, movedTo pb.ServerAddress, err error) {
|
||||||
movedTo, err = dlm.findLockOwningFiler(key)
|
movedTo, err = dlm.findLockOwningFiler(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
@@ -32,7 +34,7 @@ func (dlm *DistributedLockManager) LockWithTimeout(key string, expiredAtNs int64
|
|||||||
if movedTo != dlm.Host {
|
if movedTo != dlm.Host {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
renewToken, err = dlm.lockManager.Lock(key, expiredAtNs, token, owner)
|
lockOwner, renewToken, err = dlm.lockManager.Lock(key, expiredAtNs, token, owner)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,6 +55,8 @@ func (dlm *DistributedLockManager) FindLockOwner(key string) (owner string, move
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if movedTo != dlm.Host {
|
if movedTo != dlm.Host {
|
||||||
|
servers := dlm.LockRing.GetSnapshot()
|
||||||
|
glog.V(0).Infof("lock %s not on current %s but on %s from %v", key, dlm.Host, movedTo, servers)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
owner, err = dlm.lockManager.GetLockOwner(key)
|
owner, err = dlm.lockManager.GetLockOwner(key)
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ package lock_manager
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/puzpuzpuz/xsync/v2"
|
"github.com/seaweedfs/seaweedfs/weed/glog"
|
||||||
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -11,10 +12,12 @@ var LockErrorNonEmptyTokenOnNewLock = fmt.Errorf("lock: non-empty token on a new
|
|||||||
var LockErrorNonEmptyTokenOnExpiredLock = fmt.Errorf("lock: non-empty token on an expired lock")
|
var LockErrorNonEmptyTokenOnExpiredLock = fmt.Errorf("lock: non-empty token on an expired lock")
|
||||||
var LockErrorTokenMismatch = fmt.Errorf("lock: token mismatch")
|
var LockErrorTokenMismatch = fmt.Errorf("lock: token mismatch")
|
||||||
var UnlockErrorTokenMismatch = fmt.Errorf("unlock: token mismatch")
|
var UnlockErrorTokenMismatch = fmt.Errorf("unlock: token mismatch")
|
||||||
|
var LockNotFound = fmt.Errorf("lock not found")
|
||||||
|
|
||||||
// LockManager local lock manager, used by distributed lock manager
|
// LockManager local lock manager, used by distributed lock manager
|
||||||
type LockManager struct {
|
type LockManager struct {
|
||||||
locks *xsync.MapOf[string, *Lock]
|
locks map[string]*Lock
|
||||||
|
accessLock sync.RWMutex
|
||||||
}
|
}
|
||||||
type Lock struct {
|
type Lock struct {
|
||||||
Token string
|
Token string
|
||||||
@@ -25,126 +28,155 @@ type Lock struct {
|
|||||||
|
|
||||||
func NewLockManager() *LockManager {
|
func NewLockManager() *LockManager {
|
||||||
t := &LockManager{
|
t := &LockManager{
|
||||||
locks: xsync.NewMapOf[*Lock](),
|
locks: make(map[string]*Lock),
|
||||||
}
|
}
|
||||||
go t.CleanUp()
|
go t.CleanUp()
|
||||||
return t
|
return t
|
||||||
}
|
}
|
||||||
|
|
||||||
func (lm *LockManager) Lock(path string, expiredAtNs int64, token string, owner string) (renewToken string, err error) {
|
func (lm *LockManager) Lock(path string, expiredAtNs int64, token string, owner string) (lockOwner, renewToken string, err error) {
|
||||||
lm.locks.Compute(path, func(oldValue *Lock, loaded bool) (newValue *Lock, delete bool) {
|
lm.accessLock.Lock()
|
||||||
if oldValue != nil {
|
defer lm.accessLock.Unlock()
|
||||||
if oldValue.ExpiredAtNs > 0 && oldValue.ExpiredAtNs < time.Now().UnixNano() {
|
|
||||||
// lock is expired, set to a new lock
|
glog.V(4).Infof("lock %s %v %v %v", path, time.Unix(0, expiredAtNs), token, owner)
|
||||||
if token != "" {
|
|
||||||
err = LockErrorNonEmptyTokenOnExpiredLock
|
if oldValue, found := lm.locks[path]; found {
|
||||||
return nil, false
|
if oldValue.ExpiredAtNs > 0 && oldValue.ExpiredAtNs < time.Now().UnixNano() {
|
||||||
} else {
|
// lock is expired, set to a new lock
|
||||||
// new lock
|
if token != "" {
|
||||||
renewToken = uuid.New().String()
|
glog.V(4).Infof("lock expired key %s non-empty token %v owner %v ts %s", path, token, owner, time.Unix(0, oldValue.ExpiredAtNs))
|
||||||
return &Lock{Token: renewToken, ExpiredAtNs: expiredAtNs, Owner: owner}, false
|
err = LockErrorNonEmptyTokenOnExpiredLock
|
||||||
}
|
return
|
||||||
}
|
|
||||||
// not expired
|
|
||||||
if oldValue.Token == token {
|
|
||||||
// token matches, renew the lock
|
|
||||||
renewToken = uuid.New().String()
|
|
||||||
return &Lock{Token: renewToken, ExpiredAtNs: expiredAtNs, Owner: owner}, false
|
|
||||||
} else {
|
} else {
|
||||||
err = LockErrorTokenMismatch
|
// new lock
|
||||||
return oldValue, false
|
renewToken = uuid.New().String()
|
||||||
|
glog.V(4).Infof("key %s new token %v owner %v", path, renewToken, owner)
|
||||||
|
lm.locks[path] = &Lock{Token: renewToken, ExpiredAtNs: expiredAtNs, Owner: owner}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// not expired
|
||||||
|
lockOwner = oldValue.Owner
|
||||||
|
if oldValue.Token == token {
|
||||||
|
// token matches, renew the lock
|
||||||
|
renewToken = uuid.New().String()
|
||||||
|
glog.V(4).Infof("key %s old token %v owner %v => %v owner %v", path, oldValue.Token, oldValue.Owner, renewToken, owner)
|
||||||
|
lm.locks[path] = &Lock{Token: renewToken, ExpiredAtNs: expiredAtNs, Owner: owner}
|
||||||
|
return
|
||||||
} else {
|
} else {
|
||||||
if token == "" {
|
if token == "" {
|
||||||
// new lock
|
// new lock
|
||||||
renewToken = uuid.New().String()
|
glog.V(4).Infof("key %s locked by %v", path, oldValue.Owner)
|
||||||
return &Lock{Token: renewToken, ExpiredAtNs: expiredAtNs, Owner: owner}, false
|
err = fmt.Errorf("lock already owned by %v", oldValue.Owner)
|
||||||
} else {
|
return
|
||||||
err = LockErrorNonEmptyTokenOnNewLock
|
|
||||||
return nil, false
|
|
||||||
}
|
}
|
||||||
|
glog.V(4).Infof("key %s expected token %v owner %v received %v from %v", path, oldValue.Token, oldValue.Owner, token, owner)
|
||||||
|
err = fmt.Errorf("lock: token mismatch")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
})
|
} else {
|
||||||
return
|
glog.V(4).Infof("key %s no lock owner %v", path, owner)
|
||||||
|
if token == "" {
|
||||||
|
// new lock
|
||||||
|
glog.V(4).Infof("key %s new token %v owner %v", path, token, owner)
|
||||||
|
renewToken = uuid.New().String()
|
||||||
|
lm.locks[path] = &Lock{Token: renewToken, ExpiredAtNs: expiredAtNs, Owner: owner}
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
glog.V(4).Infof("key %s non-empty token %v owner %v", path, token, owner)
|
||||||
|
err = LockErrorNonEmptyTokenOnNewLock
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (lm *LockManager) Unlock(path string, token string) (isUnlocked bool, err error) {
|
func (lm *LockManager) Unlock(path string, token string) (isUnlocked bool, err error) {
|
||||||
lm.locks.Compute(path, func(oldValue *Lock, loaded bool) (newValue *Lock, delete bool) {
|
lm.accessLock.Lock()
|
||||||
if oldValue != nil {
|
defer lm.accessLock.Unlock()
|
||||||
now := time.Now()
|
|
||||||
if oldValue.ExpiredAtNs > 0 && oldValue.ExpiredAtNs < now.UnixNano() {
|
if oldValue, found := lm.locks[path]; found {
|
||||||
// lock is expired, delete it
|
now := time.Now()
|
||||||
isUnlocked = true
|
if oldValue.ExpiredAtNs > 0 && oldValue.ExpiredAtNs < now.UnixNano() {
|
||||||
return nil, true
|
// lock is expired, delete it
|
||||||
}
|
|
||||||
if oldValue.Token == token {
|
|
||||||
if oldValue.ExpiredAtNs <= now.UnixNano() {
|
|
||||||
isUnlocked = true
|
|
||||||
return nil, true
|
|
||||||
}
|
|
||||||
return oldValue, false
|
|
||||||
} else {
|
|
||||||
isUnlocked = false
|
|
||||||
err = UnlockErrorTokenMismatch
|
|
||||||
return oldValue, false
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
isUnlocked = true
|
isUnlocked = true
|
||||||
return nil, true
|
glog.V(4).Infof("key %s expired at %v", path, time.Unix(0, oldValue.ExpiredAtNs))
|
||||||
|
delete(lm.locks, path)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
})
|
if oldValue.Token == token {
|
||||||
|
isUnlocked = true
|
||||||
|
glog.V(4).Infof("key %s unlocked with %v", path, token)
|
||||||
|
delete(lm.locks, path)
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
isUnlocked = false
|
||||||
|
err = UnlockErrorTokenMismatch
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
err = LockNotFound
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (lm *LockManager) CleanUp() {
|
func (lm *LockManager) CleanUp() {
|
||||||
|
|
||||||
for {
|
for {
|
||||||
time.Sleep(1 * time.Minute)
|
time.Sleep(1 * time.Minute)
|
||||||
now := time.Now().UnixNano()
|
now := time.Now().UnixNano()
|
||||||
lm.locks.Range(func(key string, value *Lock) bool {
|
|
||||||
|
lm.accessLock.Lock()
|
||||||
|
for key, value := range lm.locks {
|
||||||
if value == nil {
|
if value == nil {
|
||||||
return true
|
continue
|
||||||
}
|
}
|
||||||
if now > value.ExpiredAtNs {
|
if now > value.ExpiredAtNs {
|
||||||
lm.locks.Delete(key)
|
glog.V(4).Infof("key %s expired at %v", key, time.Unix(0, value.ExpiredAtNs))
|
||||||
return true
|
delete(lm.locks, key)
|
||||||
}
|
}
|
||||||
return true
|
}
|
||||||
})
|
lm.accessLock.Unlock()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SelectLocks takes out locks by key
|
// SelectLocks takes out locks by key
|
||||||
// if keyFn return true, the lock will be taken out
|
// if keyFn return true, the lock will be taken out
|
||||||
func (lm *LockManager) SelectLocks(selectFn func(key string) bool) (locks []*Lock) {
|
func (lm *LockManager) SelectLocks(selectFn func(key string) bool) (locks []*Lock) {
|
||||||
|
lm.accessLock.RLock()
|
||||||
|
defer lm.accessLock.RUnlock()
|
||||||
|
|
||||||
now := time.Now().UnixNano()
|
now := time.Now().UnixNano()
|
||||||
lm.locks.Range(func(key string, lock *Lock) bool {
|
|
||||||
|
for key, lock := range lm.locks {
|
||||||
if now > lock.ExpiredAtNs {
|
if now > lock.ExpiredAtNs {
|
||||||
lm.locks.Delete(key)
|
glog.V(4).Infof("key %s expired at %v", key, time.Unix(0, lock.ExpiredAtNs))
|
||||||
return true
|
delete(lm.locks, key)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
if selectFn(key) {
|
if selectFn(key) {
|
||||||
lm.locks.Delete(key)
|
glog.V(4).Infof("key %s selected and deleted", key)
|
||||||
|
delete(lm.locks, key)
|
||||||
lock.Key = key
|
lock.Key = key
|
||||||
locks = append(locks, lock)
|
locks = append(locks, lock)
|
||||||
}
|
}
|
||||||
return true
|
}
|
||||||
})
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// InsertLock inserts a lock unconditionally
|
// InsertLock inserts a lock unconditionally
|
||||||
func (lm *LockManager) InsertLock(path string, expiredAtNs int64, token string, owner string) {
|
func (lm *LockManager) InsertLock(path string, expiredAtNs int64, token string, owner string) {
|
||||||
lm.locks.Store(path, &Lock{Token: token, ExpiredAtNs: expiredAtNs, Owner: owner})
|
lm.accessLock.Lock()
|
||||||
|
defer lm.accessLock.Unlock()
|
||||||
|
|
||||||
|
lm.locks[path] = &Lock{Token: token, ExpiredAtNs: expiredAtNs, Owner: owner}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (lm *LockManager) GetLockOwner(key string) (owner string, err error) {
|
func (lm *LockManager) GetLockOwner(key string) (owner string, err error) {
|
||||||
lm.locks.Range(func(k string, lock *Lock) bool {
|
lm.accessLock.RLock()
|
||||||
if k == key && lock != nil {
|
defer lm.accessLock.RUnlock()
|
||||||
owner = lock.Owner
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
})
|
|
||||||
return
|
|
||||||
|
|
||||||
|
if lock, found := lm.locks[key]; found {
|
||||||
|
return lock.Owner, nil
|
||||||
|
}
|
||||||
|
err = LockNotFound
|
||||||
|
return
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package lock_manager
|
package lock_manager
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/seaweedfs/seaweedfs/weed/glog"
|
||||||
"github.com/seaweedfs/seaweedfs/weed/pb"
|
"github.com/seaweedfs/seaweedfs/weed/pb"
|
||||||
"github.com/seaweedfs/seaweedfs/weed/util"
|
"github.com/seaweedfs/seaweedfs/weed/util"
|
||||||
"sort"
|
"sort"
|
||||||
@@ -39,9 +40,11 @@ func (r *LockRing) SetTakeSnapshotCallback(onTakeSnapshot func(snapshot []pb.Ser
|
|||||||
// AddServer adds a server to the ring
|
// AddServer adds a server to the ring
|
||||||
// if the previous snapshot passed the snapshot interval, create a new snapshot
|
// if the previous snapshot passed the snapshot interval, create a new snapshot
|
||||||
func (r *LockRing) AddServer(server pb.ServerAddress) {
|
func (r *LockRing) AddServer(server pb.ServerAddress) {
|
||||||
|
glog.V(0).Infof("add server %v", server)
|
||||||
r.Lock()
|
r.Lock()
|
||||||
|
|
||||||
if _, found := r.candidateServers[server]; found {
|
if _, found := r.candidateServers[server]; found {
|
||||||
|
glog.V(0).Infof("add server: already exists %v", server)
|
||||||
r.Unlock()
|
r.Unlock()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -53,6 +56,8 @@ func (r *LockRing) AddServer(server pb.ServerAddress) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *LockRing) RemoveServer(server pb.ServerAddress) {
|
func (r *LockRing) RemoveServer(server pb.ServerAddress) {
|
||||||
|
glog.V(0).Infof("remove server %v", server)
|
||||||
|
|
||||||
r.Lock()
|
r.Lock()
|
||||||
|
|
||||||
if _, found := r.candidateServers[server]; !found {
|
if _, found := r.candidateServers[server]; !found {
|
||||||
@@ -72,7 +77,13 @@ func (r *LockRing) SetSnapshot(servers []pb.ServerAddress) {
|
|||||||
return servers[i] < servers[j]
|
return servers[i] < servers[j]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
r.Lock()
|
||||||
r.lastUpdateTime = time.Now()
|
r.lastUpdateTime = time.Now()
|
||||||
|
// init candidateServers
|
||||||
|
for _, server := range servers {
|
||||||
|
r.candidateServers[server] = struct{}{}
|
||||||
|
}
|
||||||
|
r.Unlock()
|
||||||
|
|
||||||
r.addOneSnapshot(servers)
|
r.addOneSnapshot(servers)
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ var (
|
|||||||
compactVolumePath = cmdCompact.Flag.String("dir", ".", "data directory to store files")
|
compactVolumePath = cmdCompact.Flag.String("dir", ".", "data directory to store files")
|
||||||
compactVolumeCollection = cmdCompact.Flag.String("collection", "", "volume collection name")
|
compactVolumeCollection = cmdCompact.Flag.String("collection", "", "volume collection name")
|
||||||
compactVolumeId = cmdCompact.Flag.Int("volumeId", -1, "a volume id. The volume should already exist in the dir.")
|
compactVolumeId = cmdCompact.Flag.Int("volumeId", -1, "a volume id. The volume should already exist in the dir.")
|
||||||
compactMethod = cmdCompact.Flag.Int("method", 0, "option to choose which compact method. use 0 or 1.")
|
compactMethod = cmdCompact.Flag.Int("method", 0, "option to choose which compact method. use 0 (default) or 1.")
|
||||||
compactVolumePreallocate = cmdCompact.Flag.Int64("preallocateMB", 0, "preallocate volume disk space")
|
compactVolumePreallocate = cmdCompact.Flag.Int64("preallocateMB", 0, "preallocate volume disk space")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loaded 100 of 430 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user