Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit f876328

Browse files
committed
update localtest scripts
Signed-off-by: yxxhero <[email protected]>
1 parent 6df699b commit f876328

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/harbor_operator_kind.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ Usage: $(basename "$0") start [options]
4040
EOF
4141
}
4242

43+
set_dev_harbor_operator_image() {
44+
DEFAULT_DEV_HABOR_OPERATOR_IMAGE="${DEFAULT_DEV_HABOR_OPERATOR_IMAGE}_$(date +%s)"
45+
echo "The harbor operator image is set to $DEFAULT_DEV_HABOR_OPERATOR_IMAGE"
46+
}
47+
4348
cacheDir() {
4449
local arch=$(uname -m)
4550
echo "$RUNNER_TOOL_CACHE/tools/$version/$arch"
@@ -309,7 +314,7 @@ install_harbor() {
309314
}
310315

311316
check_args_number(){
312-
if [ $# -le 1 ]; then
317+
if [ $# -lt 1 ]; then
313318
echo "Usage: $0 start|clean"
314319
exit 1
315320
fi
@@ -336,6 +341,8 @@ clean(){
336341

337342
main(){
338343
check_docker_installed
344+
check_args_number $@
345+
set_dev_harbor_operator_image
339346

340347
local RUNNER_TOOL_CACHE="$DEFAULT_RUNNER_TOOL_CACHE"
341348
local version="$DEFAULT_KIND_VERSION"
@@ -346,7 +353,6 @@ main(){
346353
local wait=60s
347354
local log_level=
348355

349-
check_args_number $@
350356
case $1 in
351357
start)
352358
start $@

0 commit comments

Comments
 (0)