Skip to content

Commit 8bc24cd

Browse files
authored
Merge pull request #4 from devil-scp/master
更新镜像及apiversion
2 parents cf3fa11 + 623b7bb commit 8bc24cd

7 files changed

Lines changed: 29 additions & 7 deletions

File tree

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
stages:
44
- build

charts/model-service/templates/_helpers.tpl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,26 @@ choerodon.io/logs-parser: {{ .Values.logs.parser | quote }}
2525
{{- define "service.monitoring.pod.annotations" -}}
2626
choerodon.io/metrics-group: {{ .Values.metrics.group | quote }}
2727
choerodon.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 -}}

charts/model-service/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: apps/v1beta2
1+
apiVersion: {{ include "app.deployment.apiVersion" . }}
22
kind: Deployment
33
metadata:
44
name: {{ .Release.Name }}

charts/model-service/templates/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.ingress.enabled }}
2-
apiVersion: extensions/v1beta1
2+
apiVersion: {{ include "app.ingress.apiVersion" . }}
33
kind: Ingress
44
metadata:
55
name: {{ .Release.Name }}

charts/model-service/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

init-local-database.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
MAVEN_LOCAL_REPO=$(cd / && mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)
33
TOOL_GROUP_ID=io.choerodon
44
TOOL_ARTIFACT_ID=choerodon-tool-liquibase
5-
TOOL_VERSION=0.11.1.RELEASE
5+
TOOL_VERSION=0.12.0.RELEASE
66
TOOL_JAR_PATH=${MAVEN_LOCAL_REPO}/${TOOL_GROUP_ID/\./\/}/${TOOL_ARTIFACT_ID}/${TOOL_VERSION}/${TOOL_ARTIFACT_ID}-${TOOL_VERSION}.jar
77
mvn org.apache.maven.plugins:maven-dependency-plugin:get \
88
-Dartifact=${TOOL_GROUP_ID}:${TOOL_ARTIFACT_ID}:${TOOL_VERSION} \

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
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-->

0 commit comments

Comments
 (0)