Skip to content

Commit

Permalink
[1.2] Adjust init container script for Elastic License 2.0 (#4191) (#…
Browse files Browse the repository at this point in the history
…4202)

* Adjust init container script for Elastic License 2.0 (#4191)

* Update NOTICE

* Set 1.15 as the default version on GKE (#3660)

Co-authored-by: Michael Morello <[email protected]>
  • Loading branch information
pebrc and barkbay authored Feb 5, 2021
1 parent bc52772 commit 4adc956
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .ci/pipelines/e2e-tests-gke-k8s-versions.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,25 @@ pipeline {
}
stage('Run tests for different k8s versions in GKE') {
parallel {
stage("1.14") {
stage("1.15") {
agent {
label 'linux'
}
steps {
unstash "source"
script {
runWith(lib, failedTests, '1.14', "eck-gke14-${BUILD_NUMBER}-e2e")
runWith(lib, failedTests, '1.15', "eck-gke15-${BUILD_NUMBER}-e2e")
}
}
}
stage("1.15") {
stage("1.16") {
agent {
label 'linux'
}
steps {
unstash "source"
script {
runWith(lib, failedTests, '1.15', "eck-gke15-${BUILD_NUMBER}-e2e")
runWith(lib, failedTests, '1.16', "eck-gke16-${BUILD_NUMBER}-e2e")
}
}
}
Expand Down Expand Up @@ -82,7 +82,7 @@ pipeline {
}
cleanup {
script {
clusters = ["eck-gke14-${BUILD_NUMBER}-e2e", "eck-gke15-${BUILD_NUMBER}-e2e"]
clusters = ["eck-gke15-${BUILD_NUMBER}-e2e", "eck-gke16-${BUILD_NUMBER}-e2e"]
for (int i = 0; i < clusters.size(); i++) {
build job: 'cloud-on-k8s-e2e-cleanup',
parameters: [string(name: 'JKS_PARAM_GKE_CLUSTER', value: clusters[i])],
Expand Down
2 changes: 1 addition & 1 deletion NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2018-2020 Elasticsearch BV
Copyright 2018-2021 Elasticsearch BV

This product includes software developed by The Apache Software
Foundation (http://www.apache.org/).
Expand Down
4 changes: 2 additions & 2 deletions hack/deployer/config/plans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plans:
operation: create
clusterName: ci
provider: gke
kubernetesVersion: 1.14
kubernetesVersion: 1.15
machineType: n1-standard-8
serviceAccount: true
psp: true
Expand All @@ -19,7 +19,7 @@ plans:
operation: create
clusterName: dev
provider: gke
kubernetesVersion: 1.14
kubernetesVersion: 1.15
machineType: n1-standard-8
serviceAccount: false
psp: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var scriptTemplate = template.Must(template.New("").Parse(
# the operator only works with the default ES distribution
license=/usr/share/elasticsearch/LICENSE.txt
if [[ ! -f $license || $(grep -Fxc "ELASTIC LICENSE AGREEMENT" $license) -ne 1 ]]; then
if [[ ! -f $license || $(grep -Exc "ELASTIC LICENSE AGREEMENT|Elastic License 2.0" $license) -ne 1 ]]; then
>&2 echo "unsupported_distribution"
exit ` + fmt.Sprintf("%d", UnsupportedDistroExitCode) + `
fi
Expand Down

0 comments on commit 4adc956

Please sign in to comment.