Merge branch 'main' into master

This commit is contained in:
Twwy 2023-04-10 15:03:44 +08:00 committed by GitHub
commit d9247c5fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 66 deletions

View File

@ -38,7 +38,7 @@
"description": "MicroServiceSpec defines the desired state of MicroService",
"properties": {
"advancedStatefulSet": {
"description": "AdvancedStatefulSet 映射",
"description": "AdvancedStatefulSet Map",
"properties": {
"podManagementPolicy": {
"description": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.",
@ -6291,7 +6291,7 @@
"type": "object"
},
"cloneSet": {
"description": "CloneSet 映射",
"description": "CloneSet Map",
"properties": {
"lifecycle": {
"description": "Lifecycle defines the lifecycle hooks for Pods pre-delete, in-place update.",

View File

@ -1,61 +0,0 @@
#!/bin/bash
#
# sreworks_project_path/contribute-to-sreworks.sh "paas/appmanager"
#
SW_ROOT=$(cd `dirname $0`; pwd)
IS_GIT_ROOT=$(ls -l .git|wc -l|awk '{print $1}')
if [ "$IS_GIT_ROOT" = "0" ];then
echo ""
echo "Please run contribute-to-sreworks.sh in Git Project root path /"
exit 1
fi
# 判断目标路径是否存在
TARGET_PATH=$1
if [ ! -d ${SW_ROOT}/${TARGET_PATH} ];then
echo "Target app path not found"
exit 1
fi
# 只能拷贝到paas/saas这两个目录下
if [[ "$TARGET_PATH" =~ ^paas/.* ]] || [[ "$TARGET_PATH" =~ ^saas/.* ]] || [[ "$TARGET_PATH" =~ ^/paas/.* ]] || [[ "$TARGET_PATH" =~ ^/saas/.* ]]; then
echo "Path check ok"
else
echo "Please copy code to paas/* or saas/*"
echo ""
echo "List paas/"
ls -l ${SW_ROOT}/${TARGET_PATH}/paas/|grep -v "total "
echo ""
echo "List saas/"
ls -l ${SW_ROOT}/${TARGET_PATH}/saas/|grep -v "total "
exit 1
fi
# 将当前代码拷贝到一个临时目录,移除.git文件
rm -rf /tmp/tmp_sw_project
mkdir -p /tmp/tmp_sw_project
which rsync
if [ $? -eq 0 ]; then
rsync -r --exclude="node_modules" --exclude=".git" ./ /tmp/tmp_sw_project/
if [[ "$TARGET_PATH" =~ "sw-frontend" ]]; then
mv ${SW_ROOT}/${TARGET_PATH}/docs /tmp/tmp_sw_project/docs
fi
else
cp -r ./ /tmp/tmp_sw_project/
rm -rf /tmp/tmp_sw_project/.git
find /tmp/tmp_sw_project/ -type d -name "node_modules" | xargs rm -rf
fi
mv /tmp/tmp_sw_project ${SW_ROOT}/${TARGET_PATH}/../
mv ${SW_ROOT}/${TARGET_PATH}/../tmp_sw_project ${SW_ROOT}/${TARGET_PATH}.bak
rm -rf ${SW_ROOT}/${TARGET_PATH}
mv ${SW_ROOT}/${TARGET_PATH}.bak ${SW_ROOT}/${TARGET_PATH}
echo "Copy code ok"

View File

@ -52,7 +52,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.76</version>
<version>1.2.83</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>

View File

@ -55,7 +55,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.76</version>
<version>1.2.83</version>
</dependency>
<!-- tesla dependency -->
<dependency>

View File

@ -58,7 +58,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.76</version>
<version>1.2.83</version>
</dependency>
<!-- db -->
<dependency>