diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000000..e9174e2879 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,223 @@ +ELASTIC LICENSE AGREEMENT + +PLEASE READ CAREFULLY THIS ELASTIC LICENSE AGREEMENT (THIS "AGREEMENT"), WHICH +CONSTITUTES A LEGALLY BINDING AGREEMENT AND GOVERNS ALL OF YOUR USE OF ALL OF +THE ELASTIC SOFTWARE WITH WHICH THIS AGREEMENT IS INCLUDED ("ELASTIC SOFTWARE") +THAT IS PROVIDED IN OBJECT CODE FORMAT, AND, IN ACCORDANCE WITH SECTION 2 BELOW, +CERTAIN OF THE ELASTIC SOFTWARE THAT IS PROVIDED IN SOURCE CODE FORMAT. BY +INSTALLING OR USING ANY OF THE ELASTIC SOFTWARE GOVERNED BY THIS AGREEMENT, YOU +ARE ASSENTING TO THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE +WITH SUCH TERMS AND CONDITIONS, YOU MAY NOT INSTALL OR USE THE ELASTIC SOFTWARE +GOVERNED BY THIS AGREEMENT. IF YOU ARE INSTALLING OR USING THE SOFTWARE ON +BEHALF OF A LEGAL ENTITY, YOU REPRESENT AND WARRANT THAT YOU HAVE THE ACTUAL +AUTHORITY TO AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT ON BEHALF OF +SUCH ENTITY. + +Posted Date: April 20, 2018 + +This Agreement is entered into by and between Elasticsearch BV ("Elastic") and +You, or the legal entity on behalf of whom You are acting (as applicable, +"You"). + +1. OBJECT CODE END USER LICENSES, RESTRICTIONS AND THIRD PARTY OPEN SOURCE +SOFTWARE + + 1.1 Object Code End User License. Subject to the terms and conditions of + Section 1.2 of this Agreement, Elastic hereby grants to You, AT NO CHARGE and + for so long as you are not in breach of any provision of this Agreement, a + License to the Basic Features and Functions of the Elastic Software. + + 1.2 Reservation of Rights; Restrictions. As between Elastic and You, Elastic + and its licensors own all right, title and interest in and to the Elastic + Software, and except as expressly set forth in Sections 1.1, and 2.1 of this + Agreement, no other license to the Elastic Software is granted to You under + this Agreement, by implication, estoppel or otherwise. You agree not to: (i) + reverse engineer or decompile, decrypt, disassemble or otherwise reduce any + Elastic Software provided to You in Object Code, or any portion thereof, to + Source Code, except and only to the extent any such restriction is prohibited + by applicable law, (ii) except as expressly permitted in this Agreement, + prepare derivative works from, modify, copy or use the Elastic Software Object + Code or the Commercial Software Source Code in any manner; (iii) except as + expressly permitted in Section 1.1 above, transfer, sell, rent, lease, + distribute, sublicense, loan or otherwise transfer, Elastic Software Object + Code, in whole or in part, to any third party; (iv) use Elastic Software + Object Code for providing time-sharing services, any software-as-a-service, + service bureau services or as part of an application services provider or + other service offering (collectively, "SaaS Offering") where obtaining access + to the Elastic Software or the features and functions of the Elastic Software + is a primary reason or substantial motivation for users of the SaaS Offering + to access and/or use the SaaS Offering ("Prohibited SaaS Offering"); (v) + circumvent the limitations on use of Elastic Software provided to You in + Object Code format that are imposed or preserved by any License Key, or (vi) + alter or remove any Marks and Notices in the Elastic Software. If You have any + question as to whether a specific SaaS Offering constitutes a Prohibited SaaS + Offering, or are interested in obtaining Elastic's permission to engage in + commercial or non-commercial distribution of the Elastic Software, please + contact elastic_license@elastic.co. + + 1.3 Third Party Open Source Software. The Commercial Software may contain or + be provided with third party open source libraries, components, utilities and + other open source software (collectively, "Open Source Software"), which Open + Source Software may have applicable license terms as identified on a website + designated by Elastic. Notwithstanding anything to the contrary herein, use of + the Open Source Software shall be subject to the license terms and conditions + applicable to such Open Source Software, to the extent required by the + applicable licensor (which terms shall not restrict the license rights granted + to You hereunder, but may contain additional rights). To the extent any + condition of this Agreement conflicts with any license to the Open Source + Software, the Open Source Software license will govern with respect to such + Open Source Software only. Elastic may also separately provide you with + certain open source software that is licensed by Elastic. Your use of such + Elastic open source software will not be governed by this Agreement, but by + the applicable open source license terms. + +2. COMMERCIAL SOFTWARE SOURCE CODE + + 2.1 Limited License. Subject to the terms and conditions of Section 2.2 of + this Agreement, Elastic hereby grants to You, AT NO CHARGE and for so long as + you are not in breach of any provision of this Agreement, a limited, + non-exclusive, non-transferable, fully paid up royalty free right and license + to the Commercial Software in Source Code format, without the right to grant + or authorize sublicenses, to prepare Derivative Works of the Commercial + Software, provided You (i) do not hack the licensing mechanism, or otherwise + circumvent the intended limitations on the use of Elastic Software to enable + features other than Basic Features and Functions or those features You are + entitled to as part of a Subscription, and (ii) use the resulting object code + only for reasonable testing purposes. + + 2.2 Restrictions. Nothing in Section 2.1 grants You the right to (i) use the + Commercial Software Source Code other than in accordance with Section 2.1 + above, (ii) use a Derivative Work of the Commercial Software outside of a + Non-production Environment, in any production capacity, on a temporary or + permanent basis, or (iii) transfer, sell, rent, lease, distribute, sublicense, + loan or otherwise make available the Commercial Software Source Code, in whole + or in part, to any third party. Notwithstanding the foregoing, You may + maintain a copy of the repository in which the Source Code of the Commercial + Software resides and that copy may be publicly accessible, provided that you + include this Agreement with Your copy of the repository. + +3. TERMINATION + + 3.1 Termination. This Agreement will automatically terminate, whether or not + You receive notice of such Termination from Elastic, if You breach any of its + provisions. + + 3.2 Post Termination. Upon any termination of this Agreement, for any reason, + You shall promptly cease the use of the Elastic Software in Object Code format + and cease use of the Commercial Software in Source Code format. For the + avoidance of doubt, termination of this Agreement will not affect Your right + to use Elastic Software, in either Object Code or Source Code formats, made + available under the Apache License Version 2.0. + + 3.3 Survival. Sections 1.2, 2.2. 3.3, 4 and 5 shall survive any termination or + expiration of this Agreement. + +4. DISCLAIMER OF WARRANTIES AND LIMITATION OF LIABILITY + + 4.1 Disclaimer of Warranties. TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE + LAW, THE ELASTIC SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, + AND ELASTIC AND ITS LICENSORS MAKE NO WARRANTIES WHETHER EXPRESSED, IMPLIED OR + STATUTORY REGARDING OR RELATING TO THE ELASTIC SOFTWARE. TO THE MAXIMUM EXTENT + PERMITTED UNDER APPLICABLE LAW, ELASTIC AND ITS LICENSORS SPECIFICALLY + DISCLAIM ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE AND NON-INFRINGEMENT WITH RESPECT TO THE ELASTIC SOFTWARE, AND WITH + RESPECT TO THE USE OF THE FOREGOING. FURTHER, ELASTIC DOES NOT WARRANT RESULTS + OF USE OR THAT THE ELASTIC SOFTWARE WILL BE ERROR FREE OR THAT THE USE OF THE + ELASTIC SOFTWARE WILL BE UNINTERRUPTED. + + 4.2 Limitation of Liability. IN NO EVENT SHALL ELASTIC OR ITS LICENSORS BE + LIABLE TO YOU OR ANY THIRD PARTY FOR ANY DIRECT OR INDIRECT DAMAGES, + INCLUDING, WITHOUT LIMITATION, FOR ANY LOSS OF PROFITS, LOSS OF USE, BUSINESS + INTERRUPTION, LOSS OF DATA, COST OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY + SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND, IN CONNECTION WITH + OR ARISING OUT OF THE USE OR INABILITY TO USE THE ELASTIC SOFTWARE, OR THE + PERFORMANCE OF OR FAILURE TO PERFORM THIS AGREEMENT, WHETHER ALLEGED AS A + BREACH OF CONTRACT OR TORTIOUS CONDUCT, INCLUDING NEGLIGENCE, EVEN IF ELASTIC + HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +5. MISCELLANEOUS + + This Agreement completely and exclusively states the entire agreement of the + parties regarding the subject matter herein, and it supersedes, and its terms + govern, all prior proposals, agreements, or other communications between the + parties, oral or written, regarding such subject matter. This Agreement may be + modified by Elastic from time to time, and any such modifications will be + effective upon the "Posted Date" set forth at the top of the modified + Agreement. If any provision hereof is held unenforceable, this Agreement will + continue without said provision and be interpreted to reflect the original + intent of the parties. This Agreement and any non-contractual obligation + arising out of or in connection with it, is governed exclusively by Dutch law. + This Agreement shall not be governed by the 1980 UN Convention on Contracts + for the International Sale of Goods. All disputes arising out of or in + connection with this Agreement, including its existence and validity, shall be + resolved by the courts with jurisdiction in Amsterdam, The Netherlands, except + where mandatory law provides for the courts at another location in The + Netherlands to have jurisdiction. The parties hereby irrevocably waive any and + all claims and defenses either might otherwise have in any such action or + proceeding in any of such courts based upon any alleged lack of personal + jurisdiction, improper venue, forum non conveniens or any similar claim or + defense. A breach or threatened breach, by You of Section 2 may cause + irreparable harm for which damages at law may not provide adequate relief, and + therefore Elastic shall be entitled to seek injunctive relief without being + required to post a bond. You may not assign this Agreement (including by + operation of law in connection with a merger or acquisition), in whole or in + part to any third party without the prior written consent of Elastic, which + may be withheld or granted by Elastic in its sole and absolute discretion. + Any assignment in violation of the preceding sentence is void. Notices to + Elastic may also be sent to legal@elastic.co. + +6. DEFINITIONS + + The following terms have the meanings ascribed: + + 6.1 "Affiliate" means, with respect to a party, any entity that controls, is + controlled by, or which is under common control with, such party, where + "control" means ownership of at least fifty percent (50%) of the outstanding + voting shares of the entity, or the contractual right to establish policy for, + and manage the operations of, the entity. + + 6.2 "Basic Features and Functions" means those features and functions of the + Elastic Software that are eligible for use under a Basic license, as set forth + at https://www.elastic.co/subscriptions, as may be modified by Elastic from + time to time. + + 6.3 "Commercial Software" means the Elastic Software Source Code in any file + containing a header stating the contents are subject to the Elastic License or + which is contained in the repository folder labeled "x-pack", unless a LICENSE + file present in the directory subtree declares a different license. + + 6.4 "Derivative Work of the Commercial Software" means, for purposes of this + Agreement, any modification(s) or enhancement(s) to the Commercial Software, + which represent, as a whole, an original work of authorship. + + 6.5 "License" means a limited, non-exclusive, non-transferable, fully paid up, + royalty free, right and license, without the right to grant or authorize + sublicenses, solely for Your internal business operations to (i) install and + use the applicable Features and Functions of the Elastic Software in Object + Code, and (ii) permit Contractors and Your Affiliates to use the Elastic + software as set forth in (i) above, provided that such use by Contractors must + be solely for Your benefit and/or the benefit of Your Affiliates, and You + shall be responsible for all acts and omissions of such Contractors and + Affiliates in connection with their use of the Elastic software that are + contrary to the terms and conditions of this Agreement. + + 6.6 "License Key" means a sequence of bytes, including but not limited to a + JSON blob, that is used to enable certain features and functions of the + Elastic Software. + + 6.7 "Marks and Notices" means all Elastic trademarks, trade names, logos and + notices present on the Documentation as originally provided by Elastic. + + 6.8 "Non-production Environment" means an environment for development, testing + or quality assurance, where software is not used for production purposes. + + 6.9 "Object Code" means any form resulting from mechanical transformation or + translation of Source Code form, including but not limited to compiled object + code, generated documentation, and conversions to other media types. + + 6.10 "Source Code" means the preferred form of computer software for making + modifications, including but not limited to software source code, + documentation source, and configuration files. + + 6.11 "Subscription" means the right to receive Support Services and a License + to the Commercial Software. \ No newline at end of file diff --git a/Makefile b/Makefile index 326de0e077..40ee643320 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,14 @@ +# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +# or more contributor license agreements. Licensed under the Elastic License; +# you may not use this file except in compliance with the Elastic License. + MOUNT_PATH ?= /go/src/github.com/elastic/k8s-operators CI_IMAGE_NAME ?= elastic-operators-ci build-image: docker build -f Dockerfile.ci -t $(CI_IMAGE_NAME) . -ci: build-image +ci: check-license-header build-image docker run --rm -t \ -v $(CURDIR):$(MOUNT_PATH) \ -w $(MOUNT_PATH) \ @@ -12,3 +16,14 @@ ci: build-image bash -c \ "make -C operators ci && \ make -C local-volume ci" + +check-license-header: + @ files=$$(grep \ + --include=\*.go --exclude-dir=vendor \ + --include=\*.sh \ + --include=Makefile \ + -L "Copyright Elasticsearch B.V." \ + -r *); \ + [ "$$files" != "" ] \ + && echo "Error: file(s) without license header:\n$$files" && exit 1 \ + || exit 0 diff --git a/local-volume/Makefile b/local-volume/Makefile index e49ffc19dc..01c13ef340 100644 --- a/local-volume/Makefile +++ b/local-volume/Makefile @@ -1,3 +1,7 @@ +# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +# or more contributor license agreements. Licensed under the Elastic License; +# you may not use this file except in compliance with the Elastic License. + export SHELL := /bin/bash DEP := $(shell command -v dep) IMG_TAG ?= latest diff --git a/local-volume/cmd/driverclient/init.go b/local-volume/cmd/driverclient/init.go index 459cbc8ab6..cd728a2d13 100644 --- a/local-volume/cmd/driverclient/init.go +++ b/local-volume/cmd/driverclient/init.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package main import ( diff --git a/local-volume/cmd/driverclient/mount.go b/local-volume/cmd/driverclient/mount.go index 31ffcb7e2d..3a2c4c18d1 100644 --- a/local-volume/cmd/driverclient/mount.go +++ b/local-volume/cmd/driverclient/mount.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package main import ( diff --git a/local-volume/cmd/driverclient/root.go b/local-volume/cmd/driverclient/root.go index 85c92d8cd1..ce612a28d4 100644 --- a/local-volume/cmd/driverclient/root.go +++ b/local-volume/cmd/driverclient/root.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package main import ( diff --git a/local-volume/cmd/driverclient/unmount.go b/local-volume/cmd/driverclient/unmount.go index 53c5575911..76659cae64 100644 --- a/local-volume/cmd/driverclient/unmount.go +++ b/local-volume/cmd/driverclient/unmount.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package main import ( diff --git a/local-volume/cmd/driverdaemon/main.go b/local-volume/cmd/driverdaemon/main.go index 5e5adadecd..a9564ac60e 100644 --- a/local-volume/cmd/driverdaemon/main.go +++ b/local-volume/cmd/driverdaemon/main.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package main import ( diff --git a/local-volume/cmd/provisioner/main.go b/local-volume/cmd/provisioner/main.go index fccc600754..c727c638ae 100644 --- a/local-volume/cmd/provisioner/main.go +++ b/local-volume/cmd/provisioner/main.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package main import ( diff --git a/local-volume/pkg/driver/client/caller.go b/local-volume/pkg/driver/client/caller.go index b33f0986dc..35d510bbbe 100644 --- a/local-volume/pkg/driver/client/caller.go +++ b/local-volume/pkg/driver/client/caller.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package client import ( diff --git a/local-volume/pkg/driver/client/caller_test.go b/local-volume/pkg/driver/client/caller_test.go index 1d4dd56c09..80dc7cecf1 100644 --- a/local-volume/pkg/driver/client/caller_test.go +++ b/local-volume/pkg/driver/client/caller_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package client import ( diff --git a/local-volume/pkg/driver/client/client.go b/local-volume/pkg/driver/client/client.go index e33e6a1707..0e7ddba60e 100644 --- a/local-volume/pkg/driver/client/client.go +++ b/local-volume/pkg/driver/client/client.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package client import ( diff --git a/local-volume/pkg/driver/client/client_test.go b/local-volume/pkg/driver/client/client_test.go index 078b17d8ca..4d20cee84b 100644 --- a/local-volume/pkg/driver/client/client_test.go +++ b/local-volume/pkg/driver/client/client_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package client import ( diff --git a/local-volume/pkg/driver/daemon/cmdutil/cmd.go b/local-volume/pkg/driver/daemon/cmdutil/cmd.go index 70b164fe6c..041a091bcc 100644 --- a/local-volume/pkg/driver/daemon/cmdutil/cmd.go +++ b/local-volume/pkg/driver/daemon/cmdutil/cmd.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package cmdutil import ( diff --git a/local-volume/pkg/driver/daemon/cmdutil/cmd_test.go b/local-volume/pkg/driver/daemon/cmdutil/cmd_test.go index 8d76345a78..9f5fda905e 100644 --- a/local-volume/pkg/driver/daemon/cmdutil/cmd_test.go +++ b/local-volume/pkg/driver/daemon/cmdutil/cmd_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package cmdutil import ( diff --git a/local-volume/pkg/driver/daemon/cmdutil/fake.go b/local-volume/pkg/driver/daemon/cmdutil/fake.go index decb1949ca..b741e43ca5 100644 --- a/local-volume/pkg/driver/daemon/cmdutil/fake.go +++ b/local-volume/pkg/driver/daemon/cmdutil/fake.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package cmdutil // FakeExecutables Wraps around the FakeExecutable to provide multiple stubs in diff --git a/local-volume/pkg/driver/daemon/diskutil/directories.go b/local-volume/pkg/driver/daemon/diskutil/directories.go index d3c52f685f..c3c1558429 100644 --- a/local-volume/pkg/driver/daemon/diskutil/directories.go +++ b/local-volume/pkg/driver/daemon/diskutil/directories.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package diskutil import ( diff --git a/local-volume/pkg/driver/daemon/diskutil/directories_test.go b/local-volume/pkg/driver/daemon/diskutil/directories_test.go index d6a96536b9..3f465db1d1 100644 --- a/local-volume/pkg/driver/daemon/diskutil/directories_test.go +++ b/local-volume/pkg/driver/daemon/diskutil/directories_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package diskutil import ( diff --git a/local-volume/pkg/driver/daemon/diskutil/format.go b/local-volume/pkg/driver/daemon/diskutil/format.go index 032db95d6c..d69f914738 100644 --- a/local-volume/pkg/driver/daemon/diskutil/format.go +++ b/local-volume/pkg/driver/daemon/diskutil/format.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package diskutil import ( diff --git a/local-volume/pkg/driver/daemon/diskutil/format_test.go b/local-volume/pkg/driver/daemon/diskutil/format_test.go index e5e3a248fa..9938d244e7 100644 --- a/local-volume/pkg/driver/daemon/diskutil/format_test.go +++ b/local-volume/pkg/driver/daemon/diskutil/format_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package diskutil import ( diff --git a/local-volume/pkg/driver/daemon/diskutil/mount.go b/local-volume/pkg/driver/daemon/diskutil/mount.go index 0216ca0f7d..3f7ee7ccae 100644 --- a/local-volume/pkg/driver/daemon/diskutil/mount.go +++ b/local-volume/pkg/driver/daemon/diskutil/mount.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package diskutil import ( diff --git a/local-volume/pkg/driver/daemon/diskutil/mount_test.go b/local-volume/pkg/driver/daemon/diskutil/mount_test.go index b0baa7f155..4ca7c0367a 100644 --- a/local-volume/pkg/driver/daemon/diskutil/mount_test.go +++ b/local-volume/pkg/driver/daemon/diskutil/mount_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package diskutil import ( diff --git a/local-volume/pkg/driver/daemon/drivers/bindmount/driver.go b/local-volume/pkg/driver/daemon/drivers/bindmount/driver.go index c9555e2933..b442090a7b 100644 --- a/local-volume/pkg/driver/daemon/drivers/bindmount/driver.go +++ b/local-volume/pkg/driver/daemon/drivers/bindmount/driver.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package bindmount import ( diff --git a/local-volume/pkg/driver/daemon/drivers/bindmount/init.go b/local-volume/pkg/driver/daemon/drivers/bindmount/init.go index ca8d51834e..118db5eb6a 100644 --- a/local-volume/pkg/driver/daemon/drivers/bindmount/init.go +++ b/local-volume/pkg/driver/daemon/drivers/bindmount/init.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package bindmount import ( diff --git a/local-volume/pkg/driver/daemon/drivers/bindmount/init_test.go b/local-volume/pkg/driver/daemon/drivers/bindmount/init_test.go index 1cacb86ce8..8ad6df50de 100644 --- a/local-volume/pkg/driver/daemon/drivers/bindmount/init_test.go +++ b/local-volume/pkg/driver/daemon/drivers/bindmount/init_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package bindmount import ( diff --git a/local-volume/pkg/driver/daemon/drivers/bindmount/lifecycle.go b/local-volume/pkg/driver/daemon/drivers/bindmount/lifecycle.go index ec461f12c9..5ead611be1 100644 --- a/local-volume/pkg/driver/daemon/drivers/bindmount/lifecycle.go +++ b/local-volume/pkg/driver/daemon/drivers/bindmount/lifecycle.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package bindmount import ( diff --git a/local-volume/pkg/driver/daemon/drivers/bindmount/mount.go b/local-volume/pkg/driver/daemon/drivers/bindmount/mount.go index a677ef7594..3b568de5b0 100644 --- a/local-volume/pkg/driver/daemon/drivers/bindmount/mount.go +++ b/local-volume/pkg/driver/daemon/drivers/bindmount/mount.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package bindmount import ( diff --git a/local-volume/pkg/driver/daemon/drivers/bindmount/mount_test.go b/local-volume/pkg/driver/daemon/drivers/bindmount/mount_test.go index 040639b065..4a80415716 100644 --- a/local-volume/pkg/driver/daemon/drivers/bindmount/mount_test.go +++ b/local-volume/pkg/driver/daemon/drivers/bindmount/mount_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package bindmount import ( diff --git a/local-volume/pkg/driver/daemon/drivers/bindmount/unmount.go b/local-volume/pkg/driver/daemon/drivers/bindmount/unmount.go index 876c684317..bbd81ff60e 100644 --- a/local-volume/pkg/driver/daemon/drivers/bindmount/unmount.go +++ b/local-volume/pkg/driver/daemon/drivers/bindmount/unmount.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package bindmount import ( diff --git a/local-volume/pkg/driver/daemon/drivers/bindmount/unmount_test.go b/local-volume/pkg/driver/daemon/drivers/bindmount/unmount_test.go index c46e8ecf5e..a613da65bd 100644 --- a/local-volume/pkg/driver/daemon/drivers/bindmount/unmount_test.go +++ b/local-volume/pkg/driver/daemon/drivers/bindmount/unmount_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package bindmount import ( diff --git a/local-volume/pkg/driver/daemon/drivers/driver.go b/local-volume/pkg/driver/daemon/drivers/driver.go index 3a79b6b9dd..bcf3ceb0fd 100644 --- a/local-volume/pkg/driver/daemon/drivers/driver.go +++ b/local-volume/pkg/driver/daemon/drivers/driver.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package drivers import ( diff --git a/local-volume/pkg/driver/daemon/drivers/empty/doc.go b/local-volume/pkg/driver/daemon/drivers/empty/doc.go index 0df6f20aaf..a4fff675c0 100644 --- a/local-volume/pkg/driver/daemon/drivers/empty/doc.go +++ b/local-volume/pkg/driver/daemon/drivers/empty/doc.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Package empty provides an empty driver that can be used for testing // purposes. package empty diff --git a/local-volume/pkg/driver/daemon/drivers/empty/driver.go b/local-volume/pkg/driver/daemon/drivers/empty/driver.go index 46c0347257..47ff46febf 100644 --- a/local-volume/pkg/driver/daemon/drivers/empty/driver.go +++ b/local-volume/pkg/driver/daemon/drivers/empty/driver.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package empty import ( diff --git a/local-volume/pkg/driver/daemon/drivers/empty/init.go b/local-volume/pkg/driver/daemon/drivers/empty/init.go index 59b56f43e5..b6f23b8336 100644 --- a/local-volume/pkg/driver/daemon/drivers/empty/init.go +++ b/local-volume/pkg/driver/daemon/drivers/empty/init.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package empty import ( diff --git a/local-volume/pkg/driver/daemon/drivers/empty/mount.go b/local-volume/pkg/driver/daemon/drivers/empty/mount.go index f1b7fa0e7f..36068bd9ce 100644 --- a/local-volume/pkg/driver/daemon/drivers/empty/mount.go +++ b/local-volume/pkg/driver/daemon/drivers/empty/mount.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package empty import ( diff --git a/local-volume/pkg/driver/daemon/drivers/empty/unmount.go b/local-volume/pkg/driver/daemon/drivers/empty/unmount.go index edcfa14321..05212edceb 100644 --- a/local-volume/pkg/driver/daemon/drivers/empty/unmount.go +++ b/local-volume/pkg/driver/daemon/drivers/empty/unmount.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package empty import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/cmd.go b/local-volume/pkg/driver/daemon/drivers/lvm/cmd.go index 00aea56927..d5e17654db 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/cmd.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/cmd.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/cmd_test.go b/local-volume/pkg/driver/daemon/drivers/lvm/cmd_test.go index a505b2e13d..58c5ec3d04 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/cmd_test.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/cmd_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/driver.go b/local-volume/pkg/driver/daemon/drivers/lvm/driver.go index db967b8787..5198f6f756 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/driver.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/driver.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/errors.go b/local-volume/pkg/driver/daemon/drivers/lvm/errors.go index 1a573ea5e3..e0aecf250e 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/errors.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/errors.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/init.go b/local-volume/pkg/driver/daemon/drivers/lvm/init.go index d8810478bc..bb59efba39 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/init.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/init.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/init_test.go b/local-volume/pkg/driver/daemon/drivers/lvm/init_test.go index 26ddff2556..b10ab917c2 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/init_test.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/init_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/lifecycle.go b/local-volume/pkg/driver/daemon/drivers/lvm/lifecycle.go index e3ede35f2f..6328e33c0c 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/lifecycle.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/lifecycle.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import log "github.com/sirupsen/logrus" diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/lifecycle_test.go b/local-volume/pkg/driver/daemon/drivers/lvm/lifecycle_test.go index b4fd06f92c..747f58436d 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/lifecycle_test.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/lifecycle_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/lv.go b/local-volume/pkg/driver/daemon/drivers/lvm/lv.go index b7fbdad9d7..4f076e95b3 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/lv.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/lv.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/lv_test.go b/local-volume/pkg/driver/daemon/drivers/lvm/lv_test.go index 1ce29c0b01..4c5fd920de 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/lv_test.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/lv_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/mount.go b/local-volume/pkg/driver/daemon/drivers/lvm/mount.go index 22b0f7e856..713319992a 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/mount.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/mount.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/mount_test.go b/local-volume/pkg/driver/daemon/drivers/lvm/mount_test.go index 792652ff74..8d8b6727f2 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/mount_test.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/mount_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/thinpool.go b/local-volume/pkg/driver/daemon/drivers/lvm/thinpool.go index 78f7dd9b83..cccd29d514 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/thinpool.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/thinpool.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/thinpool_test.go b/local-volume/pkg/driver/daemon/drivers/lvm/thinpool_test.go index 5898c5ccf8..1433fe92a2 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/thinpool_test.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/thinpool_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/unmount.go b/local-volume/pkg/driver/daemon/drivers/lvm/unmount.go index 61d4f98095..8195545d7e 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/unmount.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/unmount.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/unmount_test.go b/local-volume/pkg/driver/daemon/drivers/lvm/unmount_test.go index 0e05b16d66..7bf1b66110 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/unmount_test.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/unmount_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/vg.go b/local-volume/pkg/driver/daemon/drivers/lvm/vg.go index b6cc89332f..005dd70d17 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/vg.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/vg.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/drivers/lvm/vg_test.go b/local-volume/pkg/driver/daemon/drivers/lvm/vg_test.go index 421f757d4a..79e968876a 100644 --- a/local-volume/pkg/driver/daemon/drivers/lvm/vg_test.go +++ b/local-volume/pkg/driver/daemon/drivers/lvm/vg_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package lvm import ( diff --git a/local-volume/pkg/driver/daemon/pathutil/pathutil.go b/local-volume/pkg/driver/daemon/pathutil/pathutil.go index aec213bd36..b4b8aee7b3 100644 --- a/local-volume/pkg/driver/daemon/pathutil/pathutil.go +++ b/local-volume/pkg/driver/daemon/pathutil/pathutil.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package pathutil import "path" diff --git a/local-volume/pkg/driver/daemon/pathutil/pathutil_test.go b/local-volume/pkg/driver/daemon/pathutil/pathutil_test.go index ceea41d788..160e3c3f11 100644 --- a/local-volume/pkg/driver/daemon/pathutil/pathutil_test.go +++ b/local-volume/pkg/driver/daemon/pathutil/pathutil_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package pathutil import ( diff --git a/local-volume/pkg/driver/daemon/pvgc/controller.go b/local-volume/pkg/driver/daemon/pvgc/controller.go index 247a5dd7cf..d53a0cf12a 100644 --- a/local-volume/pkg/driver/daemon/pvgc/controller.go +++ b/local-volume/pkg/driver/daemon/pvgc/controller.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package pvgc import ( diff --git a/local-volume/pkg/driver/daemon/pvgc/controller_test.go b/local-volume/pkg/driver/daemon/pvgc/controller_test.go index 4000485b7f..c65c321665 100644 --- a/local-volume/pkg/driver/daemon/pvgc/controller_test.go +++ b/local-volume/pkg/driver/daemon/pvgc/controller_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package pvgc import ( diff --git a/local-volume/pkg/driver/daemon/routes.go b/local-volume/pkg/driver/daemon/routes.go index 17050c3511..7adabecc2b 100644 --- a/local-volume/pkg/driver/daemon/routes.go +++ b/local-volume/pkg/driver/daemon/routes.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package daemon import ( diff --git a/local-volume/pkg/driver/daemon/routes_test.go b/local-volume/pkg/driver/daemon/routes_test.go index b38bb27bda..85afcc4ff0 100644 --- a/local-volume/pkg/driver/daemon/routes_test.go +++ b/local-volume/pkg/driver/daemon/routes_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package daemon import ( diff --git a/local-volume/pkg/driver/daemon/server.go b/local-volume/pkg/driver/daemon/server.go index 2191c55369..5ad8cb2d0a 100644 --- a/local-volume/pkg/driver/daemon/server.go +++ b/local-volume/pkg/driver/daemon/server.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package daemon import ( diff --git a/local-volume/pkg/driver/daemon/server_test.go b/local-volume/pkg/driver/daemon/server_test.go index 64abc1a399..25abc9cc3c 100644 --- a/local-volume/pkg/driver/daemon/server_test.go +++ b/local-volume/pkg/driver/daemon/server_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package daemon import ( diff --git a/local-volume/pkg/driver/flex/model.go b/local-volume/pkg/driver/flex/model.go index a1d3d39381..360ce42747 100644 --- a/local-volume/pkg/driver/flex/model.go +++ b/local-volume/pkg/driver/flex/model.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package flex // -- These structs implement the flex protocol JSON format diff --git a/local-volume/pkg/driver/flex/model_test.go b/local-volume/pkg/driver/flex/model_test.go index 3c14995790..083bcb335c 100644 --- a/local-volume/pkg/driver/flex/model_test.go +++ b/local-volume/pkg/driver/flex/model_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package flex import ( diff --git a/local-volume/pkg/driver/protocol/protocol.go b/local-volume/pkg/driver/protocol/protocol.go index 4f438c94de..3f55b01175 100644 --- a/local-volume/pkg/driver/protocol/protocol.go +++ b/local-volume/pkg/driver/protocol/protocol.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package protocol import "fmt" diff --git a/local-volume/pkg/driver/protocol/protocol_test.go b/local-volume/pkg/driver/protocol/protocol_test.go index 0ed95135bb..305e5519d5 100644 --- a/local-volume/pkg/driver/protocol/protocol_test.go +++ b/local-volume/pkg/driver/protocol/protocol_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package protocol import ( diff --git a/local-volume/pkg/k8s/client.go b/local-volume/pkg/k8s/client.go index 045cd1335b..08ec163cdf 100644 --- a/local-volume/pkg/k8s/client.go +++ b/local-volume/pkg/k8s/client.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package k8s import ( diff --git a/local-volume/pkg/k8s/pv.go b/local-volume/pkg/k8s/pv.go index 0b814ea4c5..5cd6c65dd0 100644 --- a/local-volume/pkg/k8s/pv.go +++ b/local-volume/pkg/k8s/pv.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package k8s import ( diff --git a/local-volume/pkg/k8s/pv_test.go b/local-volume/pkg/k8s/pv_test.go index ccd4dd1936..cce53269c3 100644 --- a/local-volume/pkg/k8s/pv_test.go +++ b/local-volume/pkg/k8s/pv_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package k8s import ( diff --git a/local-volume/pkg/provider/provider.go b/local-volume/pkg/provider/provider.go index 8804b9a13a..a4f5e31a62 100644 --- a/local-volume/pkg/provider/provider.go +++ b/local-volume/pkg/provider/provider.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package provider const ( diff --git a/local-volume/pkg/provisioner/provisioner.go b/local-volume/pkg/provisioner/provisioner.go index e9761c27a6..bbe3d663ca 100644 --- a/local-volume/pkg/provisioner/provisioner.go +++ b/local-volume/pkg/provisioner/provisioner.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package provisioner import ( diff --git a/local-volume/pkg/provisioner/provisioner_test.go b/local-volume/pkg/provisioner/provisioner_test.go index cee9e2940c..f58dc24511 100644 --- a/local-volume/pkg/provisioner/provisioner_test.go +++ b/local-volume/pkg/provisioner/provisioner_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package provisioner import ( diff --git a/local-volume/pkg/utils/retry/retry.go b/local-volume/pkg/utils/retry/retry.go index 918101197b..cc87ad5bbf 100644 --- a/local-volume/pkg/utils/retry/retry.go +++ b/local-volume/pkg/utils/retry/retry.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package retry import ( diff --git a/local-volume/pkg/utils/retry/retry_test.go b/local-volume/pkg/utils/retry/retry_test.go index 5708454c8d..8d328d2395 100644 --- a/local-volume/pkg/utils/retry/retry_test.go +++ b/local-volume/pkg/utils/retry/retry_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package retry import ( diff --git a/local-volume/pkg/utils/test/retry.go b/local-volume/pkg/utils/test/retry.go index 88ca434092..35da100d08 100644 --- a/local-volume/pkg/utils/test/retry.go +++ b/local-volume/pkg/utils/test/retry.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package test import ( diff --git a/local-volume/scripts/driver.sh b/local-volume/scripts/driver.sh index cbeb69bab1..1c5edc8bb0 100755 --- a/local-volume/scripts/driver.sh +++ b/local-volume/scripts/driver.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash + +# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +# or more contributor license agreements. Licensed under the Elastic License; +# you may not use this file except in compliance with the Elastic License. + set -eu # driver client in the container diff --git a/local-volume/scripts/entrypoint.sh b/local-volume/scripts/entrypoint.sh index 1649e37b73..5e628207f5 100755 --- a/local-volume/scripts/entrypoint.sh +++ b/local-volume/scripts/entrypoint.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +# or more contributor license agreements. Licensed under the Elastic License; +# you may not use this file except in compliance with the Elastic License. + case "$1" in driver) ./driver.sh;; provisioner) ./provisioner;; diff --git a/operators/Makefile b/operators/Makefile index 4abddef877..adf2fe0db5 100644 --- a/operators/Makefile +++ b/operators/Makefile @@ -1,3 +1,7 @@ +# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +# or more contributor license agreements. Licensed under the Elastic License; +# you may not use this file except in compliance with the Elastic License. + export SHELL := /bin/bash INSTALL_HELP = "please refer to the README.md for how to install it." GO := $(shell command -v go) diff --git a/operators/cmd/certificate-initializer/main.go b/operators/cmd/certificate-initializer/main.go index 8074a524c3..11362bdcda 100644 --- a/operators/cmd/certificate-initializer/main.go +++ b/operators/cmd/certificate-initializer/main.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package main import ( diff --git a/operators/cmd/keystore-updater/main.go b/operators/cmd/keystore-updater/main.go index 04a8dff51f..fa60ca0c5f 100644 --- a/operators/cmd/keystore-updater/main.go +++ b/operators/cmd/keystore-updater/main.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package main import ( diff --git a/operators/cmd/main.go b/operators/cmd/main.go index 86dbd562d3..7b7b36bd48 100644 --- a/operators/cmd/main.go +++ b/operators/cmd/main.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package main import ( diff --git a/operators/cmd/manager/main.go b/operators/cmd/manager/main.go index 36de62a985..2475c01ddc 100644 --- a/operators/cmd/manager/main.go +++ b/operators/cmd/manager/main.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package manager import ( diff --git a/operators/cmd/snapshotter/main.go b/operators/cmd/snapshotter/main.go index c953e0dcfc..f325db4f0e 100644 --- a/operators/cmd/snapshotter/main.go +++ b/operators/cmd/snapshotter/main.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package snapshotter import ( diff --git a/operators/hack/boilerplate.go.txt b/operators/hack/boilerplate.go.txt index e69de29bb2..979c2ac8ec 100644 --- a/operators/hack/boilerplate.go.txt +++ b/operators/hack/boilerplate.go.txt @@ -0,0 +1,3 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. diff --git a/operators/hack/gcp-k8s-cluster.sh b/operators/hack/gcp-k8s-cluster.sh index 5c1f52b388..5fc78550b3 100755 --- a/operators/hack/gcp-k8s-cluster.sh +++ b/operators/hack/gcp-k8s-cluster.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +# or more contributor license agreements. Licensed under the Elastic License; +# you may not use this file except in compliance with the Elastic License. + # This script takes responsibility to create a GCP GKE cluster. It has all # of the necessary default settings so that no positional arguments have to # be specified. diff --git a/operators/hack/registry.sh b/operators/hack/registry.sh index 5f9004ee83..f5daea93e3 100755 --- a/operators/hack/registry.sh +++ b/operators/hack/registry.sh @@ -1,5 +1,9 @@ #!/bin/bash -eu +# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +# or more contributor license agreements. Licensed under the Elastic License; +# you may not use this file except in compliance with the Elastic License. + help() { echo \ 'Manage a Docker registry in k8s. diff --git a/operators/hack/run_e2e.sh b/operators/hack/run_e2e.sh index 7551ab6f33..ffec9442fb 100755 --- a/operators/hack/run_e2e.sh +++ b/operators/hack/run_e2e.sh @@ -1,5 +1,9 @@ #! /usr/bin/env bash -eu +# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +# or more contributor license agreements. Licensed under the Elastic License; +# you may not use this file except in compliance with the Elastic License. + # # Run end-to-end tests as a K8s batch job # Usage: ./hack/run_e2e.sh diff --git a/operators/pkg/apis/addtoscheme_common_v1alpha1.go b/operators/pkg/apis/addtoscheme_common_v1alpha1.go index 8f51f4dbde..e52fa98c7d 100644 --- a/operators/pkg/apis/addtoscheme_common_v1alpha1.go +++ b/operators/pkg/apis/addtoscheme_common_v1alpha1.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package apis import ( diff --git a/operators/pkg/apis/addtoscheme_deployments_v1alpha1.go b/operators/pkg/apis/addtoscheme_deployments_v1alpha1.go index a5bba34f0f..1c3bfa8b2d 100644 --- a/operators/pkg/apis/addtoscheme_deployments_v1alpha1.go +++ b/operators/pkg/apis/addtoscheme_deployments_v1alpha1.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package apis import ( diff --git a/operators/pkg/apis/addtoscheme_elasticsearch_v1alpha1.go b/operators/pkg/apis/addtoscheme_elasticsearch_v1alpha1.go index 4c3f4d115d..9a96b22c26 100644 --- a/operators/pkg/apis/addtoscheme_elasticsearch_v1alpha1.go +++ b/operators/pkg/apis/addtoscheme_elasticsearch_v1alpha1.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package apis import ( diff --git a/operators/pkg/apis/addtoscheme_kibana_v1alpha1.go b/operators/pkg/apis/addtoscheme_kibana_v1alpha1.go index a38aa6f1e1..a901adc7c7 100644 --- a/operators/pkg/apis/addtoscheme_kibana_v1alpha1.go +++ b/operators/pkg/apis/addtoscheme_kibana_v1alpha1.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package apis import ( diff --git a/operators/pkg/apis/apis.go b/operators/pkg/apis/apis.go index d2d5b47ccc..391b0603c8 100644 --- a/operators/pkg/apis/apis.go +++ b/operators/pkg/apis/apis.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Generate deepcopy for apis //go:generate go run ../../vendor/k8s.io/code-generator/cmd/deepcopy-gen/main.go -O zz_generated.deepcopy -i ./... -h ../../hack/boilerplate.go.txt diff --git a/operators/pkg/apis/common/group.go b/operators/pkg/apis/common/group.go index 951cd2b99d..7a47c4978a 100644 --- a/operators/pkg/apis/common/group.go +++ b/operators/pkg/apis/common/group.go @@ -1,2 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Package common contains common API versions package common diff --git a/operators/pkg/apis/common/v1alpha1/common.go b/operators/pkg/apis/common/v1alpha1/common.go index 4d48560c1c..9dac74a796 100644 --- a/operators/pkg/apis/common/v1alpha1/common.go +++ b/operators/pkg/apis/common/v1alpha1/common.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package v1alpha1 import corev1 "k8s.io/api/core/v1" diff --git a/operators/pkg/apis/common/v1alpha1/doc.go b/operators/pkg/apis/common/v1alpha1/doc.go index 465162b4ec..b834429d77 100644 --- a/operators/pkg/apis/common/v1alpha1/doc.go +++ b/operators/pkg/apis/common/v1alpha1/doc.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Package v1alpha1 contains API Schema definitions for the common v1alpha1 API group // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package,register diff --git a/operators/pkg/apis/common/v1alpha1/feature_flags.go b/operators/pkg/apis/common/v1alpha1/feature_flags.go index 6c14f70fad..1a598995d2 100644 --- a/operators/pkg/apis/common/v1alpha1/feature_flags.go +++ b/operators/pkg/apis/common/v1alpha1/feature_flags.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package v1alpha1 // FeatureFlags is a collection of feature flags and their associated state diff --git a/operators/pkg/apis/common/v1alpha1/feature_flags_test.go b/operators/pkg/apis/common/v1alpha1/feature_flags_test.go index c4e0cca506..c8e6ac0f31 100644 --- a/operators/pkg/apis/common/v1alpha1/feature_flags_test.go +++ b/operators/pkg/apis/common/v1alpha1/feature_flags_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package v1alpha1 import ( diff --git a/operators/pkg/apis/common/v1alpha1/register.go b/operators/pkg/apis/common/v1alpha1/register.go index 81f65f22e3..20bd33bee4 100644 --- a/operators/pkg/apis/common/v1alpha1/register.go +++ b/operators/pkg/apis/common/v1alpha1/register.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // NOTE: Boilerplate only. Ignore this file. // Package v1alpha1 contains API Schema definitions for the common v1alpha1 API group diff --git a/operators/pkg/apis/common/v1alpha1/zz_generated.deepcopy.go b/operators/pkg/apis/common/v1alpha1/zz_generated.deepcopy.go index e694f6067c..d018c6e0d2 100644 --- a/operators/pkg/apis/common/v1alpha1/zz_generated.deepcopy.go +++ b/operators/pkg/apis/common/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,9 @@ // +build !ignore_autogenerated +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Code generated by main. DO NOT EDIT. package v1alpha1 diff --git a/operators/pkg/apis/deployments/group.go b/operators/pkg/apis/deployments/group.go index 4fdc387594..15e095092b 100644 --- a/operators/pkg/apis/deployments/group.go +++ b/operators/pkg/apis/deployments/group.go @@ -1,2 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Package deployments contains deployments API versions package deployments diff --git a/operators/pkg/apis/deployments/v1alpha1/doc.go b/operators/pkg/apis/deployments/v1alpha1/doc.go index 33db2ee835..90f7e9cc99 100644 --- a/operators/pkg/apis/deployments/v1alpha1/doc.go +++ b/operators/pkg/apis/deployments/v1alpha1/doc.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Package v1alpha1 contains API Schema definitions for the deployments v1alpha1 API group // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package,register diff --git a/operators/pkg/apis/deployments/v1alpha1/register.go b/operators/pkg/apis/deployments/v1alpha1/register.go index 54a6d0e16d..2e4e4da4fa 100644 --- a/operators/pkg/apis/deployments/v1alpha1/register.go +++ b/operators/pkg/apis/deployments/v1alpha1/register.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // NOTE: Boilerplate only. Ignore this file. // Package v1alpha1 contains API Schema definitions for the deployments v1alpha1 API group diff --git a/operators/pkg/apis/deployments/v1alpha1/stack_types.go b/operators/pkg/apis/deployments/v1alpha1/stack_types.go index a07ae8471b..90c98f6ef0 100644 --- a/operators/pkg/apis/deployments/v1alpha1/stack_types.go +++ b/operators/pkg/apis/deployments/v1alpha1/stack_types.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package v1alpha1 import ( diff --git a/operators/pkg/apis/deployments/v1alpha1/stack_types_test.go b/operators/pkg/apis/deployments/v1alpha1/stack_types_test.go index 34da4d4a57..d62e6c4996 100644 --- a/operators/pkg/apis/deployments/v1alpha1/stack_types_test.go +++ b/operators/pkg/apis/deployments/v1alpha1/stack_types_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package v1alpha1 diff --git a/operators/pkg/apis/deployments/v1alpha1/v1alpha1_suite_test.go b/operators/pkg/apis/deployments/v1alpha1/v1alpha1_suite_test.go index a9ecbb98c0..bd29675230 100644 --- a/operators/pkg/apis/deployments/v1alpha1/v1alpha1_suite_test.go +++ b/operators/pkg/apis/deployments/v1alpha1/v1alpha1_suite_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package v1alpha1 diff --git a/operators/pkg/apis/deployments/v1alpha1/zz_generated.deepcopy.go b/operators/pkg/apis/deployments/v1alpha1/zz_generated.deepcopy.go index a92d382908..8739d1c229 100644 --- a/operators/pkg/apis/deployments/v1alpha1/zz_generated.deepcopy.go +++ b/operators/pkg/apis/deployments/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,9 @@ // +build !ignore_autogenerated +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Code generated by main. DO NOT EDIT. package v1alpha1 diff --git a/operators/pkg/apis/elasticsearch/group.go b/operators/pkg/apis/elasticsearch/group.go index c33f968aad..e3e822c90b 100644 --- a/operators/pkg/apis/elasticsearch/group.go +++ b/operators/pkg/apis/elasticsearch/group.go @@ -1,2 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Package elasticsearch contains elasticsearch API versions package elasticsearch diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types.go b/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types.go index 80a71672d1..74601fdc7a 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package v1alpha1 import ( diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types_integration_test.go b/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types_integration_test.go index 7d414954ff..2d1db2547d 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types_integration_test.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types_integration_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package v1alpha1 diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types_test.go b/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types_test.go index 878b71b11d..9246f1ec10 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types_test.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/clusterlicense_types_test.go @@ -1,3 +1,9 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + +// +build integration + package v1alpha1 import ( diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/doc.go b/operators/pkg/apis/elasticsearch/v1alpha1/doc.go index 6aeb541b40..c6fef577c7 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/doc.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/doc.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Package v1alpha1 contains API Schema definitions for the elasticsearch v1alpha1 API group // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package,register diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types.go b/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types.go index 9e6ed3f7d8..e66b2276a3 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package v1alpha1 import ( diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types_integration_test.go b/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types_integration_test.go index d4677c7645..999650bcf0 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types_integration_test.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types_integration_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package v1alpha1 diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types_test.go b/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types_test.go index 40402002d8..d9a5cff0ed 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types_test.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/elasticsearch_types_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package v1alpha1 import ( diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/enterpriselicense_types.go b/operators/pkg/apis/elasticsearch/v1alpha1/enterpriselicense_types.go index e696bfbf72..48f86eda2d 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/enterpriselicense_types.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/enterpriselicense_types.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package v1alpha1 import ( diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/enterpriselicense_types_integration_test.go b/operators/pkg/apis/elasticsearch/v1alpha1/enterpriselicense_types_integration_test.go index 9bdc00340c..0f8470c950 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/enterpriselicense_types_integration_test.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/enterpriselicense_types_integration_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package v1alpha1 diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/register.go b/operators/pkg/apis/elasticsearch/v1alpha1/register.go index ab8dc92910..f99fbe61f9 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/register.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/register.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // NOTE: Boilerplate only. Ignore this file. // Package v1alpha1 contains API Schema definitions for the elasticsearch v1alpha1 API group diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/v1alpha1_suite_test.go b/operators/pkg/apis/elasticsearch/v1alpha1/v1alpha1_suite_test.go index fa8051ddf5..ff8008c6d3 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/v1alpha1_suite_test.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/v1alpha1_suite_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package v1alpha1 diff --git a/operators/pkg/apis/elasticsearch/v1alpha1/zz_generated.deepcopy.go b/operators/pkg/apis/elasticsearch/v1alpha1/zz_generated.deepcopy.go index cbb69643d9..9ac58db6f5 100644 --- a/operators/pkg/apis/elasticsearch/v1alpha1/zz_generated.deepcopy.go +++ b/operators/pkg/apis/elasticsearch/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,9 @@ // +build !ignore_autogenerated +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Code generated by main. DO NOT EDIT. package v1alpha1 diff --git a/operators/pkg/apis/kibana/group.go b/operators/pkg/apis/kibana/group.go index 95271f6212..905f42d54c 100644 --- a/operators/pkg/apis/kibana/group.go +++ b/operators/pkg/apis/kibana/group.go @@ -1,2 +1,6 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Package kibana contains kibana API versions package kibana diff --git a/operators/pkg/apis/kibana/v1alpha1/doc.go b/operators/pkg/apis/kibana/v1alpha1/doc.go index bbef451ec6..a34b14d85d 100644 --- a/operators/pkg/apis/kibana/v1alpha1/doc.go +++ b/operators/pkg/apis/kibana/v1alpha1/doc.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Package v1alpha1 contains API Schema definitions for the kibana v1alpha1 API group // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package,register diff --git a/operators/pkg/apis/kibana/v1alpha1/kibana_types.go b/operators/pkg/apis/kibana/v1alpha1/kibana_types.go index aacd6af17e..e0302f94f9 100644 --- a/operators/pkg/apis/kibana/v1alpha1/kibana_types.go +++ b/operators/pkg/apis/kibana/v1alpha1/kibana_types.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package v1alpha1 import ( diff --git a/operators/pkg/apis/kibana/v1alpha1/kibana_types_test.go b/operators/pkg/apis/kibana/v1alpha1/kibana_types_test.go index 5ff5918096..1af947e8aa 100644 --- a/operators/pkg/apis/kibana/v1alpha1/kibana_types_test.go +++ b/operators/pkg/apis/kibana/v1alpha1/kibana_types_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package v1alpha1 diff --git a/operators/pkg/apis/kibana/v1alpha1/register.go b/operators/pkg/apis/kibana/v1alpha1/register.go index 17904372ae..21330ca9a3 100644 --- a/operators/pkg/apis/kibana/v1alpha1/register.go +++ b/operators/pkg/apis/kibana/v1alpha1/register.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // NOTE: Boilerplate only. Ignore this file. // Package v1alpha1 contains API Schema definitions for the kibana v1alpha1 API group diff --git a/operators/pkg/apis/kibana/v1alpha1/v1alpha1_suite_test.go b/operators/pkg/apis/kibana/v1alpha1/v1alpha1_suite_test.go index fa8051ddf5..ff8008c6d3 100644 --- a/operators/pkg/apis/kibana/v1alpha1/v1alpha1_suite_test.go +++ b/operators/pkg/apis/kibana/v1alpha1/v1alpha1_suite_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package v1alpha1 diff --git a/operators/pkg/apis/kibana/v1alpha1/zz_generated.deepcopy.go b/operators/pkg/apis/kibana/v1alpha1/zz_generated.deepcopy.go index 7663d1e7fa..af576e4639 100644 --- a/operators/pkg/apis/kibana/v1alpha1/zz_generated.deepcopy.go +++ b/operators/pkg/apis/kibana/v1alpha1/zz_generated.deepcopy.go @@ -1,5 +1,9 @@ // +build !ignore_autogenerated +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // Code generated by main. DO NOT EDIT. package v1alpha1 diff --git a/operators/pkg/controller/add_elasticsearch.go b/operators/pkg/controller/add_elasticsearch.go index 7f04a52517..198cc31da2 100644 --- a/operators/pkg/controller/add_elasticsearch.go +++ b/operators/pkg/controller/add_elasticsearch.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package controller import ( diff --git a/operators/pkg/controller/add_kibana.go b/operators/pkg/controller/add_kibana.go index 35a29695b4..86d2e6c8bb 100644 --- a/operators/pkg/controller/add_kibana.go +++ b/operators/pkg/controller/add_kibana.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package controller import ( diff --git a/operators/pkg/controller/add_license.go b/operators/pkg/controller/add_license.go index 208fbef50e..e8ec12a81a 100644 --- a/operators/pkg/controller/add_license.go +++ b/operators/pkg/controller/add_license.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package controller import ( diff --git a/operators/pkg/controller/add_stack.go b/operators/pkg/controller/add_stack.go index 19d87c269b..dabe0ec140 100644 --- a/operators/pkg/controller/add_stack.go +++ b/operators/pkg/controller/add_stack.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package controller import ( diff --git a/operators/pkg/controller/common/events/events.go b/operators/pkg/controller/common/events/events.go index ee1acb15ac..b7fb31329c 100644 --- a/operators/pkg/controller/common/events/events.go +++ b/operators/pkg/controller/common/events/events.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package events // Event reasons for the Elastic stack controller diff --git a/operators/pkg/controller/common/finalizer/handler.go b/operators/pkg/controller/common/finalizer/handler.go index 1500596482..fe8f7c1704 100644 --- a/operators/pkg/controller/common/finalizer/handler.go +++ b/operators/pkg/controller/common/finalizer/handler.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package finalizer import ( diff --git a/operators/pkg/controller/common/finalizer/handler_test.go b/operators/pkg/controller/common/finalizer/handler_test.go index 73977afb41..5fe56cdd4f 100644 --- a/operators/pkg/controller/common/finalizer/handler_test.go +++ b/operators/pkg/controller/common/finalizer/handler_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package finalizer import ( diff --git a/operators/pkg/controller/common/int.go b/operators/pkg/controller/common/int.go index 49c185234f..f50837e8f5 100644 --- a/operators/pkg/controller/common/int.go +++ b/operators/pkg/controller/common/int.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package common // Int32 returns a pointer to an Int32 diff --git a/operators/pkg/controller/common/labels.go b/operators/pkg/controller/common/labels.go index d5d2ade0e7..85c88c45b9 100644 --- a/operators/pkg/controller/common/labels.go +++ b/operators/pkg/controller/common/labels.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package common import "strconv" diff --git a/operators/pkg/controller/common/labels_test.go b/operators/pkg/controller/common/labels_test.go index 11ae32c164..cd29caed36 100644 --- a/operators/pkg/controller/common/labels_test.go +++ b/operators/pkg/controller/common/labels_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package common import ( diff --git a/operators/pkg/controller/common/license/match.go b/operators/pkg/controller/common/license/match.go index b2897929d8..d05bba8b61 100644 --- a/operators/pkg/controller/common/license/match.go +++ b/operators/pkg/controller/common/license/match.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package license import ( diff --git a/operators/pkg/controller/common/license/match_test.go b/operators/pkg/controller/common/license/match_test.go index 7cc382edfe..ec404d7581 100644 --- a/operators/pkg/controller/common/license/match_test.go +++ b/operators/pkg/controller/common/license/match_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package license import ( diff --git a/operators/pkg/controller/common/nodecerts/ca.go b/operators/pkg/controller/common/nodecerts/ca.go index a704f37c2c..54589ed2f4 100644 --- a/operators/pkg/controller/common/nodecerts/ca.go +++ b/operators/pkg/controller/common/nodecerts/ca.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package nodecerts import ( diff --git a/operators/pkg/controller/common/nodecerts/ca_test.go b/operators/pkg/controller/common/nodecerts/ca_test.go index df80a41038..94600e05ce 100644 --- a/operators/pkg/controller/common/nodecerts/ca_test.go +++ b/operators/pkg/controller/common/nodecerts/ca_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package nodecerts import ( diff --git a/operators/pkg/controller/common/nodecerts/certutil/pem.go b/operators/pkg/controller/common/nodecerts/certutil/pem.go index c4834ed2b5..f047a1ee72 100644 --- a/operators/pkg/controller/common/nodecerts/certutil/pem.go +++ b/operators/pkg/controller/common/nodecerts/certutil/pem.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package certutil import ( diff --git a/operators/pkg/controller/common/nodecerts/certutil/x509_othername.go b/operators/pkg/controller/common/nodecerts/certutil/x509_othername.go index 9a75a92bc1..50eb74303e 100644 --- a/operators/pkg/controller/common/nodecerts/certutil/x509_othername.go +++ b/operators/pkg/controller/common/nodecerts/certutil/x509_othername.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // ELASTICSEARCH CONFIDENTIAL // __________________ // diff --git a/operators/pkg/controller/common/nodecerts/certutil/x509_othername_test.go b/operators/pkg/controller/common/nodecerts/certutil/x509_othername_test.go index 1dc2b9975d..3d27de3b2f 100644 --- a/operators/pkg/controller/common/nodecerts/certutil/x509_othername_test.go +++ b/operators/pkg/controller/common/nodecerts/certutil/x509_othername_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // ELASTICSEARCH CONFIDENTIAL // __________________ // diff --git a/operators/pkg/controller/common/nodecerts/doc.go b/operators/pkg/controller/common/nodecerts/doc.go index a811baef2d..b712df78ee 100644 --- a/operators/pkg/controller/common/nodecerts/doc.go +++ b/operators/pkg/controller/common/nodecerts/doc.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package nodecerts // diff --git a/operators/pkg/controller/common/nodecerts/secrets.go b/operators/pkg/controller/common/nodecerts/secrets.go index 142e3c84d7..6d04a78f05 100644 --- a/operators/pkg/controller/common/nodecerts/secrets.go +++ b/operators/pkg/controller/common/nodecerts/secrets.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package nodecerts import ( diff --git a/operators/pkg/controller/common/nodecerts/secrets_test.go b/operators/pkg/controller/common/nodecerts/secrets_test.go index ed6c156a83..6e643077a9 100644 --- a/operators/pkg/controller/common/nodecerts/secrets_test.go +++ b/operators/pkg/controller/common/nodecerts/secrets_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package nodecerts import ( diff --git a/operators/pkg/controller/common/nodecerts/trust.go b/operators/pkg/controller/common/nodecerts/trust.go index 3a63010c27..c44613df8f 100644 --- a/operators/pkg/controller/common/nodecerts/trust.go +++ b/operators/pkg/controller/common/nodecerts/trust.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package nodecerts import ( diff --git a/operators/pkg/controller/common/operator/const.go b/operators/pkg/controller/common/operator/const.go index 716e183fff..3264b5392d 100644 --- a/operators/pkg/controller/common/operator/const.go +++ b/operators/pkg/controller/common/operator/const.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package operator const ( diff --git a/operators/pkg/controller/common/operator/parameters.go b/operators/pkg/controller/common/operator/parameters.go index b3df0da318..b932a9fba2 100644 --- a/operators/pkg/controller/common/operator/parameters.go +++ b/operators/pkg/controller/common/operator/parameters.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package operator import "github.com/elastic/k8s-operators/operators/pkg/utils/net" diff --git a/operators/pkg/controller/common/operator/roles.go b/operators/pkg/controller/common/operator/roles.go index 5f286a1f5f..352dffbb87 100644 --- a/operators/pkg/controller/common/operator/roles.go +++ b/operators/pkg/controller/common/operator/roles.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package operator const ( diff --git a/operators/pkg/controller/common/pause.go b/operators/pkg/controller/common/pause.go index 1a4aceed8b..91184811b5 100644 --- a/operators/pkg/controller/common/pause.go +++ b/operators/pkg/controller/common/pause.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package common import ( diff --git a/operators/pkg/controller/common/pause_test.go b/operators/pkg/controller/common/pause_test.go index 6376cf675c..effd4e53c9 100644 --- a/operators/pkg/controller/common/pause_test.go +++ b/operators/pkg/controller/common/pause_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package common import ( diff --git a/operators/pkg/controller/common/reconciler/expectations.go b/operators/pkg/controller/common/reconciler/expectations.go index a7d2a057e2..a78f45dad5 100644 --- a/operators/pkg/controller/common/reconciler/expectations.go +++ b/operators/pkg/controller/common/reconciler/expectations.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package reconciler // Expectations are a way for controllers to mitigate effects of diff --git a/operators/pkg/controller/common/reconciler/expectations_test.go b/operators/pkg/controller/common/reconciler/expectations_test.go index c6eca8e5df..322f089197 100644 --- a/operators/pkg/controller/common/reconciler/expectations_test.go +++ b/operators/pkg/controller/common/reconciler/expectations_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package reconciler import ( diff --git a/operators/pkg/controller/common/reconciler/reconciler.go b/operators/pkg/controller/common/reconciler/reconciler.go index fef298ac1d..ed182a30b6 100644 --- a/operators/pkg/controller/common/reconciler/reconciler.go +++ b/operators/pkg/controller/common/reconciler/reconciler.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package reconciler import ( diff --git a/operators/pkg/controller/common/reconciler/reconciler_test.go b/operators/pkg/controller/common/reconciler/reconciler_test.go index 7241485bf3..efcd698e4f 100644 --- a/operators/pkg/controller/common/reconciler/reconciler_test.go +++ b/operators/pkg/controller/common/reconciler/reconciler_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package reconciler import ( diff --git a/operators/pkg/controller/common/service.go b/operators/pkg/controller/common/service.go index 00bb9e5711..ed98eca693 100644 --- a/operators/pkg/controller/common/service.go +++ b/operators/pkg/controller/common/service.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package common import ( diff --git a/operators/pkg/controller/common/service_control.go b/operators/pkg/controller/common/service_control.go index 60ef54b4b8..23c8de99ba 100644 --- a/operators/pkg/controller/common/service_control.go +++ b/operators/pkg/controller/common/service_control.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package common import ( diff --git a/operators/pkg/controller/common/service_test.go b/operators/pkg/controller/common/service_test.go index 1cd916aeaf..734c696456 100644 --- a/operators/pkg/controller/common/service_test.go +++ b/operators/pkg/controller/common/service_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package common import ( diff --git a/operators/pkg/controller/common/stack.go b/operators/pkg/controller/common/stack.go index ef63e8da69..98ed2ca740 100644 --- a/operators/pkg/controller/common/stack.go +++ b/operators/pkg/controller/common/stack.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package common import ( diff --git a/operators/pkg/controller/common/stack_test.go b/operators/pkg/controller/common/stack_test.go index aa6c51c6e3..653e4f41b6 100644 --- a/operators/pkg/controller/common/stack_test.go +++ b/operators/pkg/controller/common/stack_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package common import ( diff --git a/operators/pkg/controller/common/version/version.go b/operators/pkg/controller/common/version/version.go index 60615e53c1..6f344a932c 100644 --- a/operators/pkg/controller/common/version/version.go +++ b/operators/pkg/controller/common/version/version.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version import ( diff --git a/operators/pkg/controller/common/version/version_test.go b/operators/pkg/controller/common/version/version_test.go index 1882f9d430..47a4086b4e 100644 --- a/operators/pkg/controller/common/version/version_test.go +++ b/operators/pkg/controller/common/version/version_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version import ( diff --git a/operators/pkg/controller/common/watches/expectations_watch.go b/operators/pkg/controller/common/watches/expectations_watch.go index f54c1ce86a..65cd4a2667 100644 --- a/operators/pkg/controller/common/watches/expectations_watch.go +++ b/operators/pkg/controller/common/watches/expectations_watch.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package watches import ( diff --git a/operators/pkg/controller/common/watches/expectations_watch_test.go b/operators/pkg/controller/common/watches/expectations_watch_test.go index e50db7f055..2b3f3f1bd1 100644 --- a/operators/pkg/controller/common/watches/expectations_watch_test.go +++ b/operators/pkg/controller/common/watches/expectations_watch_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package watches import ( diff --git a/operators/pkg/controller/common/watches/handler.go b/operators/pkg/controller/common/watches/handler.go index e07303e8ad..294d71d6a8 100644 --- a/operators/pkg/controller/common/watches/handler.go +++ b/operators/pkg/controller/common/watches/handler.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package watches import ( diff --git a/operators/pkg/controller/common/watches/handler_integration_test.go b/operators/pkg/controller/common/watches/handler_integration_test.go index d34daf2b5c..b48b56c84b 100644 --- a/operators/pkg/controller/common/watches/handler_integration_test.go +++ b/operators/pkg/controller/common/watches/handler_integration_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package watches diff --git a/operators/pkg/controller/common/watches/handler_test.go b/operators/pkg/controller/common/watches/handler_test.go index d36edf0f42..8023dabcb8 100644 --- a/operators/pkg/controller/common/watches/handler_test.go +++ b/operators/pkg/controller/common/watches/handler_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package watches import ( diff --git a/operators/pkg/controller/common/watches/named_watch.go b/operators/pkg/controller/common/watches/named_watch.go index 45da845cd2..f9705d2fa9 100644 --- a/operators/pkg/controller/common/watches/named_watch.go +++ b/operators/pkg/controller/common/watches/named_watch.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package watches import ( diff --git a/operators/pkg/controller/common/watches/owner_watch.go b/operators/pkg/controller/common/watches/owner_watch.go index e7d0640870..529e778dd8 100644 --- a/operators/pkg/controller/common/watches/owner_watch.go +++ b/operators/pkg/controller/common/watches/owner_watch.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package watches import ( diff --git a/operators/pkg/controller/common/watches/state.go b/operators/pkg/controller/common/watches/state.go index 9af81bfe25..326e15d8ea 100644 --- a/operators/pkg/controller/common/watches/state.go +++ b/operators/pkg/controller/common/watches/state.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package watches import ( diff --git a/operators/pkg/controller/controller.go b/operators/pkg/controller/controller.go index 9ba84a390c..d908e764ea 100644 --- a/operators/pkg/controller/controller.go +++ b/operators/pkg/controller/controller.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package controller import ( diff --git a/operators/pkg/controller/elasticsearch/client/client.go b/operators/pkg/controller/elasticsearch/client/client.go index c1df3081f2..3e60d66cfb 100644 --- a/operators/pkg/controller/elasticsearch/client/client.go +++ b/operators/pkg/controller/elasticsearch/client/client.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package client import ( diff --git a/operators/pkg/controller/elasticsearch/client/client_test.go b/operators/pkg/controller/elasticsearch/client/client_test.go index e6d6245a00..08bda70645 100644 --- a/operators/pkg/controller/elasticsearch/client/client_test.go +++ b/operators/pkg/controller/elasticsearch/client/client_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package client import ( diff --git a/operators/pkg/controller/elasticsearch/client/mock.go b/operators/pkg/controller/elasticsearch/client/mock.go index 6ab3b1b46c..7c57bf1828 100644 --- a/operators/pkg/controller/elasticsearch/client/mock.go +++ b/operators/pkg/controller/elasticsearch/client/mock.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package client import ( diff --git a/operators/pkg/controller/elasticsearch/client/model.go b/operators/pkg/controller/elasticsearch/client/model.go index 5688359442..12a1e865d7 100644 --- a/operators/pkg/controller/elasticsearch/client/model.go +++ b/operators/pkg/controller/elasticsearch/client/model.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package client import ( diff --git a/operators/pkg/controller/elasticsearch/client/model_test.go b/operators/pkg/controller/elasticsearch/client/model_test.go index 3ec660365f..1dd71ddc66 100644 --- a/operators/pkg/controller/elasticsearch/client/model_test.go +++ b/operators/pkg/controller/elasticsearch/client/model_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package client import ( diff --git a/operators/pkg/controller/elasticsearch/client/test_fixtures/cluster_state.go b/operators/pkg/controller/elasticsearch/client/test_fixtures/cluster_state.go index 34fa3c7025..a81e7eae9d 100644 --- a/operators/pkg/controller/elasticsearch/client/test_fixtures/cluster_state.go +++ b/operators/pkg/controller/elasticsearch/client/test_fixtures/cluster_state.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package fixtures const ( diff --git a/operators/pkg/controller/elasticsearch/client/test_fixtures/errors.go b/operators/pkg/controller/elasticsearch/client/test_fixtures/errors.go index bc03dd2523..529e339347 100644 --- a/operators/pkg/controller/elasticsearch/client/test_fixtures/errors.go +++ b/operators/pkg/controller/elasticsearch/client/test_fixtures/errors.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package fixtures const ( diff --git a/operators/pkg/controller/elasticsearch/client/test_fixtures/health.go b/operators/pkg/controller/elasticsearch/client/test_fixtures/health.go index c6bcfeb438..865981eb6b 100644 --- a/operators/pkg/controller/elasticsearch/client/test_fixtures/health.go +++ b/operators/pkg/controller/elasticsearch/client/test_fixtures/health.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package fixtures const HealthSample = `{ diff --git a/operators/pkg/controller/elasticsearch/client/test_fixtures/info.go b/operators/pkg/controller/elasticsearch/client/test_fixtures/info.go index d441bac4a0..9d4928fb3f 100644 --- a/operators/pkg/controller/elasticsearch/client/test_fixtures/info.go +++ b/operators/pkg/controller/elasticsearch/client/test_fixtures/info.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package fixtures const ( diff --git a/operators/pkg/controller/elasticsearch/client/test_fixtures/license.go b/operators/pkg/controller/elasticsearch/client/test_fixtures/license.go index b02088a3c8..29e035f246 100644 --- a/operators/pkg/controller/elasticsearch/client/test_fixtures/license.go +++ b/operators/pkg/controller/elasticsearch/client/test_fixtures/license.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package fixtures const ( diff --git a/operators/pkg/controller/elasticsearch/client/test_fixtures/nodes.go b/operators/pkg/controller/elasticsearch/client/test_fixtures/nodes.go index 2e9fe68a43..bdc24fc80c 100644 --- a/operators/pkg/controller/elasticsearch/client/test_fixtures/nodes.go +++ b/operators/pkg/controller/elasticsearch/client/test_fixtures/nodes.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package fixtures const ( diff --git a/operators/pkg/controller/elasticsearch/configmap/configmap.go b/operators/pkg/controller/elasticsearch/configmap/configmap.go index b2b7f3ad4a..9884cffea1 100644 --- a/operators/pkg/controller/elasticsearch/configmap/configmap.go +++ b/operators/pkg/controller/elasticsearch/configmap/configmap.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package configmap import ( diff --git a/operators/pkg/controller/elasticsearch/configmap/configmap_control.go b/operators/pkg/controller/elasticsearch/configmap/configmap_control.go index 3511a0e006..21444c6d40 100644 --- a/operators/pkg/controller/elasticsearch/configmap/configmap_control.go +++ b/operators/pkg/controller/elasticsearch/configmap/configmap_control.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package configmap import ( diff --git a/operators/pkg/controller/elasticsearch/driver/default.go b/operators/pkg/controller/elasticsearch/driver/default.go index 07ad5a783a..59e0bb9d2f 100644 --- a/operators/pkg/controller/elasticsearch/driver/default.go +++ b/operators/pkg/controller/elasticsearch/driver/default.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package driver import ( diff --git a/operators/pkg/controller/elasticsearch/driver/driver.go b/operators/pkg/controller/elasticsearch/driver/driver.go index 017d417284..99b4686426 100644 --- a/operators/pkg/controller/elasticsearch/driver/driver.go +++ b/operators/pkg/controller/elasticsearch/driver/driver.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package driver import ( diff --git a/operators/pkg/controller/elasticsearch/driver/generic_resources.go b/operators/pkg/controller/elasticsearch/driver/generic_resources.go index 64a1d8f96a..324146adca 100644 --- a/operators/pkg/controller/elasticsearch/driver/generic_resources.go +++ b/operators/pkg/controller/elasticsearch/driver/generic_resources.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package driver import ( diff --git a/operators/pkg/controller/elasticsearch/driver/node_certificates.go b/operators/pkg/controller/elasticsearch/driver/node_certificates.go index c8ae8f2377..5155b789e0 100644 --- a/operators/pkg/controller/elasticsearch/driver/node_certificates.go +++ b/operators/pkg/controller/elasticsearch/driver/node_certificates.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package driver import ( diff --git a/operators/pkg/controller/elasticsearch/driver/pods.go b/operators/pkg/controller/elasticsearch/driver/pods.go index b40ff9f556..69a4891704 100644 --- a/operators/pkg/controller/elasticsearch/driver/pods.go +++ b/operators/pkg/controller/elasticsearch/driver/pods.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package driver import ( diff --git a/operators/pkg/controller/elasticsearch/driver/version_wide_resources.go b/operators/pkg/controller/elasticsearch/driver/version_wide_resources.go index 6312e360ac..040d807c51 100644 --- a/operators/pkg/controller/elasticsearch/driver/version_wide_resources.go +++ b/operators/pkg/controller/elasticsearch/driver/version_wide_resources.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package driver import ( diff --git a/operators/pkg/controller/elasticsearch/elasticsearch_controller.go b/operators/pkg/controller/elasticsearch/elasticsearch_controller.go index d53520c0d7..0128f114b0 100644 --- a/operators/pkg/controller/elasticsearch/elasticsearch_controller.go +++ b/operators/pkg/controller/elasticsearch/elasticsearch_controller.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package elasticsearch import ( diff --git a/operators/pkg/controller/elasticsearch/elasticsearch_controller_suite_test.go b/operators/pkg/controller/elasticsearch/elasticsearch_controller_suite_test.go index d53e1959e7..cd6248117e 100644 --- a/operators/pkg/controller/elasticsearch/elasticsearch_controller_suite_test.go +++ b/operators/pkg/controller/elasticsearch/elasticsearch_controller_suite_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package elasticsearch diff --git a/operators/pkg/controller/elasticsearch/elasticsearch_controller_test.go b/operators/pkg/controller/elasticsearch/elasticsearch_controller_test.go index bcb220af39..e74ae09c47 100644 --- a/operators/pkg/controller/elasticsearch/elasticsearch_controller_test.go +++ b/operators/pkg/controller/elasticsearch/elasticsearch_controller_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package elasticsearch diff --git a/operators/pkg/controller/elasticsearch/initcontainer/initcontainer.go b/operators/pkg/controller/elasticsearch/initcontainer/initcontainer.go index d573086e35..dd9a774692 100644 --- a/operators/pkg/controller/elasticsearch/initcontainer/initcontainer.go +++ b/operators/pkg/controller/elasticsearch/initcontainer/initcontainer.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package initcontainer import ( diff --git a/operators/pkg/controller/elasticsearch/initcontainer/initcontainer_test.go b/operators/pkg/controller/elasticsearch/initcontainer/initcontainer_test.go index 07344366dd..a39d5b8486 100644 --- a/operators/pkg/controller/elasticsearch/initcontainer/initcontainer_test.go +++ b/operators/pkg/controller/elasticsearch/initcontainer/initcontainer_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package initcontainer import ( diff --git a/operators/pkg/controller/elasticsearch/initcontainer/linked_files.go b/operators/pkg/controller/elasticsearch/initcontainer/linked_files.go index dfe9d0e2fe..9163da052a 100644 --- a/operators/pkg/controller/elasticsearch/initcontainer/linked_files.go +++ b/operators/pkg/controller/elasticsearch/initcontainer/linked_files.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package initcontainer // LinkedFile describes a symbolic link with source and target. diff --git a/operators/pkg/controller/elasticsearch/initcontainer/os_settings.go b/operators/pkg/controller/elasticsearch/initcontainer/os_settings.go index 1f80c15803..a91c65892e 100644 --- a/operators/pkg/controller/elasticsearch/initcontainer/os_settings.go +++ b/operators/pkg/controller/elasticsearch/initcontainer/os_settings.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package initcontainer import ( diff --git a/operators/pkg/controller/elasticsearch/initcontainer/prepare_fs.go b/operators/pkg/controller/elasticsearch/initcontainer/prepare_fs.go index 8653d00b4e..196542aafe 100644 --- a/operators/pkg/controller/elasticsearch/initcontainer/prepare_fs.go +++ b/operators/pkg/controller/elasticsearch/initcontainer/prepare_fs.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package initcontainer import ( diff --git a/operators/pkg/controller/elasticsearch/initcontainer/script.go b/operators/pkg/controller/elasticsearch/initcontainer/script.go index f66d3252c7..a6dcd9034e 100644 --- a/operators/pkg/controller/elasticsearch/initcontainer/script.go +++ b/operators/pkg/controller/elasticsearch/initcontainer/script.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package initcontainer import ( diff --git a/operators/pkg/controller/elasticsearch/initcontainer/script_test.go b/operators/pkg/controller/elasticsearch/initcontainer/script_test.go index fa17efdb3f..c032d4eafb 100644 --- a/operators/pkg/controller/elasticsearch/initcontainer/script_test.go +++ b/operators/pkg/controller/elasticsearch/initcontainer/script_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package initcontainer import ( diff --git a/operators/pkg/controller/elasticsearch/initcontainer/shared_volumes.go b/operators/pkg/controller/elasticsearch/initcontainer/shared_volumes.go index 161396241f..e10d2c4d0f 100644 --- a/operators/pkg/controller/elasticsearch/initcontainer/shared_volumes.go +++ b/operators/pkg/controller/elasticsearch/initcontainer/shared_volumes.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package initcontainer import corev1 "k8s.io/api/core/v1" diff --git a/operators/pkg/controller/elasticsearch/initcontainer/sidecar_init.go b/operators/pkg/controller/elasticsearch/initcontainer/sidecar_init.go index 4656e25e7a..db27b14ac1 100644 --- a/operators/pkg/controller/elasticsearch/initcontainer/sidecar_init.go +++ b/operators/pkg/controller/elasticsearch/initcontainer/sidecar_init.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package initcontainer import ( diff --git a/operators/pkg/controller/elasticsearch/keystore/keystore.go b/operators/pkg/controller/elasticsearch/keystore/keystore.go index 370431a187..4befd4caa0 100644 --- a/operators/pkg/controller/elasticsearch/keystore/keystore.go +++ b/operators/pkg/controller/elasticsearch/keystore/keystore.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package keystore const ( diff --git a/operators/pkg/controller/elasticsearch/label/label.go b/operators/pkg/controller/elasticsearch/label/label.go index b971d03757..786b4e813b 100644 --- a/operators/pkg/controller/elasticsearch/label/label.go +++ b/operators/pkg/controller/elasticsearch/label/label.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package label import ( diff --git a/operators/pkg/controller/elasticsearch/label/label_test.go b/operators/pkg/controller/elasticsearch/label/label_test.go index 70ace19be4..caeda75b01 100644 --- a/operators/pkg/controller/elasticsearch/label/label_test.go +++ b/operators/pkg/controller/elasticsearch/label/label_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package label import ( diff --git a/operators/pkg/controller/elasticsearch/license/apply.go b/operators/pkg/controller/elasticsearch/license/apply.go index db6ae3cbe9..cef9bc9a7b 100644 --- a/operators/pkg/controller/elasticsearch/license/apply.go +++ b/operators/pkg/controller/elasticsearch/license/apply.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package license import ( diff --git a/operators/pkg/controller/elasticsearch/license/apply_test.go b/operators/pkg/controller/elasticsearch/license/apply_test.go index 489b7f96e9..bc43e1030f 100644 --- a/operators/pkg/controller/elasticsearch/license/apply_test.go +++ b/operators/pkg/controller/elasticsearch/license/apply_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package license import ( diff --git a/operators/pkg/controller/elasticsearch/license/reconcile.go b/operators/pkg/controller/elasticsearch/license/reconcile.go index 98944a4c25..7ae7d92cc9 100644 --- a/operators/pkg/controller/elasticsearch/license/reconcile.go +++ b/operators/pkg/controller/elasticsearch/license/reconcile.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package license import ( diff --git a/operators/pkg/controller/elasticsearch/license/watch.go b/operators/pkg/controller/elasticsearch/license/watch.go index ae6492497f..3aef713242 100644 --- a/operators/pkg/controller/elasticsearch/license/watch.go +++ b/operators/pkg/controller/elasticsearch/license/watch.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package license import ( diff --git a/operators/pkg/controller/elasticsearch/migration/migrate_data.go b/operators/pkg/controller/elasticsearch/migration/migrate_data.go index 33b5855bd5..29103094c5 100644 --- a/operators/pkg/controller/elasticsearch/migration/migrate_data.go +++ b/operators/pkg/controller/elasticsearch/migration/migrate_data.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package migration import ( diff --git a/operators/pkg/controller/elasticsearch/migration/migrate_data_test.go b/operators/pkg/controller/elasticsearch/migration/migrate_data_test.go index 637bd778a8..04cb053520 100644 --- a/operators/pkg/controller/elasticsearch/migration/migrate_data_test.go +++ b/operators/pkg/controller/elasticsearch/migration/migrate_data_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package migration import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/calculate.go b/operators/pkg/controller/elasticsearch/mutation/calculate.go index e358e8c4a0..e3a25d3bca 100644 --- a/operators/pkg/controller/elasticsearch/mutation/calculate.go +++ b/operators/pkg/controller/elasticsearch/mutation/calculate.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/calculate_test.go b/operators/pkg/controller/elasticsearch/mutation/calculate_test.go index d1ea00e973..7ddb366b24 100644 --- a/operators/pkg/controller/elasticsearch/mutation/calculate_test.go +++ b/operators/pkg/controller/elasticsearch/mutation/calculate_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/change_group.go b/operators/pkg/controller/elasticsearch/mutation/change_group.go index 7db11696c9..5f12732048 100644 --- a/operators/pkg/controller/elasticsearch/mutation/change_group.go +++ b/operators/pkg/controller/elasticsearch/mutation/change_group.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/change_group_test.go b/operators/pkg/controller/elasticsearch/mutation/change_group_test.go index d897dd4200..1c4fbb4c14 100644 --- a/operators/pkg/controller/elasticsearch/mutation/change_group_test.go +++ b/operators/pkg/controller/elasticsearch/mutation/change_group_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/changes.go b/operators/pkg/controller/elasticsearch/mutation/changes.go index d95a609c34..3ecfa4a74d 100644 --- a/operators/pkg/controller/elasticsearch/mutation/changes.go +++ b/operators/pkg/controller/elasticsearch/mutation/changes.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/changes_test.go b/operators/pkg/controller/elasticsearch/mutation/changes_test.go index e817b1daa6..ba73515d63 100644 --- a/operators/pkg/controller/elasticsearch/mutation/changes_test.go +++ b/operators/pkg/controller/elasticsearch/mutation/changes_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/comparison.go b/operators/pkg/controller/elasticsearch/mutation/comparison.go index 3e4a58d4e7..908069f17c 100644 --- a/operators/pkg/controller/elasticsearch/mutation/comparison.go +++ b/operators/pkg/controller/elasticsearch/mutation/comparison.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/comparison_test.go b/operators/pkg/controller/elasticsearch/mutation/comparison_test.go index de3ba524f2..a7691a60c2 100644 --- a/operators/pkg/controller/elasticsearch/mutation/comparison_test.go +++ b/operators/pkg/controller/elasticsearch/mutation/comparison_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/mutation.go b/operators/pkg/controller/elasticsearch/mutation/mutation.go index db7a99df27..10f488eecf 100644 --- a/operators/pkg/controller/elasticsearch/mutation/mutation.go +++ b/operators/pkg/controller/elasticsearch/mutation/mutation.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import logf "sigs.k8s.io/controller-runtime/pkg/runtime/log" diff --git a/operators/pkg/controller/elasticsearch/mutation/performable.go b/operators/pkg/controller/elasticsearch/mutation/performable.go index 296e7500f0..c85f508b87 100644 --- a/operators/pkg/controller/elasticsearch/mutation/performable.go +++ b/operators/pkg/controller/elasticsearch/mutation/performable.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/performable_test.go b/operators/pkg/controller/elasticsearch/mutation/performable_test.go index bfdd5d6cfb..49606433e2 100644 --- a/operators/pkg/controller/elasticsearch/mutation/performable_test.go +++ b/operators/pkg/controller/elasticsearch/mutation/performable_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/podrestrictions.go b/operators/pkg/controller/elasticsearch/mutation/podrestrictions.go index c3bbf51a5b..d9c156d6e9 100644 --- a/operators/pkg/controller/elasticsearch/mutation/podrestrictions.go +++ b/operators/pkg/controller/elasticsearch/mutation/podrestrictions.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/podrestrictions_test.go b/operators/pkg/controller/elasticsearch/mutation/podrestrictions_test.go index a844c226ee..fceb8fe054 100644 --- a/operators/pkg/controller/elasticsearch/mutation/podrestrictions_test.go +++ b/operators/pkg/controller/elasticsearch/mutation/podrestrictions_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/pods_state.go b/operators/pkg/controller/elasticsearch/mutation/pods_state.go index 0410576275..c04f57c1ff 100644 --- a/operators/pkg/controller/elasticsearch/mutation/pods_state.go +++ b/operators/pkg/controller/elasticsearch/mutation/pods_state.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/pods_state_test.go b/operators/pkg/controller/elasticsearch/mutation/pods_state_test.go index 69e8347449..cef0c042cb 100644 --- a/operators/pkg/controller/elasticsearch/mutation/pods_state_test.go +++ b/operators/pkg/controller/elasticsearch/mutation/pods_state_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/sorting.go b/operators/pkg/controller/elasticsearch/mutation/sorting.go index 097b6d0b8e..4f2ff605a7 100644 --- a/operators/pkg/controller/elasticsearch/mutation/sorting.go +++ b/operators/pkg/controller/elasticsearch/mutation/sorting.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/mutation/sorting_test.go b/operators/pkg/controller/elasticsearch/mutation/sorting_test.go index 5e7fe3a5ea..36e706b541 100644 --- a/operators/pkg/controller/elasticsearch/mutation/sorting_test.go +++ b/operators/pkg/controller/elasticsearch/mutation/sorting_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package mutation import ( diff --git a/operators/pkg/controller/elasticsearch/nodecerts/reconcile.go b/operators/pkg/controller/elasticsearch/nodecerts/reconcile.go index 3286948bdc..65d852c36a 100644 --- a/operators/pkg/controller/elasticsearch/nodecerts/reconcile.go +++ b/operators/pkg/controller/elasticsearch/nodecerts/reconcile.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package nodecerts import ( diff --git a/operators/pkg/controller/elasticsearch/observer/finalizer.go b/operators/pkg/controller/elasticsearch/observer/finalizer.go index 0b8e5d3f8f..a4f61dbaff 100644 --- a/operators/pkg/controller/elasticsearch/observer/finalizer.go +++ b/operators/pkg/controller/elasticsearch/observer/finalizer.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package observer import ( diff --git a/operators/pkg/controller/elasticsearch/observer/manager.go b/operators/pkg/controller/elasticsearch/observer/manager.go index d5ad2acab7..590d621e8e 100644 --- a/operators/pkg/controller/elasticsearch/observer/manager.go +++ b/operators/pkg/controller/elasticsearch/observer/manager.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package observer import ( diff --git a/operators/pkg/controller/elasticsearch/observer/manager_test.go b/operators/pkg/controller/elasticsearch/observer/manager_test.go index 1122690962..5a22d6a4a8 100644 --- a/operators/pkg/controller/elasticsearch/observer/manager_test.go +++ b/operators/pkg/controller/elasticsearch/observer/manager_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package observer import ( diff --git a/operators/pkg/controller/elasticsearch/observer/observer.go b/operators/pkg/controller/elasticsearch/observer/observer.go index 00ef9e2547..44755dcabf 100644 --- a/operators/pkg/controller/elasticsearch/observer/observer.go +++ b/operators/pkg/controller/elasticsearch/observer/observer.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package observer import ( diff --git a/operators/pkg/controller/elasticsearch/observer/observer_test.go b/operators/pkg/controller/elasticsearch/observer/observer_test.go index 1b7c23be37..8c5f55bcaa 100644 --- a/operators/pkg/controller/elasticsearch/observer/observer_test.go +++ b/operators/pkg/controller/elasticsearch/observer/observer_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package observer import ( diff --git a/operators/pkg/controller/elasticsearch/observer/state.go b/operators/pkg/controller/elasticsearch/observer/state.go index 24d9f8f426..f715855486 100644 --- a/operators/pkg/controller/elasticsearch/observer/state.go +++ b/operators/pkg/controller/elasticsearch/observer/state.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package observer import ( diff --git a/operators/pkg/controller/elasticsearch/observer/state_test.go b/operators/pkg/controller/elasticsearch/observer/state_test.go index cd55188774..f5c15b4a7f 100644 --- a/operators/pkg/controller/elasticsearch/observer/state_test.go +++ b/operators/pkg/controller/elasticsearch/observer/state_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package observer import ( diff --git a/operators/pkg/controller/elasticsearch/pod/name.go b/operators/pkg/controller/elasticsearch/pod/name.go index 10aeaa247a..c3af9640aa 100644 --- a/operators/pkg/controller/elasticsearch/pod/name.go +++ b/operators/pkg/controller/elasticsearch/pod/name.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package pod import ( diff --git a/operators/pkg/controller/elasticsearch/pod/name_test.go b/operators/pkg/controller/elasticsearch/pod/name_test.go index 6ed26ccf93..57f3a3768e 100644 --- a/operators/pkg/controller/elasticsearch/pod/name_test.go +++ b/operators/pkg/controller/elasticsearch/pod/name_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package pod import ( diff --git a/operators/pkg/controller/elasticsearch/pod/pod.go b/operators/pkg/controller/elasticsearch/pod/pod.go index 85b39f8ee9..ba5a3d7cd0 100644 --- a/operators/pkg/controller/elasticsearch/pod/pod.go +++ b/operators/pkg/controller/elasticsearch/pod/pod.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package pod import ( diff --git a/operators/pkg/controller/elasticsearch/pod/readiness_probe.go b/operators/pkg/controller/elasticsearch/pod/readiness_probe.go index a62364d03a..7780092432 100644 --- a/operators/pkg/controller/elasticsearch/pod/readiness_probe.go +++ b/operators/pkg/controller/elasticsearch/pod/readiness_probe.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package pod // DefaultReadinessProbeScript is the verbatim shell script that acts as a readiness probe diff --git a/operators/pkg/controller/elasticsearch/reconcile/log.go b/operators/pkg/controller/elasticsearch/reconcile/log.go index 4f619af761..4f51c3e20c 100644 --- a/operators/pkg/controller/elasticsearch/reconcile/log.go +++ b/operators/pkg/controller/elasticsearch/reconcile/log.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package reconcile import logf "sigs.k8s.io/controller-runtime/pkg/runtime/log" diff --git a/operators/pkg/controller/elasticsearch/reconcile/resources_state.go b/operators/pkg/controller/elasticsearch/reconcile/resources_state.go index 28c2ad3296..e3709306c5 100644 --- a/operators/pkg/controller/elasticsearch/reconcile/resources_state.go +++ b/operators/pkg/controller/elasticsearch/reconcile/resources_state.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package reconcile import ( diff --git a/operators/pkg/controller/elasticsearch/reconcile/state.go b/operators/pkg/controller/elasticsearch/reconcile/state.go index a835bb6e37..f7011c1262 100644 --- a/operators/pkg/controller/elasticsearch/reconcile/state.go +++ b/operators/pkg/controller/elasticsearch/reconcile/state.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package reconcile import ( diff --git a/operators/pkg/controller/elasticsearch/reconcile/state_test.go b/operators/pkg/controller/elasticsearch/reconcile/state_test.go index 2b32b879ca..9757e17f6a 100644 --- a/operators/pkg/controller/elasticsearch/reconcile/state_test.go +++ b/operators/pkg/controller/elasticsearch/reconcile/state_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package reconcile import ( diff --git a/operators/pkg/controller/elasticsearch/secret/reconciler.go b/operators/pkg/controller/elasticsearch/secret/reconciler.go index 50d600a7d6..f25eed1df8 100644 --- a/operators/pkg/controller/elasticsearch/secret/reconciler.go +++ b/operators/pkg/controller/elasticsearch/secret/reconciler.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package secret import ( diff --git a/operators/pkg/controller/elasticsearch/secret/users.go b/operators/pkg/controller/elasticsearch/secret/users.go index e00d22aa8a..468876f3bf 100644 --- a/operators/pkg/controller/elasticsearch/secret/users.go +++ b/operators/pkg/controller/elasticsearch/secret/users.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package secret import ( diff --git a/operators/pkg/controller/elasticsearch/secret/users_test.go b/operators/pkg/controller/elasticsearch/secret/users_test.go index c49a5a0a99..e929e81df8 100644 --- a/operators/pkg/controller/elasticsearch/secret/users_test.go +++ b/operators/pkg/controller/elasticsearch/secret/users_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package secret import ( diff --git a/operators/pkg/controller/elasticsearch/services/services.go b/operators/pkg/controller/elasticsearch/services/services.go index 073b96d25d..9f078621f4 100644 --- a/operators/pkg/controller/elasticsearch/services/services.go +++ b/operators/pkg/controller/elasticsearch/services/services.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package services import ( diff --git a/operators/pkg/controller/elasticsearch/services/services_test.go b/operators/pkg/controller/elasticsearch/services/services_test.go index ff56d08490..9759c8fa50 100644 --- a/operators/pkg/controller/elasticsearch/services/services_test.go +++ b/operators/pkg/controller/elasticsearch/services/services_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package services import ( diff --git a/operators/pkg/controller/elasticsearch/settings/configmap.go b/operators/pkg/controller/elasticsearch/settings/configmap.go index b65f9d9ecb..5f518693da 100644 --- a/operators/pkg/controller/elasticsearch/settings/configmap.go +++ b/operators/pkg/controller/elasticsearch/settings/configmap.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package settings const ( diff --git a/operators/pkg/controller/elasticsearch/settings/environment.go b/operators/pkg/controller/elasticsearch/settings/environment.go index 50a7c0660f..7f4228035c 100644 --- a/operators/pkg/controller/elasticsearch/settings/environment.go +++ b/operators/pkg/controller/elasticsearch/settings/environment.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package settings const ( diff --git a/operators/pkg/controller/elasticsearch/settings/quorum.go b/operators/pkg/controller/elasticsearch/settings/quorum.go index 6e4f8f7c9d..83ca2915bc 100644 --- a/operators/pkg/controller/elasticsearch/settings/quorum.go +++ b/operators/pkg/controller/elasticsearch/settings/quorum.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package settings import ( diff --git a/operators/pkg/controller/elasticsearch/settings/quorum_test.go b/operators/pkg/controller/elasticsearch/settings/quorum_test.go index 9c1980937c..1e32b9e336 100644 --- a/operators/pkg/controller/elasticsearch/settings/quorum_test.go +++ b/operators/pkg/controller/elasticsearch/settings/quorum_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package settings import ( diff --git a/operators/pkg/controller/elasticsearch/sidecar/environment.go b/operators/pkg/controller/elasticsearch/sidecar/environment.go index f40d05563a..37f17f70dc 100644 --- a/operators/pkg/controller/elasticsearch/sidecar/environment.go +++ b/operators/pkg/controller/elasticsearch/sidecar/environment.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package sidecar const ( diff --git a/operators/pkg/controller/elasticsearch/snapshot/cronjob.go b/operators/pkg/controller/elasticsearch/snapshot/cronjob.go index 1162b91926..313bd645d6 100644 --- a/operators/pkg/controller/elasticsearch/snapshot/cronjob.go +++ b/operators/pkg/controller/elasticsearch/snapshot/cronjob.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package snapshot import ( diff --git a/operators/pkg/controller/elasticsearch/snapshot/snapshot_control.go b/operators/pkg/controller/elasticsearch/snapshot/snapshot_control.go index 17bcbacf96..e9d9d16d5e 100644 --- a/operators/pkg/controller/elasticsearch/snapshot/snapshot_control.go +++ b/operators/pkg/controller/elasticsearch/snapshot/snapshot_control.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package snapshot import ( diff --git a/operators/pkg/controller/elasticsearch/snapshot/snapshot_control_test.go b/operators/pkg/controller/elasticsearch/snapshot/snapshot_control_test.go index 2f63c692d0..f1023959bf 100644 --- a/operators/pkg/controller/elasticsearch/snapshot/snapshot_control_test.go +++ b/operators/pkg/controller/elasticsearch/snapshot/snapshot_control_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package snapshot import ( diff --git a/operators/pkg/controller/elasticsearch/snapshot/snapshots.go b/operators/pkg/controller/elasticsearch/snapshot/snapshots.go index 82eecc9861..8e95886dae 100644 --- a/operators/pkg/controller/elasticsearch/snapshot/snapshots.go +++ b/operators/pkg/controller/elasticsearch/snapshot/snapshots.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package snapshot import ( diff --git a/operators/pkg/controller/elasticsearch/snapshot/snapshots_test.go b/operators/pkg/controller/elasticsearch/snapshot/snapshots_test.go index 89d4de14f6..e8bab1d37a 100644 --- a/operators/pkg/controller/elasticsearch/snapshot/snapshots_test.go +++ b/operators/pkg/controller/elasticsearch/snapshot/snapshots_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package snapshot import ( diff --git a/operators/pkg/controller/elasticsearch/user/internal_users.go b/operators/pkg/controller/elasticsearch/user/internal_users.go index 3d12fc8450..e35fe997f0 100644 --- a/operators/pkg/controller/elasticsearch/user/internal_users.go +++ b/operators/pkg/controller/elasticsearch/user/internal_users.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package user import ( diff --git a/operators/pkg/controller/elasticsearch/version/common.go b/operators/pkg/controller/elasticsearch/version/common.go index 7abccd7d6f..56f4aa079a 100644 --- a/operators/pkg/controller/elasticsearch/version/common.go +++ b/operators/pkg/controller/elasticsearch/version/common.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version import ( diff --git a/operators/pkg/controller/elasticsearch/version/common_test.go b/operators/pkg/controller/elasticsearch/version/common_test.go index 36c85772d3..499b3aee5e 100644 --- a/operators/pkg/controller/elasticsearch/version/common_test.go +++ b/operators/pkg/controller/elasticsearch/version/common_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version import ( diff --git a/operators/pkg/controller/elasticsearch/version/doc.go b/operators/pkg/controller/elasticsearch/version/doc.go index 336a36c978..043ef55860 100644 --- a/operators/pkg/controller/elasticsearch/version/doc.go +++ b/operators/pkg/controller/elasticsearch/version/doc.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version import ( diff --git a/operators/pkg/controller/elasticsearch/version/supported_versions.go b/operators/pkg/controller/elasticsearch/version/supported_versions.go index a1a341a4a5..5f8720d4e3 100644 --- a/operators/pkg/controller/elasticsearch/version/supported_versions.go +++ b/operators/pkg/controller/elasticsearch/version/supported_versions.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version import ( diff --git a/operators/pkg/controller/elasticsearch/version/supported_versions_test.go b/operators/pkg/controller/elasticsearch/version/supported_versions_test.go index 0c40c88e50..eceb649d36 100644 --- a/operators/pkg/controller/elasticsearch/version/supported_versions_test.go +++ b/operators/pkg/controller/elasticsearch/version/supported_versions_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version import ( diff --git a/operators/pkg/controller/elasticsearch/version/version5/podspecs.go b/operators/pkg/controller/elasticsearch/version/version5/podspecs.go index ddd6d3e1fc..90e6d6c8c5 100644 --- a/operators/pkg/controller/elasticsearch/version/version5/podspecs.go +++ b/operators/pkg/controller/elasticsearch/version/version5/podspecs.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version5 import ( diff --git a/operators/pkg/controller/elasticsearch/version/version6/podspecs.go b/operators/pkg/controller/elasticsearch/version/version6/podspecs.go index 2c45e6c092..7442b48a01 100644 --- a/operators/pkg/controller/elasticsearch/version/version6/podspecs.go +++ b/operators/pkg/controller/elasticsearch/version/version6/podspecs.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version6 import ( diff --git a/operators/pkg/controller/elasticsearch/version/version6/podspecs_test.go b/operators/pkg/controller/elasticsearch/version/version6/podspecs_test.go index b602460b11..5acbac7adf 100644 --- a/operators/pkg/controller/elasticsearch/version/version6/podspecs_test.go +++ b/operators/pkg/controller/elasticsearch/version/version6/podspecs_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version6 import ( diff --git a/operators/pkg/controller/elasticsearch/version/version7/initial_master_nodes.go b/operators/pkg/controller/elasticsearch/version/version7/initial_master_nodes.go index 006cfeea63..b301fa62e8 100644 --- a/operators/pkg/controller/elasticsearch/version/version7/initial_master_nodes.go +++ b/operators/pkg/controller/elasticsearch/version/version7/initial_master_nodes.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version7 import ( diff --git a/operators/pkg/controller/elasticsearch/version/version7/initial_master_nodes_test.go b/operators/pkg/controller/elasticsearch/version/version7/initial_master_nodes_test.go index c3317f854b..a08994e8dc 100644 --- a/operators/pkg/controller/elasticsearch/version/version7/initial_master_nodes_test.go +++ b/operators/pkg/controller/elasticsearch/version/version7/initial_master_nodes_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version7 import ( diff --git a/operators/pkg/controller/elasticsearch/version/version7/zen2.go b/operators/pkg/controller/elasticsearch/version/version7/zen2.go index 95fad410d5..5e2374e0c5 100644 --- a/operators/pkg/controller/elasticsearch/version/version7/zen2.go +++ b/operators/pkg/controller/elasticsearch/version/version7/zen2.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package version7 import ( diff --git a/operators/pkg/controller/elasticsearch/volume/configmap.go b/operators/pkg/controller/elasticsearch/volume/configmap.go index 7a08bff6ed..c93956659d 100644 --- a/operators/pkg/controller/elasticsearch/volume/configmap.go +++ b/operators/pkg/controller/elasticsearch/volume/configmap.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package volume import ( diff --git a/operators/pkg/controller/elasticsearch/volume/emptydir.go b/operators/pkg/controller/elasticsearch/volume/emptydir.go index f1ad556fd9..0bff0afcb1 100644 --- a/operators/pkg/controller/elasticsearch/volume/emptydir.go +++ b/operators/pkg/controller/elasticsearch/volume/emptydir.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package volume import ( diff --git a/operators/pkg/controller/elasticsearch/volume/emptydir_test.go b/operators/pkg/controller/elasticsearch/volume/emptydir_test.go index 7ad256ebfa..c55e4aaaea 100644 --- a/operators/pkg/controller/elasticsearch/volume/emptydir_test.go +++ b/operators/pkg/controller/elasticsearch/volume/emptydir_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package volume import ( diff --git a/operators/pkg/controller/elasticsearch/volume/secret.go b/operators/pkg/controller/elasticsearch/volume/secret.go index c2b75fb7e9..a7f93796ab 100644 --- a/operators/pkg/controller/elasticsearch/volume/secret.go +++ b/operators/pkg/controller/elasticsearch/volume/secret.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package volume import ( diff --git a/operators/pkg/controller/elasticsearch/volume/secret_test.go b/operators/pkg/controller/elasticsearch/volume/secret_test.go index 11d207b200..4d3058799b 100644 --- a/operators/pkg/controller/elasticsearch/volume/secret_test.go +++ b/operators/pkg/controller/elasticsearch/volume/secret_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package volume import ( diff --git a/operators/pkg/controller/elasticsearch/volume/volume.go b/operators/pkg/controller/elasticsearch/volume/volume.go index 1efe7c9499..bd4b75a0e6 100644 --- a/operators/pkg/controller/elasticsearch/volume/volume.go +++ b/operators/pkg/controller/elasticsearch/volume/volume.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package volume import ( diff --git a/operators/pkg/controller/kibana/deployment.go b/operators/pkg/controller/kibana/deployment.go index 32db5da249..01409870a7 100644 --- a/operators/pkg/controller/kibana/deployment.go +++ b/operators/pkg/controller/kibana/deployment.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package kibana import ( diff --git a/operators/pkg/controller/kibana/deployment_control.go b/operators/pkg/controller/kibana/deployment_control.go index 076add02d7..89aa0d3982 100644 --- a/operators/pkg/controller/kibana/deployment_control.go +++ b/operators/pkg/controller/kibana/deployment_control.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package kibana import ( diff --git a/operators/pkg/controller/kibana/deployment_test.go b/operators/pkg/controller/kibana/deployment_test.go index ed09baf04c..30174d951e 100644 --- a/operators/pkg/controller/kibana/deployment_test.go +++ b/operators/pkg/controller/kibana/deployment_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package kibana import ( diff --git a/operators/pkg/controller/kibana/kibana_controller.go b/operators/pkg/controller/kibana/kibana_controller.go index 9fae852abf..3eed3921f9 100644 --- a/operators/pkg/controller/kibana/kibana_controller.go +++ b/operators/pkg/controller/kibana/kibana_controller.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package kibana import ( diff --git a/operators/pkg/controller/kibana/kibana_controller_suite_test.go b/operators/pkg/controller/kibana/kibana_controller_suite_test.go index 2a5a71824b..87177a06bd 100644 --- a/operators/pkg/controller/kibana/kibana_controller_suite_test.go +++ b/operators/pkg/controller/kibana/kibana_controller_suite_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package kibana diff --git a/operators/pkg/controller/kibana/kibana_controller_test.go b/operators/pkg/controller/kibana/kibana_controller_test.go index 99bcfab94e..d3d29d7b57 100644 --- a/operators/pkg/controller/kibana/kibana_controller_test.go +++ b/operators/pkg/controller/kibana/kibana_controller_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package kibana diff --git a/operators/pkg/controller/kibana/labels.go b/operators/pkg/controller/kibana/labels.go index e439bf52a3..8af785bde6 100644 --- a/operators/pkg/controller/kibana/labels.go +++ b/operators/pkg/controller/kibana/labels.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package kibana import "github.com/elastic/k8s-operators/operators/pkg/controller/common" diff --git a/operators/pkg/controller/kibana/pod.go b/operators/pkg/controller/kibana/pod.go index 0d0cabe343..38eb90bc5c 100644 --- a/operators/pkg/controller/kibana/pod.go +++ b/operators/pkg/controller/kibana/pod.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package kibana import ( diff --git a/operators/pkg/controller/kibana/pod_test.go b/operators/pkg/controller/kibana/pod_test.go index 3ffa1cedc4..846ddb4431 100644 --- a/operators/pkg/controller/kibana/pod_test.go +++ b/operators/pkg/controller/kibana/pod_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package kibana import ( diff --git a/operators/pkg/controller/kibana/services.go b/operators/pkg/controller/kibana/services.go index b0e850470a..7b5c0d01cc 100644 --- a/operators/pkg/controller/kibana/services.go +++ b/operators/pkg/controller/kibana/services.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package kibana import ( diff --git a/operators/pkg/controller/kibana/state.go b/operators/pkg/controller/kibana/state.go index 14249a0d37..78b37f8d9c 100644 --- a/operators/pkg/controller/kibana/state.go +++ b/operators/pkg/controller/kibana/state.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package kibana import ( diff --git a/operators/pkg/controller/license/license_controller.go b/operators/pkg/controller/license/license_controller.go index 583a7a5277..e30c256ad1 100644 --- a/operators/pkg/controller/license/license_controller.go +++ b/operators/pkg/controller/license/license_controller.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package license import ( diff --git a/operators/pkg/controller/license/license_controller_integration_test.go b/operators/pkg/controller/license/license_controller_integration_test.go index 0e3bbad886..51cc9b308c 100644 --- a/operators/pkg/controller/license/license_controller_integration_test.go +++ b/operators/pkg/controller/license/license_controller_integration_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package license diff --git a/operators/pkg/controller/license/license_controller_suite_test.go b/operators/pkg/controller/license/license_controller_suite_test.go index 0743195ab6..47f0f4dd21 100644 --- a/operators/pkg/controller/license/license_controller_suite_test.go +++ b/operators/pkg/controller/license/license_controller_suite_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package license diff --git a/operators/pkg/controller/license/license_controller_test.go b/operators/pkg/controller/license/license_controller_test.go index 32e6062a9b..d0dc09c5f4 100644 --- a/operators/pkg/controller/license/license_controller_test.go +++ b/operators/pkg/controller/license/license_controller_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package license import ( diff --git a/operators/pkg/controller/stack/stack_controller.go b/operators/pkg/controller/stack/stack_controller.go index e312f18308..fbd368aa85 100644 --- a/operators/pkg/controller/stack/stack_controller.go +++ b/operators/pkg/controller/stack/stack_controller.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import ( diff --git a/operators/pkg/controller/stack/stack_controller_suite_test.go b/operators/pkg/controller/stack/stack_controller_suite_test.go index 812c1ab0ca..2332c25e20 100644 --- a/operators/pkg/controller/stack/stack_controller_suite_test.go +++ b/operators/pkg/controller/stack/stack_controller_suite_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package stack diff --git a/operators/pkg/controller/stack/stack_controller_test.go b/operators/pkg/controller/stack/stack_controller_test.go index c92df6080c..1ca791c3ff 100644 --- a/operators/pkg/controller/stack/stack_controller_test.go +++ b/operators/pkg/controller/stack/stack_controller_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // +build integration package stack diff --git a/operators/pkg/dev/mode.go b/operators/pkg/dev/mode.go index 7c010b9f3a..467f1b3a18 100644 --- a/operators/pkg/dev/mode.go +++ b/operators/pkg/dev/mode.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package dev var ( diff --git a/operators/pkg/dev/portforward/client_portforward.go b/operators/pkg/dev/portforward/client_portforward.go index 21dc5745a8..fcbb1fbb26 100644 --- a/operators/pkg/dev/portforward/client_portforward.go +++ b/operators/pkg/dev/portforward/client_portforward.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package portforward import ( diff --git a/operators/pkg/dev/portforward/dialer.go b/operators/pkg/dev/portforward/dialer.go index 1e94b99c89..17040a93d4 100644 --- a/operators/pkg/dev/portforward/dialer.go +++ b/operators/pkg/dev/portforward/dialer.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package portforward import ( diff --git a/operators/pkg/dev/portforward/dialer_test.go b/operators/pkg/dev/portforward/dialer_test.go index c098629a52..f58c6943e3 100644 --- a/operators/pkg/dev/portforward/dialer_test.go +++ b/operators/pkg/dev/portforward/dialer_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package portforward import ( diff --git a/operators/pkg/dev/portforward/doc.go b/operators/pkg/dev/portforward/doc.go index 99dbea82c6..64db739260 100644 --- a/operators/pkg/dev/portforward/doc.go +++ b/operators/pkg/dev/portforward/doc.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // package portforward provides a dialer that uses the Kubernetes API to automatically forward connections to // Kubernetes services and pods using the "port-forward" feature of kubectl. // diff --git a/operators/pkg/dev/portforward/forwarder_store.go b/operators/pkg/dev/portforward/forwarder_store.go index 03498535ec..e421a7e149 100644 --- a/operators/pkg/dev/portforward/forwarder_store.go +++ b/operators/pkg/dev/portforward/forwarder_store.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package portforward import ( diff --git a/operators/pkg/dev/portforward/pod_forwarder.go b/operators/pkg/dev/portforward/pod_forwarder.go index 32faf30cc9..8e4c6a55ea 100644 --- a/operators/pkg/dev/portforward/pod_forwarder.go +++ b/operators/pkg/dev/portforward/pod_forwarder.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package portforward import ( diff --git a/operators/pkg/dev/portforward/pod_forwarder_test.go b/operators/pkg/dev/portforward/pod_forwarder_test.go index 1a90ea535d..4119a9bc6e 100644 --- a/operators/pkg/dev/portforward/pod_forwarder_test.go +++ b/operators/pkg/dev/portforward/pod_forwarder_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package portforward import ( diff --git a/operators/pkg/dev/portforward/service_forwarder.go b/operators/pkg/dev/portforward/service_forwarder.go index 77a7d71c15..21edeb0dd3 100644 --- a/operators/pkg/dev/portforward/service_forwarder.go +++ b/operators/pkg/dev/portforward/service_forwarder.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package portforward import ( diff --git a/operators/pkg/dev/portforward/service_forwarder_test.go b/operators/pkg/dev/portforward/service_forwarder_test.go index 3e7d23418c..8f1d164a0d 100644 --- a/operators/pkg/dev/portforward/service_forwarder_test.go +++ b/operators/pkg/dev/portforward/service_forwarder_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package portforward import ( diff --git a/operators/pkg/utils/diff/diff.go b/operators/pkg/utils/diff/diff.go index 91156a16ea..148460e11f 100644 --- a/operators/pkg/utils/diff/diff.go +++ b/operators/pkg/utils/diff/diff.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + // package diff contains utils to diff two objects. it's pretty much a vendored version of testify's diff with an // utility function to build the diff. package diff diff --git a/operators/pkg/utils/k8s/client.go b/operators/pkg/utils/k8s/client.go index 2e6869c1b6..5ae9afd43e 100644 --- a/operators/pkg/utils/k8s/client.go +++ b/operators/pkg/utils/k8s/client.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package k8s import ( diff --git a/operators/pkg/utils/k8s/client_test.go b/operators/pkg/utils/k8s/client_test.go index 071304c519..b42ab54b4a 100644 --- a/operators/pkg/utils/k8s/client_test.go +++ b/operators/pkg/utils/k8s/client_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package k8s import ( diff --git a/operators/pkg/utils/k8s/k8sutils.go b/operators/pkg/utils/k8s/k8sutils.go index 209c97f703..f980c44f0a 100644 --- a/operators/pkg/utils/k8s/k8sutils.go +++ b/operators/pkg/utils/k8s/k8sutils.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package k8s import ( diff --git a/operators/pkg/utils/k8s/k8sutils_test.go b/operators/pkg/utils/k8s/k8sutils_test.go index c0b4ad22e5..0b1e537d2f 100644 --- a/operators/pkg/utils/k8s/k8sutils_test.go +++ b/operators/pkg/utils/k8s/k8sutils_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package k8s import ( diff --git a/operators/pkg/utils/net/dialer.go b/operators/pkg/utils/net/dialer.go index 1b8a934b1b..792e0ff30c 100644 --- a/operators/pkg/utils/net/dialer.go +++ b/operators/pkg/utils/net/dialer.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package net import ( diff --git a/operators/pkg/utils/retry/retry.go b/operators/pkg/utils/retry/retry.go index 918101197b..cc87ad5bbf 100644 --- a/operators/pkg/utils/retry/retry.go +++ b/operators/pkg/utils/retry/retry.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package retry import ( diff --git a/operators/pkg/utils/retry/retry_test.go b/operators/pkg/utils/retry/retry_test.go index 5708454c8d..8d328d2395 100644 --- a/operators/pkg/utils/retry/retry_test.go +++ b/operators/pkg/utils/retry/retry_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package retry import ( diff --git a/operators/pkg/utils/stringsutil/strings.go b/operators/pkg/utils/stringsutil/strings.go index 0532fd412c..fa713eff27 100644 --- a/operators/pkg/utils/stringsutil/strings.go +++ b/operators/pkg/utils/stringsutil/strings.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stringsutil import ( diff --git a/operators/pkg/utils/stringsutil/strings_test.go b/operators/pkg/utils/stringsutil/strings_test.go index c5f2276857..5ec6e543cc 100644 --- a/operators/pkg/utils/stringsutil/strings_test.go +++ b/operators/pkg/utils/stringsutil/strings_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stringsutil import ( diff --git a/operators/pkg/utils/test/integration.go b/operators/pkg/utils/test/integration.go index 6a351f1ba3..5bf59e8066 100644 --- a/operators/pkg/utils/test/integration.go +++ b/operators/pkg/utils/test/integration.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package test import ( diff --git a/operators/pkg/utils/test/reconcile.go b/operators/pkg/utils/test/reconcile.go index 042e04fc5d..30879d1e8e 100644 --- a/operators/pkg/utils/test/reconcile.go +++ b/operators/pkg/utils/test/reconcile.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package test import ( diff --git a/operators/pkg/utils/test/retry.go b/operators/pkg/utils/test/retry.go index 22658894ac..0b6cac06a4 100644 --- a/operators/pkg/utils/test/retry.go +++ b/operators/pkg/utils/test/retry.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package test import ( diff --git a/operators/pkg/utils/test/time.go b/operators/pkg/utils/test/time.go index 10152b06f3..787c909fc1 100644 --- a/operators/pkg/utils/test/time.go +++ b/operators/pkg/utils/test/time.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package test import ( diff --git a/operators/pkg/webhook/webhook.go b/operators/pkg/webhook/webhook.go index 43be63e665..72e16b1247 100644 --- a/operators/pkg/webhook/webhook.go +++ b/operators/pkg/webhook/webhook.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package webhook import ( diff --git a/operators/test/e2e/failure_test.go b/operators/test/e2e/failure_test.go index 77af191740..9a4ba45ae1 100644 --- a/operators/test/e2e/failure_test.go +++ b/operators/test/e2e/failure_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package e2e import ( diff --git a/operators/test/e2e/helpers/elasticsearch.go b/operators/test/e2e/helpers/elasticsearch.go index 35bdd5c964..393c213f78 100644 --- a/operators/test/e2e/helpers/elasticsearch.go +++ b/operators/test/e2e/helpers/elasticsearch.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package helpers import ( diff --git a/operators/test/e2e/helpers/k8s.go b/operators/test/e2e/helpers/k8s.go index f1f2899163..7d2a075c8f 100644 --- a/operators/test/e2e/helpers/k8s.go +++ b/operators/test/e2e/helpers/k8s.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package helpers import ( diff --git a/operators/test/e2e/helpers/teststep.go b/operators/test/e2e/helpers/teststep.go index 8b49de21dc..f1e02f2f2a 100644 --- a/operators/test/e2e/helpers/teststep.go +++ b/operators/test/e2e/helpers/teststep.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package helpers import ( diff --git a/operators/test/e2e/helpers/testutils.go b/operators/test/e2e/helpers/testutils.go index 336630916f..a60f369042 100644 --- a/operators/test/e2e/helpers/testutils.go +++ b/operators/test/e2e/helpers/testutils.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package helpers import ( diff --git a/operators/test/e2e/mutation_test.go b/operators/test/e2e/mutation_test.go index 06621b2fcc..096281b5db 100644 --- a/operators/test/e2e/mutation_test.go +++ b/operators/test/e2e/mutation_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package e2e import ( diff --git a/operators/test/e2e/sample_test.go b/operators/test/e2e/sample_test.go index 146d20425c..eacb0cec0e 100644 --- a/operators/test/e2e/sample_test.go +++ b/operators/test/e2e/sample_test.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package e2e import ( diff --git a/operators/test/e2e/stack/builder.go b/operators/test/e2e/stack/builder.go index 191a7ced01..7d0945b79a 100644 --- a/operators/test/e2e/stack/builder.go +++ b/operators/test/e2e/stack/builder.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import ( diff --git a/operators/test/e2e/stack/checks.go b/operators/test/e2e/stack/checks.go index 20cc336d51..518c6afb78 100644 --- a/operators/test/e2e/stack/checks.go +++ b/operators/test/e2e/stack/checks.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import ( diff --git a/operators/test/e2e/stack/checks_es.go b/operators/test/e2e/stack/checks_es.go index dfa073cbd6..b527aa791a 100644 --- a/operators/test/e2e/stack/checks_es.go +++ b/operators/test/e2e/stack/checks_es.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import ( diff --git a/operators/test/e2e/stack/checks_k8s.go b/operators/test/e2e/stack/checks_k8s.go index f76a3ac0a1..cd59fedfc1 100644 --- a/operators/test/e2e/stack/checks_k8s.go +++ b/operators/test/e2e/stack/checks_k8s.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import ( diff --git a/operators/test/e2e/stack/cluster_uuid.go b/operators/test/e2e/stack/cluster_uuid.go index e4353ca853..e0e957021c 100644 --- a/operators/test/e2e/stack/cluster_uuid.go +++ b/operators/test/e2e/stack/cluster_uuid.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import ( diff --git a/operators/test/e2e/stack/creation.go b/operators/test/e2e/stack/creation.go index 4526c2bc02..e3150d91d9 100644 --- a/operators/test/e2e/stack/creation.go +++ b/operators/test/e2e/stack/creation.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import ( diff --git a/operators/test/e2e/stack/deletion.go b/operators/test/e2e/stack/deletion.go index 918d9c6167..de935521bb 100644 --- a/operators/test/e2e/stack/deletion.go +++ b/operators/test/e2e/stack/deletion.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import ( diff --git a/operators/test/e2e/stack/init.go b/operators/test/e2e/stack/init.go index fb00901f5f..18c460bf15 100644 --- a/operators/test/e2e/stack/init.go +++ b/operators/test/e2e/stack/init.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import ( diff --git a/operators/test/e2e/stack/mutation.go b/operators/test/e2e/stack/mutation.go index 920a35cdc3..54ef549997 100644 --- a/operators/test/e2e/stack/mutation.go +++ b/operators/test/e2e/stack/mutation.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import ( diff --git a/operators/test/e2e/stack/run.go b/operators/test/e2e/stack/run.go index fa3dd86a8d..de3072293c 100644 --- a/operators/test/e2e/stack/run.go +++ b/operators/test/e2e/stack/run.go @@ -1,3 +1,7 @@ +// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one +// or more contributor license agreements. Licensed under the Elastic License; +// you may not use this file except in compliance with the Elastic License. + package stack import (