Skip to content

Commit f6eb657

Browse files
committed
Merge branch 'main' into module-bfl
* main: settings: add settings new version and update provider api (#2456) refactor(cli): unify config of command line options and envs (#2453) appservice: v2 app stop (#2455) download-server:add download err category && modify aria2 max concurrent (#2445) docs: add storage expansion via CLI (#2409) cli: upgrade l4-bfl-proxy to v0.3.10 (#2442) l4: skip invalid expose port (#2441) appservice: add clickhouse support (#2440) daemon: change pcap open timeout to 1 millisecond to prevent close hang (#2439) tapr: add clickhouse support (#2437) feat(gpu): supports dynamic detection of hot plugged-in GPUs (#2435) feat(olares-app): update version to v1.8.2 (#2433) bfl: myapps api add rawAppName (#2432) cli: feat amdgpu install (#2430) feat(cli): collect nginx logs stored temporarily in some containers (#2429) docs/update/olares-space-storage-info # Conflicts: # framework/bfl/.olares/config/launcher/templates/bfl_deploy.yaml
2 parents 9113e14 + cfb74ce commit f6eb657

File tree

169 files changed

+2863
-7063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+2863
-7063
lines changed

apps/.olares/config/user/helm-charts/system-apps/templates/files-provider.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ rules:
5454
- "/system/configuration/encoding"
5555
- "/api/search/get_directory/"
5656
- "/api/search/sync_search/"
57+
- "/api/share/smb_share_user/"
5758
verbs: ["*"]
5859

5960
---

apps/.olares/config/user/helm-charts/system-apps/templates/olares-app.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ spec:
317317
chown -R 1000:1000 /uploadstemp && \
318318
chown -R 1000:1000 /appdata
319319
- name: olares-app-init
320-
image: beclab/system-frontend:v1.7.7
320+
image: beclab/system-frontend:v1.8.3
321321
imagePullPolicy: IfNotPresent
322322
command:
323323
- /bin/sh
@@ -439,7 +439,7 @@ spec:
439439
- name: NATS_SUBJECT_VAULT
440440
value: os.vault.{{ .Values.bfl.username}}
441441
- name: user-service
442-
image: beclab/user-service:v0.0.82
442+
image: beclab/user-service:v0.0.83
443443
imagePullPolicy: IfNotPresent
444444
ports:
445445
- containerPort: 3000

apps/.olares/config/user/helm-charts/system-apps/templates/search-provider.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ rules:
1212
- "/task/*"
1313
- "/search/*"
1414
- "/monitorsetting/*"
15+
- "/file/*"
1516
verbs: ["*"]

build/base-package/install.sh

Lines changed: 14 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,7 @@ if ! command_exists tar; then
6666
exit 1
6767
fi
6868

69-
if [[ x"$KUBE_TYPE" == x"" ]]; then
70-
echo "the KUBE_TYPE env var is not set, defaulting to \"k3s\""
71-
echo ""
72-
export KUBE_TYPE="k3s"
73-
fi
74-
75-
BASE_DIR="$HOME/.olares"
69+
export BASE_DIR="$HOME/.olares"
7670
if [ ! -d $BASE_DIR ]; then
7771
mkdir -p $BASE_DIR
7872
fi
@@ -148,10 +142,6 @@ else
148142
fi
149143
fi
150144

151-
PARAMS="--version $VERSION --base-dir $BASE_DIR"
152-
KUBE_PARAM="--kube $KUBE_TYPE"
153-
CDN="--cdn-service ${cdn_url}"
154-
155145
if [[ -f $BASE_DIR/.prepared ]]; then
156146
echo "file $BASE_DIR/.prepared detected, skip preparing phase"
157147
echo ""
@@ -162,7 +152,7 @@ else
162152
echo ""
163153
else
164154
echo "building local release ..."
165-
$sh_c "$INSTALL_OLARES_CLI release $PARAMS $CDN"
155+
$sh_c "$INSTALL_OLARES_CLI release"
166156
if [[ $? -ne 0 ]]; then
167157
echo "error: failed to build local release"
168158
exit 1
@@ -171,16 +161,13 @@ else
171161
else
172162
echo "running system prechecks ..."
173163
echo ""
174-
$sh_c "$INSTALL_OLARES_CLI precheck $PARAMS"
164+
$sh_c "$INSTALL_OLARES_CLI precheck"
175165
if [[ $? -ne 0 ]]; then
176166
exit 1
177167
fi
178168
echo "downloading installation wizard..."
179169
echo ""
180-
if [[ ! -z "$RELEASE_ID_SUFFIX" ]]; then
181-
DOWNLOAD_WIZARD_RELEASE_ID_PARAM="--release-id $RELEASE_ID"
182-
fi
183-
$sh_c "$INSTALL_OLARES_CLI download wizard $PARAMS $KUBE_PARAM $CDN $DOWNLOAD_WIZARD_RELEASE_ID_PARAM"
170+
$sh_c "$INSTALL_OLARES_CLI download wizard"
184171
if [[ $? -ne 0 ]]; then
185172
echo "error: failed to download installation wizard"
186173
exit 1
@@ -189,19 +176,15 @@ else
189176

190177
echo "downloading installation packages..."
191178
echo ""
192-
$sh_c "$INSTALL_OLARES_CLI download component $PARAMS $KUBE_PARAM $CDN"
179+
$sh_c "$INSTALL_OLARES_CLI download component"
193180
if [[ $? -ne 0 ]]; then
194181
echo "error: failed to download installation packages"
195182
exit 1
196183
fi
197184

198185
echo "preparing installation environment..."
199186
echo ""
200-
# env 'REGISTRY_MIRRORS' is a docker image cache mirrors, separated by commas
201-
if [ x"$REGISTRY_MIRRORS" != x"" ]; then
202-
extra="--registry-mirrors $REGISTRY_MIRRORS"
203-
fi
204-
$sh_c "$INSTALL_OLARES_CLI prepare $PARAMS $KUBE_PARAM $extra"
187+
$sh_c "$INSTALL_OLARES_CLI prepare"
205188
if [[ $? -ne 0 ]]; then
206189
echo "error: failed to prepare installation environment"
207190
exit 1
@@ -218,38 +201,18 @@ if [ "$PREINSTALL" == "1" ]; then
218201
exit 0
219202
fi
220203

221-
if [[ "$JUICEFS" == "1" ]]; then
222-
echo "JuiceFS is enabled"
223-
fsflag="--with-juicefs=true"
224-
if [[ "$STORAGE" == "" ]]; then
225-
echo "installing MinIO ..."
226-
else
227-
echo "checking storage config ..."
228-
fi
229-
$sh_c "$INSTALL_OLARES_CLI install storage $PARAMS"
230-
if [[ $? -ne 0 ]]; then
231-
exit 1
232-
fi
233-
fi
234204

235-
if [[ -n "$SWAPPINESS" ]]; then
236-
swapflag="$swapflag --swappiness $SWAPPINESS"
237-
fi
238-
if [[ "$ENABLE_POD_SWAP" == "1" ]]; then
239-
swapflag="$swapflag --enable-pod-swap"
240-
fi
241-
if [[ "$ENABLE_ZRAM" == "1" ]]; then
242-
swapflag="$swapflag --enable-zram"
243-
fi
244-
if [[ -n "$ZRAM_SIZE" ]]; then
245-
swapflag="$swapflag --zram-size $ZRAM_SIZE"
246-
fi
247-
if [[ -n "$ZRAM_SWAP_PRIORITY" ]]; then
248-
swapflag="$swapflag --zram-swap-priority $ZRAM_SWAP_PRIORITY"
205+
echo "configuring storage ..."
206+
$sh_c "$INSTALL_OLARES_CLI install storage"
207+
if [[ $? -ne 0 ]]; then
208+
echo "error: failed to configure storage"
209+
exit 1
249210
fi
211+
212+
250213
echo "installing Olares..."
251214
echo ""
252-
$sh_c "$INSTALL_OLARES_CLI install $PARAMS $KUBE_PARAM $fsflag $swapflag"
215+
$sh_c "$INSTALL_OLARES_CLI install"
253216

254217
if [[ $? -ne 0 ]]; then
255218
echo "error: failed to install Olares"

cli/apis/kubekey/v1alpha1/addons_types.go

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)