Skip to content

Commit 974466d

Browse files
authored
Merge pull request #109 from marklogic/release/1.0.0-rc1
Release 1.0.0-rc1
2 parents 700a71b + 0c0ddc7 commit 974466d

Some content is hidden

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

51 files changed

+4537
-168
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.vscode
2-
values.yaml
32
test/test_results

Jenkinsfile

+23-8
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,7 @@ void resultNotification(message) {
115115

116116
void lint() {
117117
sh '''
118-
# Added to fix 'Context loading failed error'
119-
go get ./...
120-
echo Installing golangci-lint
121-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.0
122-
make lint saveOutput=true path=./bin/
118+
make lint saveOutput=true
123119
'''
124120

125121
LINT_OUTPUT = sh(returnStdout: true, script: 'echo helm template lint output: ;cat helm-lint-output.txt ;echo all tests lint output: ;cat test-lint-output.txt').trim()
@@ -139,10 +135,23 @@ void pullImage() {
139135
sh """
140136
echo "\$docker_password" | docker login --username \$docker_user --password-stdin ${dockerRegistry}
141137
docker pull ${dockerRepository}:${dockerVersion}
138+
docker pull ${dockerRepository}:${dockerVersion}
139+
docker pull ${dockerRepository}:${prevDockerVersion}
142140
"""
143141
}
144142
}
145143

144+
String getVersionDiv(mlVersion) {
145+
switch (mlVersion) {
146+
case '10.0':
147+
return '-'
148+
case '9.0':
149+
return '-'
150+
default:
151+
return '.'
152+
}
153+
}
154+
146155
pipeline {
147156
agent {
148157
label {
@@ -161,13 +170,19 @@ pipeline {
161170
timeStamp = sh(returnStdout: true, script: "date +%Y%m%d -d '-5 hours'").trim()
162171
dockerRegistry = 'ml-docker-dev.marklogic.com'
163172
dockerRepository = "${dockerRegistry}/marklogic/marklogic-server-centos"
164-
dockerVersion = "${ML_VERSION}-${timeStamp}-centos-1.0.0"
173+
dockerVerDivider = getVersionDiv(params.ML_VERSION)
174+
prevDockerVerDivider = getVersionDiv(params.PREV_ML_VERSION)
175+
dockerVersion = "${ML_VERSION}${dockerVerDivider}${timeStamp}-centos-${dockerReleaseVer}"
176+
prevDockerVersion = "${PREV_ML_VERSION}${prevDockerVerDivider}${timeStamp}-centos-${prevDockerReleaseVer}"
165177
}
166178

167179
parameters {
168180
string(name: 'emailList', defaultValue: emailList, description: 'List of email for build notification', trim: true)
169-
choice(name: 'ML_VERSION', choices: '10.0\n11.0\n9.0', description: 'MarkLogic version. used to pick appropriate docker image')
181+
choice(name: 'ML_VERSION', choices: '11.0\n12.0\n10.0\n9.0', description: 'MarkLogic version. used to pick appropriate docker image')
170182
booleanParam(name: 'KUBERNETES_TESTS', defaultValue: true, description: 'Run kubernetes tests')
183+
string(name: 'dockerReleaseVer', defaultValue: '1.0.2', description: 'Current Docker version. (e.g. 1.0.1)', trim: true)
184+
choice(name: 'PREV_ML_VERSION', choices: '10.0\n9.0', description: 'Previous MarkLogic version for MarkLogic upgrade tests')
185+
string(name: 'prevDockerReleaseVer', defaultValue: '1.0.2', description: 'Previous Docker version for MarkLogic upgrade tests. (e.g. 1.0.1)', trim: true)
171186
}
172187

173188
stages {
@@ -196,7 +211,7 @@ pipeline {
196211
steps {
197212
sh """
198213
export MINIKUBE_HOME=/space;
199-
make test dockerImage=${dockerRepository}:${dockerVersion} saveOutput=true
214+
make test dockerImage=${dockerRepository}:${dockerVersion} prevDockerImage=${dockerRepository}:${prevDockerVersion} saveOutput=true
200215
"""
201216
}
202217
}

README.md

+266-8
Large diffs are not rendered by default.

charts/Chart.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
annotations:
22
category: Database
33
apiVersion: v2
4+
dependencies:
5+
- condition: haproxy.enabled
6+
name: haproxy
7+
repository: "file://./charts/haproxy"
8+
version: "1.18.0"
49
name: marklogic
510
description: MarkLogic Server is a multi-model database that has both NoSQL and trusted enterprise data management capabilities.
6-
appVersion: "10.0-9.5"
11+
appVersion: "11.0.2"
712
type: application
813
keywords:
914
- marklogic
@@ -12,4 +17,4 @@ keywords:
1217
sources:
1318
- https://github.com/marklogic/marklogic-kubernetes
1419
- https://www.marklogic.com/
15-
version: 1.0.0-ea2
20+
version: 1.0.0-rc1

charts/charts/haproxy/.helmignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

charts/charts/haproxy/Chart.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright 2020 HAProxy Technologies LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
apiVersion: v2
16+
name: haproxy
17+
description: A Helm chart for HAProxy on Kubernetes
18+
type: application
19+
version: 1.18.0
20+
appVersion: 2.6.9
21+
kubeVersion: ">=1.17.0-0"
22+
keywords:
23+
- haproxy
24+
home: https://github.com/haproxytech/helm-charts/tree/main/haproxy
25+
sources:
26+
- http://www.haproxy.org/
27+
icon: https://raw.githubusercontent.com/haproxytech/helm-charts/main/haproxy/chart-icon.png
28+
maintainers:
29+
- name: Dinko Korunic
30+
31+
engine: gotpl
32+
annotations:
33+
artifacthub.io/changes: |
34+
- Update base image to HAProxy 2.6.9
35+
- Update HPA API version (#172)
36+
- Fix HPA spec (#173)
37+
- Ensure api version capabilities of PodDisruptionBudget (#175)
38+
- Add additionalPorts to service (#177)

0 commit comments

Comments
 (0)