Skip to content

Commit 9f396fb

Browse files
author
Barkha Choithani
committed
Merge remote-tracking branch 'origin/develop' into feature/CLD-596
2 parents 6e3b2b6 + e80b7fc commit 9f396fb

File tree

5 files changed

+61
-11
lines changed

5 files changed

+61
-11
lines changed

Jenkinsfile

Lines changed: 16 additions & 7 deletions
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()
@@ -143,6 +139,17 @@ void pullImage() {
143139
}
144140
}
145141

142+
String getVersionDiv(mlVersion) {
143+
switch (mlVersion) {
144+
case '10.0':
145+
return '-'
146+
case '9.0':
147+
return '-'
148+
default:
149+
return '.'
150+
}
151+
}
152+
146153
pipeline {
147154
agent {
148155
label {
@@ -161,13 +168,15 @@ pipeline {
161168
timeStamp = sh(returnStdout: true, script: "date +%Y%m%d -d '-5 hours'").trim()
162169
dockerRegistry = 'ml-docker-dev.marklogic.com'
163170
dockerRepository = "${dockerRegistry}/marklogic/marklogic-server-centos"
164-
dockerVersion = "${ML_VERSION}-${timeStamp}-centos-1.0.0"
171+
dockerVerDivider = getVersionDiv(params.ML_VERSION)
172+
dockerVersion = "${ML_VERSION}${dockerVerDivider}${timeStamp}-centos-${dockerReleaseVer}"
165173
}
166174

167175
parameters {
168176
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')
177+
choice(name: 'ML_VERSION', choices: '11.0\n12.0\n10.0\n9.0', description: 'MarkLogic version. used to pick appropriate docker image')
170178
booleanParam(name: 'KUBERNETES_TESTS', defaultValue: true, description: 'Run kubernetes tests')
179+
string(name: 'dockerReleaseVer', defaultValue: '1.0.1', description: 'Current Docker version. (e.g. 1.0.1)', trim: true)
171180
}
172181

173182
stages {

charts/templates/NOTES.txt

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{{- define "marklogic.fqdn" -}}
2+
{{- printf "%s-0.%s.%s.svc.cluster.local" (include "marklogic.fullname" .) (include "marklogic.headlessServiceName" .) .Release.Namespace }}
3+
{{- end}}
4+
5+
Thank you for installing {{ .Chart.Name }}.
6+
7+
Your release is named {{ .Release.Name }}.
8+
9+
FQDN is {{ include "marklogic.fqdn" . }}
10+
11+
Group {{ .Values.group.name }} is created on the MarkLogic cluster.
12+
13+
{{- if .Values.group.enableXdqpSsl }}
14+
xdqp-ssl-enabled is turned on for {{ .Values.group.name }} group.
15+
{{- else }}
16+
xdqp-ssl-enabled is turned off for {{ .Values.group.name }} group.
17+
{{- end }}
18+
19+
To get pods in the {{ .Release.Namespace }} namespace, try:
20+
21+
$ kubectl get pods --namespace={{ .Release.Namespace }}
22+
23+
To get all services in the {{ .Release.Namespace }} namespace, try:
24+
25+
$ kubectl get services --namespace={{ .Release.Namespace }}
26+
27+
To get admin credentials of the MarkLogic cluster, run:
28+
29+
$ kubectl get secret {{ include "marklogic.fullname" . }}-admin -o jsonpath='{.data.password}' | base64 --decode
30+
31+
To connect to the {{ .Chart.Name }} cluster, use port forwarding:
32+
33+
To access the whole cluster, forward the port to the service:
34+
35+
$ kubectl port-forward svc/{{ include "marklogic.fullname" . }} 8001:8001
36+
37+
To access first pod, forward the port to the pod using:
38+
39+
$ kubectl port-forward {{ include "marklogic.fullname" . }}-0 8001:8001
40+
41+
MarkLogic admin UI can be accessed at http://localhost:8001

charts/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ image:
2525
# Init container image parameters
2626
initContainerImage:
2727
repository: curlimages/curl
28-
tag: 7.85.0
28+
tag: 7.87.0
2929
pullPolicy: IfNotPresent
3030

3131
# Configure the imagePullSecret to pull the image from private repository that requires credential
@@ -144,7 +144,7 @@ startupProbe:
144144
# And export them to a logging backend specified in the outputs section below
145145
logCollection:
146146
enabled: false
147-
image: fluent/fluent-bit:1.9.7
147+
image: fluent/fluent-bit:2.0.6
148148
resources:
149149
requests:
150150
cpu: "100m"

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ lint:
7070
helm lint --with-subcharts charts/ $(if $(saveOutput),> helm-lint-output.txt,)
7171

7272
@echo "> Linting all tests....."
73-
$(if $(path),$(path),)golangci-lint run $(if $(saveOutput),> test-lint-output.txt,)
73+
golangci-lint run --timeout=2m $(if $(saveOutput),> test-lint-output.txt,)
7474

7575
## ---------- Testing Tasks ----------
7676

test/template/template_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func TestChartTemplateLogCollection(t *testing.T) {
9090

9191
// Verify the image matches
9292
expectedImage1 := "marklogicdb/marklogic-db:latest"
93-
expectedImage2 := "fluent/fluent-bit:1.9.7"
93+
expectedImage2 := "fluent/fluent-bit:2.0.6"
9494

9595
statefulSetContainers := statefulset.Spec.Template.Spec.Containers
9696
require.Equal(t, len(statefulSetContainers), 2)

0 commit comments

Comments
 (0)