Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Commit 20f522f

Browse files
authored
Elastic License 2.0 (elastic#4887)
Move ECK source code to the Elastic license 2.0: - Update sources with new Elastic-2.0 license headers - Update LICENSE.txt - Update license header check script
1 parent 155a327 commit 20f522f

File tree

875 files changed

+1844
-1974
lines changed

Some content is hidden

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

875 files changed

+1844
-1974
lines changed

.ci/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
# or more contributor license agreements. Licensed under the Elastic License;
3-
# you may not use this file except in compliance with the Elastic License.
2+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
# you may not use this file except in compliance with the Elastic License 2.0.
44

55
# This Makefile is mostly used for continuous integration.
66

.ci/common/tests.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
// Common test related code for Jenkins pipelines
66

.ci/packer_cache.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4-
# or more contributor license agreements. Licensed under the Elastic License;
5-
# you may not use this file except in compliance with the Elastic License.
4+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
5+
# you may not use this file except in compliance with the Elastic License 2.0.
66

77
# This script is used to pre-pull Docker images into the immutable image of Jenkins workers.
88

.ci/setenvconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4-
# or more contributor license agreements. Licensed under the Elastic License;
5-
# you may not use this file except in compliance with the Elastic License.
4+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
5+
# you may not use this file except in compliance with the Elastic License 2.0.
66

77
# Script to setup environment variables and deployer config to run CI tasks.
88
#

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ linters-settings:
88
goheader:
99
template: |-
1010
Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
11-
or more contributor license agreements. Licensed under the Elastic License;
12-
you may not use this file except in compliance with the Elastic License.
11+
or more contributor license agreements. Licensed under the Elastic License 2.0;
12+
you may not use this file except in compliance with the Elastic License 2.0.
1313
1414
nolintlint:
1515
allow-leading-space: false

LICENSE.txt

Lines changed: 93 additions & 223 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
# or more contributor license agreements. Licensed under the Elastic License;
3-
# you may not use this file except in compliance with the Elastic License.
2+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
# you may not use this file except in compliance with the Elastic License 2.0.
44

55
#################################
66
## -- Variables -- ##

cmd/license-initializer/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package main
66

@@ -72,8 +72,8 @@ func generateSrc(pubkeyFile string, out io.Writer) {
7272
ShouldBreak func(int) bool
7373
}
7474
var tmpl = `// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
75-
// or more contributor license agreements. Licensed under the Elastic License;
76-
// you may not use this file except in compliance with the Elastic License.
75+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
76+
// you may not use this file except in compliance with the Elastic License 2.0.
7777
7878
package license
7979

cmd/license-initializer/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
// +build integration
66

cmd/license-initializer/testdata/expected.src

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package license
66

cmd/licensing-info/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package main
66

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package main
66

cmd/manager/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package manager
66

cmd/manager/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package manager
66

deploy/helm-migrate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4-
# or more contributor license agreements. Licensed under the Elastic License;
5-
# you may not use this file except in compliance with the Elastic License.
4+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
5+
# you may not use this file except in compliance with the Elastic License 2.0.
66

77
# Script to migrate an existing ECK 1.7.1 installation to Helm.
88

hack/annotator/annotator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4-
# or more contributor license agreements. Licensed under the Elastic License;
5-
# you may not use this file except in compliance with the Elastic License.
4+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
5+
# you may not use this file except in compliance with the Elastic License 2.0.
66

77
# Script to automate the task of adding or removing the "exclude" annotation from/to all Elastic resources in a Kubernetes cluster.
88

hack/api-docs/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4-
# or more contributor license agreements. Licensed under the Elastic License;
5-
# you may not use this file except in compliance with the Elastic License.
4+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
5+
# you may not use this file except in compliance with the Elastic License 2.0.
66

77
# Script to generate API reference documentation from the source code.
88
# To test with a different version of crd-ref-docs while retaining the binary, invoke the script as follows:

hack/boilerplate.go.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.

hack/check/check-license-header.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4-
# or more contributor license agreements. Licensed under the Elastic License;
5-
# you may not use this file except in compliance with the Elastic License.
4+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
5+
# you may not use this file except in compliance with the Elastic License 2.0.
66

77
# Check that the Elastic license is applied to all files.
88

@@ -16,7 +16,7 @@ files=$(grep \
1616
--include=\*.go --exclude-dir=vendor \
1717
--include=\*.sh \
1818
--include=Makefile \
19-
-L "Copyright Elasticsearch B.V." \
19+
-L "Elastic License 2.0" \
2020
-r ${CHECK_PATH} || true)
2121

2222
[ "$files" != "" ] \

hack/check/check-requisites.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#! /usr/bin/env bash
22

33
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4-
# or more contributor license agreements. Licensed under the Elastic License;
5-
# you may not use this file except in compliance with the Elastic License.
4+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
5+
# you may not use this file except in compliance with the Elastic License 2.0.
66

77
# This script will check for any missing tool required to contribute to this project.
88

hack/ci/generate-junit-xml-report.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4-
# or more contributor license agreements. Licensed under the Elastic License;
5-
# you may not use this file except in compliance with the Elastic License.
4+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
5+
# you may not use this file except in compliance with the Elastic License 2.0.
66

77
# Script to generate a JUnit XML report from a JSON go test output.
88
#

hack/config-extractor/extract.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4-
# or more contributor license agreements. Licensed under the Elastic License;
5-
# you may not use this file except in compliance with the Elastic License.
4+
# or more contributor license agreements. Licensed under the Elastic License 2.0;
5+
# you may not use this file except in compliance with the Elastic License 2.0.
66

77
# Script to extract ECK configuration map contents from all-in-one.yaml
88

hack/config-extractor/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package main
66

hack/deployer/cmd/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package cmd
66

hack/deployer/cmd/execute.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package cmd
66

hack/deployer/cmd/get.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package cmd
66

hack/deployer/cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package cmd
66

hack/deployer/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package main
66

hack/deployer/runner/aks.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/azure.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/driver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/eks.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/gcloud.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/gke.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/kind.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/kubeconfig.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/ocp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/ocp3.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

hack/deployer/runner/settings.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2-
// or more contributor license agreements. Licensed under the Elastic License;
3-
// you may not use this file except in compliance with the Elastic License.
2+
// or more contributor license agreements. Licensed under the Elastic License 2.0;
3+
// you may not use this file except in compliance with the Elastic License 2.0.
44

55
package runner
66

0 commit comments

Comments
 (0)