File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- image : registry.cn-hangzhou .aliyuncs.com/choerodon-tools/cibase:0.8 .1
1+ image : registry.cn-shanghai .aliyuncs.com/choerodon-tools/cibase:0.9 .1
22
33stages :
44 - build
Original file line number Diff line number Diff line change @@ -25,4 +25,26 @@ choerodon.io/logs-parser: {{ .Values.logs.parser | quote }}
2525{ {- define " service.monitoring.pod.annotations" -} }
2626choerodon.io/metrics-group: { { .Values.metrics.group | quote } }
2727choerodon.io/metrics-path: { { .Values.metrics.path | quote } }
28+ { {- end -} }
29+
30+ { {/*
31+ Return the appropriate apiVersion for deployment.
32+ */} }
33+ { {- define " app.deployment.apiVersion" -} }
34+ { {- if semverCompare " <1.9-0" .Capabilities.KubeVersion.GitVersion -} }
35+ { {- print " apps/v1beta2" -} }
36+ { {- else -} }
37+ { {- print " apps/v1" -} }
38+ { {- end -} }
39+ { {- end -} }
40+
41+ { {/*
42+ Return the appropriate apiVersion for ingress.
43+ */} }
44+ { {- define " app.ingress.apiVersion" -} }
45+ { {- if semverCompare " <1.14-0" .Capabilities.KubeVersion.GitVersion -} }
46+ { {- print " extensions/v1beta1" -} }
47+ { {- else -} }
48+ { {- print " networking.k8s.io/v1beta1" -} }
49+ { {- end -} }
2850{ {- end -} }
Original file line number Diff line number Diff line change 1- apiVersion : apps/v1beta2
1+ apiVersion : {{ include "app.deployment.apiVersion" . }}
22kind : Deployment
33metadata :
44 name : {{ .Release.Name }}
Original file line number Diff line number Diff line change 11{{- if .Values.ingress.enabled }}
2- apiVersion : extensions/v1beta1
2+ apiVersion : {{ include "app.ingress.apiVersion" . }}
33kind : Ingress
44metadata :
55 name : {{ .Release.Name }}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ preJob:
1515 # job超时时间
1616 timeout : 300
1717 # job镜像库地址
18- image : registry.cn-hangzhou.aliyuncs.com/choerodon-tools/dbtool:0.6.4
18+ image : registry.cn-hangzhou.aliyuncs.com/choerodon-tools/dbtool:0.6.7
1919 preConfig :
2020 # 是否初始化manager_service数据库
2121 enabled : true
Original file line number Diff line number Diff line change 22MAVEN_LOCAL_REPO=$( cd / && mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)
33TOOL_GROUP_ID=io.choerodon
44TOOL_ARTIFACT_ID=choerodon-tool-liquibase
5- TOOL_VERSION=0.11.1 .RELEASE
5+ TOOL_VERSION=0.12.0 .RELEASE
66TOOL_JAR_PATH=${MAVEN_LOCAL_REPO} /${TOOL_GROUP_ID/ \. / \/ } /${TOOL_ARTIFACT_ID} /${TOOL_VERSION} /${TOOL_ARTIFACT_ID} -${TOOL_VERSION} .jar
77mvn org.apache.maven.plugins:maven-dependency-plugin:get \
88 -Dartifact=${TOOL_GROUP_ID} :${TOOL_ARTIFACT_ID} :${TOOL_VERSION} \
Original file line number Diff line number Diff line change 1212 <parent >
1313 <groupId >io.choerodon</groupId >
1414 <artifactId >choerodon-framework-parent</artifactId >
15- <version >0.11 .0.RELEASE</version >
15+ <version >0.12 .0.RELEASE</version >
1616 </parent >
1717
1818 <!-- choerodon-starters dependency-->
1919 <properties >
20- <choerodon .starters.version>0.11.1 .RELEASE</choerodon .starters.version>
20+ <choerodon .starters.version>0.12.0 .RELEASE</choerodon .starters.version>
2121 </properties >
2222 <dependencies >
2323 <!-- spring boot-->
You can’t perform that action at this time.
0 commit comments