diff --git a/.circleci/config.yml b/.circleci/config.yml index e750ee790..08fcc6766 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + version: 2.1 references: diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 20ae1fefc..c2139edb9 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + blank_issues_enabled: false contact_links: - name: Ask a Question diff --git a/.golangci.yml b/.golangci.yml index cc7e7a476..b02cb7a2b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + run: # Timeout for analysis. deadline: 10m diff --git a/.release/ci.hcl b/.release/ci.hcl index bfc2905bc..3ec36176d 100644 --- a/.release/ci.hcl +++ b/.release/ci.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + schema = "1" project "nomad" { diff --git a/.release/linux/package/etc/nomad.d/nomad.hcl b/.release/linux/package/etc/nomad.d/nomad.hcl index 73893ae01..aa1060bfd 100644 --- a/.release/linux/package/etc/nomad.d/nomad.hcl +++ b/.release/linux/package/etc/nomad.d/nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Full configuration options can be found at https://www.nomadproject.io/docs/configuration data_dir = "/opt/nomad/data" diff --git a/.release/release-metadata.hcl b/.release/release-metadata.hcl index ee1792ccb..b68104861 100644 --- a/.release/release-metadata.hcl +++ b/.release/release-metadata.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + url_license = "https://github.com/hashicorp/nomad/blob/main/LICENSE" url_project_website = "https://www.nomadproject.io/" url_source_repository = "https://github.com/hashicorp/nomad" diff --git a/.release/security-scan.hcl b/.release/security-scan.hcl index cfe18040a..986be78aa 100644 --- a/.release/security-scan.hcl +++ b/.release/security-scan.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + container { secrets { all = false diff --git a/.semgrep/api_errorf.yml b/.semgrep/api_errorf.yml index 703c5bf29..42b7ee41e 100644 --- a/.semgrep/api_errorf.yml +++ b/.semgrep/api_errorf.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: - id: "fmt_errorf_unformatted_use" patterns: diff --git a/.semgrep/changelog.yml b/.semgrep/changelog.yml index 83d5e6f4b..bcd169041 100644 --- a/.semgrep/changelog.yml +++ b/.semgrep/changelog.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: # Check `release-note` in changelog entries. # https://semgrep.dev/s/DyRW diff --git a/.semgrep/fsm_time.yml b/.semgrep/fsm_time.yml index 4c2e34daf..9a1274de7 100644 --- a/.semgrep/fsm_time.yml +++ b/.semgrep/fsm_time.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: - id: "no-time-in-fsm" patterns: diff --git a/.semgrep/go_tests.yml b/.semgrep/go_tests.yml index 07878c82a..afc779b5e 100644 --- a/.semgrep/go_tests.yml +++ b/.semgrep/go_tests.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: # Check `require` or `assert` testify overrides. # https://semgrep.dev/s/PgAq diff --git a/.semgrep/http_endpoint.yml b/.semgrep/http_endpoint.yml index 007798613..620394cc1 100644 --- a/.semgrep/http_endpoint.yml +++ b/.semgrep/http_endpoint.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: - id: "http-endpoint-request-decode-error-code" patterns: diff --git a/.semgrep/loopclosure.yml b/.semgrep/loopclosure.yml index 967376127..88ab134c5 100644 --- a/.semgrep/loopclosure.yml +++ b/.semgrep/loopclosure.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: - id: loopclosure patterns: diff --git a/.semgrep/protect_globals.yml b/.semgrep/protect_globals.yml index 0dc5fa60f..162e1c19f 100644 --- a/.semgrep/protect_globals.yml +++ b/.semgrep/protect_globals.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: - id: "no-overriding-struct-globals" patterns: diff --git a/.semgrep/rpc_endpoint.yml b/.semgrep/rpc_endpoint.yml index 15a071aeb..5f3e4d0a9 100644 --- a/.semgrep/rpc_endpoint.yml +++ b/.semgrep/rpc_endpoint.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: # Check potentially unauthenticated RPC endpoints. Technically more # authorization (authz) oriented than authn, but before Nomad 1.4/1.5 that diff --git a/.semgrep/rpc_metrics.yml b/.semgrep/rpc_metrics.yml index d78022054..1b9b887dd 100644 --- a/.semgrep/rpc_metrics.yml +++ b/.semgrep/rpc_metrics.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: # Check for server RPC endpoints without metrics - id: "rpc-missing-metrics" diff --git a/.semgrep/time_after.yml b/.semgrep/time_after.yml index b7dc1d028..3dfadd09a 100644 --- a/.semgrep/time_after.yml +++ b/.semgrep/time_after.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: - id: "time-after-leak" patterns: diff --git a/.semgrep/ui.yml b/.semgrep/ui.yml index 89d3d6eee..7472e789e 100644 --- a/.semgrep/ui.yml +++ b/.semgrep/ui.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + rules: - id: ui-no-string-extensions patterns: diff --git a/acl/acl.go b/acl/acl.go index 7725278c1..5cc62758d 100644 --- a/acl/acl.go +++ b/acl/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/acl_test.go b/acl/acl_test.go index d60dd5b5c..aadb99863 100644 --- a/acl/acl_test.go +++ b/acl/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/policy.go b/acl/policy.go index 39d886bbe..63d54c827 100644 --- a/acl/policy.go +++ b/acl/policy.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/acl/policy_test.go b/acl/policy_test.go index fdd9a70e7..31a29de2f 100644 --- a/acl/policy_test.go +++ b/acl/policy_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/api/acl.go b/api/acl.go index 18f4db249..78d47895e 100644 --- a/api/acl.go +++ b/api/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/acl_test.go b/api/acl_test.go index bae33831e..27f058dbe 100644 --- a/api/acl_test.go +++ b/api/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/agent.go b/api/agent.go index 61102e563..521215803 100644 --- a/api/agent.go +++ b/api/agent.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/agent_test.go b/api/agent_test.go index 85e4aa64d..8432cdd11 100644 --- a/api/agent_test.go +++ b/api/agent_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/allocations.go b/api/allocations.go index 2d859ffcc..0159a9e12 100644 --- a/api/allocations.go +++ b/api/allocations.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/allocations_exec.go b/api/allocations_exec.go index 25f7955de..5300f5f60 100644 --- a/api/allocations_exec.go +++ b/api/allocations_exec.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/allocations_test.go b/api/allocations_test.go index c1dd43fae..71586e004 100644 --- a/api/allocations_test.go +++ b/api/allocations_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/api.go b/api/api.go index 107457ce1..1bf97f05f 100644 --- a/api/api.go +++ b/api/api.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/api_test.go b/api/api_test.go index c5cb7a205..4c62cf073 100644 --- a/api/api_test.go +++ b/api/api_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/compose_test.go b/api/compose_test.go index b92cabf4e..dba002b09 100644 --- a/api/compose_test.go +++ b/api/compose_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/constraint.go b/api/constraint.go index 7213270e5..9628c7cbc 100644 --- a/api/constraint.go +++ b/api/constraint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api const ( diff --git a/api/constraint_test.go b/api/constraint_test.go index 48887b910..8eb73f9e8 100644 --- a/api/constraint_test.go +++ b/api/constraint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/consul.go b/api/consul.go index 5c8677580..23451e7e0 100644 --- a/api/consul.go +++ b/api/consul.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/consul_test.go b/api/consul_test.go index a0cc39e42..4f1f5bda1 100644 --- a/api/consul_test.go +++ b/api/consul_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/contexts/contexts.go b/api/contexts/contexts.go index f189c0de1..2ce523a72 100644 --- a/api/contexts/contexts.go +++ b/api/contexts/contexts.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package contexts provides constants used with the Nomad Search API. package contexts diff --git a/api/csi.go b/api/csi.go index 557e4c5c0..8a7a63dca 100644 --- a/api/csi.go +++ b/api/csi.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/csi_test.go b/api/csi_test.go index 8b9c41929..45bc523b2 100644 --- a/api/csi_test.go +++ b/api/csi_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/deployments.go b/api/deployments.go index 6ca065379..665d38834 100644 --- a/api/deployments.go +++ b/api/deployments.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/evaluations.go b/api/evaluations.go index 4206ffde6..feac278ca 100644 --- a/api/evaluations.go +++ b/api/evaluations.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/evaluations_test.go b/api/evaluations_test.go index 692d45444..710ea1310 100644 --- a/api/evaluations_test.go +++ b/api/evaluations_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/event_stream.go b/api/event_stream.go index e81d8ef52..60e08fbe1 100644 --- a/api/event_stream.go +++ b/api/event_stream.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/event_stream_test.go b/api/event_stream_test.go index ef9957f51..a1b6c1baf 100644 --- a/api/event_stream_test.go +++ b/api/event_stream_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/fs.go b/api/fs.go index c4b8dd439..f6b831c30 100644 --- a/api/fs.go +++ b/api/fs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/fs_test.go b/api/fs_test.go index 5879d41ab..05f285ad3 100644 --- a/api/fs_test.go +++ b/api/fs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/internal/testutil/discover/discover.go b/api/internal/testutil/discover/discover.go index 70c6c6b28..33f639d2b 100644 --- a/api/internal/testutil/discover/discover.go +++ b/api/internal/testutil/discover/discover.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discover import ( diff --git a/api/internal/testutil/responsewriter.go b/api/internal/testutil/responsewriter.go index 2b2176d93..d6fdc915f 100644 --- a/api/internal/testutil/responsewriter.go +++ b/api/internal/testutil/responsewriter.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/api/internal/testutil/server.go b/api/internal/testutil/server.go index 1297c8a9f..292941619 100644 --- a/api/internal/testutil/server.go +++ b/api/internal/testutil/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil // TestServer is a test helper. It uses a fork/exec model to create diff --git a/api/internal/testutil/slow.go b/api/internal/testutil/slow.go index a5b4f40b2..d002d5b93 100644 --- a/api/internal/testutil/slow.go +++ b/api/internal/testutil/slow.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/api/ioutil.go b/api/ioutil.go index fe3cce5ac..6e7598153 100644 --- a/api/ioutil.go +++ b/api/ioutil.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/ioutil_test.go b/api/ioutil_test.go index c93e3e316..4ef961669 100644 --- a/api/ioutil_test.go +++ b/api/ioutil_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/jobs.go b/api/jobs.go index c1490dc4e..c99a981ef 100644 --- a/api/jobs.go +++ b/api/jobs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/jobs_test.go b/api/jobs_test.go index 416c2c505..78ac58495 100644 --- a/api/jobs_test.go +++ b/api/jobs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/keyring.go b/api/keyring.go index 40814c2f9..d87d8b720 100644 --- a/api/keyring.go +++ b/api/keyring.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/keyring_test.go b/api/keyring_test.go index 6c3a6b132..9320aaf9d 100644 --- a/api/keyring_test.go +++ b/api/keyring_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/namespace.go b/api/namespace.go index 1c6cf02eb..80f9fe88e 100644 --- a/api/namespace.go +++ b/api/namespace.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/namespace_test.go b/api/namespace_test.go index 89a49fadd..9d4d92b32 100644 --- a/api/namespace_test.go +++ b/api/namespace_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/node_meta.go b/api/node_meta.go index 4d5c4ffa5..fac17f090 100644 --- a/api/node_meta.go +++ b/api/node_meta.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // NodeMetaApplyRequest contains the Node meta update. diff --git a/api/node_meta_test.go b/api/node_meta_test.go index 07e3aed4c..334fd8366 100644 --- a/api/node_meta_test.go +++ b/api/node_meta_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/nodes.go b/api/nodes.go index a99143841..dfc5646be 100644 --- a/api/nodes.go +++ b/api/nodes.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/nodes_test.go b/api/nodes_test.go index 2d1b4101e..0ab48a8fd 100644 --- a/api/nodes_test.go +++ b/api/nodes_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/operator.go b/api/operator.go index 579afc3f5..ba8d41cec 100644 --- a/api/operator.go +++ b/api/operator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/operator_autopilot.go b/api/operator_autopilot.go index ddf4efe67..ddc5de74e 100644 --- a/api/operator_autopilot.go +++ b/api/operator_autopilot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/operator_ent_test.go b/api/operator_ent_test.go index 155cd67e4..9bcd4e940 100644 --- a/api/operator_ent_test.go +++ b/api/operator_ent_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build ent package api diff --git a/api/operator_metrics.go b/api/operator_metrics.go index b5577a547..ba0de567a 100644 --- a/api/operator_metrics.go +++ b/api/operator_metrics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/operator_metrics_test.go b/api/operator_metrics_test.go index efe6f5029..c2fabe83a 100644 --- a/api/operator_metrics_test.go +++ b/api/operator_metrics_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/operator_test.go b/api/operator_test.go index 4a7becdb9..34c6bc1f2 100644 --- a/api/operator_test.go +++ b/api/operator_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/quota.go b/api/quota.go index f19e4c0c9..261d3d1d1 100644 --- a/api/quota.go +++ b/api/quota.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/quota_test.go b/api/quota_test.go index ea1e1ce93..a38bf0a3e 100644 --- a/api/quota_test.go +++ b/api/quota_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build ent package api diff --git a/api/raw.go b/api/raw.go index df4ca397d..87f8a9c5e 100644 --- a/api/raw.go +++ b/api/raw.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import "io" diff --git a/api/recommendations.go b/api/recommendations.go index 901dd8b2d..065fc9f95 100644 --- a/api/recommendations.go +++ b/api/recommendations.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // Recommendations is used to query the recommendations endpoints. diff --git a/api/regions.go b/api/regions.go index 98df011d0..76b73c3d2 100644 --- a/api/regions.go +++ b/api/regions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import "sort" diff --git a/api/regions_test.go b/api/regions_test.go index 72e178cc1..8a45eb5db 100644 --- a/api/regions_test.go +++ b/api/regions_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/resources.go b/api/resources.go index 84d9d1905..d41a46293 100644 --- a/api/resources.go +++ b/api/resources.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/resources_test.go b/api/resources_test.go index ac279437e..4cc13f97a 100644 --- a/api/resources_test.go +++ b/api/resources_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/scaling.go b/api/scaling.go index 32259c9f4..e3f49d036 100644 --- a/api/scaling.go +++ b/api/scaling.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api const ( diff --git a/api/scaling_test.go b/api/scaling_test.go index 5801dc567..c5cb45483 100644 --- a/api/scaling_test.go +++ b/api/scaling_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/search.go b/api/search.go index 3b020827a..a06ee1646 100644 --- a/api/search.go +++ b/api/search.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/search_test.go b/api/search_test.go index 3041b74de..ca18f6e5d 100644 --- a/api/search_test.go +++ b/api/search_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/sentinel.go b/api/sentinel.go index 5039abd59..e8a0644ae 100644 --- a/api/sentinel.go +++ b/api/sentinel.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/sentinel_test.go b/api/sentinel_test.go index 22d7708e5..28b1e2825 100644 --- a/api/sentinel_test.go +++ b/api/sentinel_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build ent package api diff --git a/api/services.go b/api/services.go index 8d9b4157b..450236547 100644 --- a/api/services.go +++ b/api/services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/services_test.go b/api/services_test.go index 3246498b6..ab4c78dec 100644 --- a/api/services_test.go +++ b/api/services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/status.go b/api/status.go index da1cb4c02..7a04715b9 100644 --- a/api/status.go +++ b/api/status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // Status is used to query the status-related endpoints. diff --git a/api/status_test.go b/api/status_test.go index 162972188..ab0033a0f 100644 --- a/api/status_test.go +++ b/api/status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/system.go b/api/system.go index 3443cff24..b19eaf8b1 100644 --- a/api/system.go +++ b/api/system.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api // Status is used to query the status-related endpoints. diff --git a/api/system_test.go b/api/system_test.go index 623af15a8..130db0ae7 100644 --- a/api/system_test.go +++ b/api/system_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/tasks.go b/api/tasks.go index ecc14a8ea..e928b3a04 100644 --- a/api/tasks.go +++ b/api/tasks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/tasks_test.go b/api/tasks_test.go index 8ae4b10b8..10b917b43 100644 --- a/api/tasks_test.go +++ b/api/tasks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/util_test.go b/api/util_test.go index 792dcfc82..c77aacea3 100644 --- a/api/util_test.go +++ b/api/util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/utils.go b/api/utils.go index a8e1c02e4..a1cad14cc 100644 --- a/api/utils.go +++ b/api/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/utils_test.go b/api/utils_test.go index ef4d2f524..3ba4302ad 100644 --- a/api/utils_test.go +++ b/api/utils_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/variables.go b/api/variables.go index 4d1c8f392..91dc13cf4 100644 --- a/api/variables.go +++ b/api/variables.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/variables_test.go b/api/variables_test.go index 8bb6b8ea6..c480ae6bb 100644 --- a/api/variables_test.go +++ b/api/variables_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/build_linux_arm.go b/build_linux_arm.go index f774e9b2f..8fcadadc5 100644 --- a/build_linux_arm.go +++ b/build_linux_arm.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux && cgo // +build linux,cgo diff --git a/ci/ports.go b/ci/ports.go index d22f9b1fe..2fd42dd3f 100644 --- a/ci/ports.go +++ b/ci/ports.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ci import ( diff --git a/ci/skip_non_root.go b/ci/skip_non_root.go index 7f161f04b..78a60ac77 100644 --- a/ci/skip_non_root.go +++ b/ci/skip_non_root.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ci import ( diff --git a/ci/slow.go b/ci/slow.go index e2779e51e..7c33edd99 100644 --- a/ci/slow.go +++ b/ci/slow.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ci import ( diff --git a/client/acl.go b/client/acl.go index 324163147..bf2efb29a 100644 --- a/client/acl.go +++ b/client/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/acl_test.go b/client/acl_test.go index b191fde6e..6a7ad0f22 100644 --- a/client/acl_test.go +++ b/client/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/agent_endpoint.go b/client/agent_endpoint.go index 6508fbebe..e0d4636f3 100644 --- a/client/agent_endpoint.go +++ b/client/agent_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/agent_endpoint_test.go b/client/agent_endpoint_test.go index 501f80dd7..86fd0c18e 100644 --- a/client/agent_endpoint_test.go +++ b/client/agent_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/alloc_endpoint.go b/client/alloc_endpoint.go index 4c8dffd71..7b4aa90c4 100644 --- a/client/alloc_endpoint.go +++ b/client/alloc_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/alloc_endpoint_test.go b/client/alloc_endpoint_test.go index 99a818bef..cf59d6ccb 100644 --- a/client/alloc_endpoint_test.go +++ b/client/alloc_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/alloc_watcher_e2e_test.go b/client/alloc_watcher_e2e_test.go index 8cf221895..6dad30d53 100644 --- a/client/alloc_watcher_e2e_test.go +++ b/client/alloc_watcher_e2e_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client_test import ( diff --git a/client/allocdir/alloc_dir.go b/client/allocdir/alloc_dir.go index f0c79225a..637524761 100644 --- a/client/allocdir/alloc_dir.go +++ b/client/allocdir/alloc_dir.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/alloc_dir_test.go b/client/allocdir/alloc_dir_test.go index ffe695692..755abceb2 100644 --- a/client/allocdir/alloc_dir_test.go +++ b/client/allocdir/alloc_dir_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/fs_darwin.go b/client/allocdir/fs_darwin.go index fe29791c4..079205467 100644 --- a/client/allocdir/fs_darwin.go +++ b/client/allocdir/fs_darwin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/fs_freebsd.go b/client/allocdir/fs_freebsd.go index fe29791c4..079205467 100644 --- a/client/allocdir/fs_freebsd.go +++ b/client/allocdir/fs_freebsd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/fs_linux.go b/client/allocdir/fs_linux.go index 5a41f93e0..2cc90419e 100644 --- a/client/allocdir/fs_linux.go +++ b/client/allocdir/fs_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/fs_linux_test.go b/client/allocdir/fs_linux_test.go index 95a8b7f04..a8a99cf9d 100644 --- a/client/allocdir/fs_linux_test.go +++ b/client/allocdir/fs_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/fs_solaris.go b/client/allocdir/fs_solaris.go index 088b58f5b..b8b594b3a 100644 --- a/client/allocdir/fs_solaris.go +++ b/client/allocdir/fs_solaris.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/fs_unix.go b/client/allocdir/fs_unix.go index 0b8a06766..db0d6ac0e 100644 --- a/client/allocdir/fs_unix.go +++ b/client/allocdir/fs_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build unix package allocdir diff --git a/client/allocdir/fs_windows.go b/client/allocdir/fs_windows.go index 56de5bdfc..05232aeeb 100644 --- a/client/allocdir/fs_windows.go +++ b/client/allocdir/fs_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/input/test.go b/client/allocdir/input/test.go index 295c34d9c..61d010f88 100644 --- a/client/allocdir/input/test.go +++ b/client/allocdir/input/test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package test import ( diff --git a/client/allocdir/input/test.hcl b/client/allocdir/input/test.hcl index 64aa42c4d..90f6a92be 100644 --- a/client/allocdir/input/test.hcl +++ b/client/allocdir/input/test.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + test "test" { test = "test" } diff --git a/client/allocdir/task_dir.go b/client/allocdir/task_dir.go index 187b82005..120212bf2 100644 --- a/client/allocdir/task_dir.go +++ b/client/allocdir/task_dir.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/task_dir_linux.go b/client/allocdir/task_dir_linux.go index 9bb57bd0b..38ba3f259 100644 --- a/client/allocdir/task_dir_linux.go +++ b/client/allocdir/task_dir_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/task_dir_nonlinux.go b/client/allocdir/task_dir_nonlinux.go index e69bab056..a2f343f64 100644 --- a/client/allocdir/task_dir_nonlinux.go +++ b/client/allocdir/task_dir_nonlinux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux // +build !linux diff --git a/client/allocdir/task_dir_test.go b/client/allocdir/task_dir_test.go index 885ea9d7e..9b07b6ae4 100644 --- a/client/allocdir/task_dir_test.go +++ b/client/allocdir/task_dir_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allocdir/testing.go b/client/allocdir/testing.go index c534a99d3..2aaaf5967 100644 --- a/client/allocdir/testing.go +++ b/client/allocdir/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocdir import ( diff --git a/client/allochealth/tracker.go b/client/allochealth/tracker.go index 488f2ea9d..4058fe289 100644 --- a/client/allochealth/tracker.go +++ b/client/allochealth/tracker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allochealth import ( diff --git a/client/allochealth/tracker_test.go b/client/allochealth/tracker_test.go index 945654fd4..88e3e0d97 100644 --- a/client/allochealth/tracker_test.go +++ b/client/allochealth/tracker_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allochealth import ( diff --git a/client/allocrunner/alloc_runner.go b/client/allocrunner/alloc_runner.go index 80224b0ec..112eb45b9 100644 --- a/client/allocrunner/alloc_runner.go +++ b/client/allocrunner/alloc_runner.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/alloc_runner_hooks.go b/client/allocrunner/alloc_runner_hooks.go index 5e59c659e..097e6424a 100644 --- a/client/allocrunner/alloc_runner_hooks.go +++ b/client/allocrunner/alloc_runner_hooks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/alloc_runner_test.go b/client/allocrunner/alloc_runner_test.go index e2c4238ed..ddfec1606 100644 --- a/client/allocrunner/alloc_runner_test.go +++ b/client/allocrunner/alloc_runner_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/alloc_runner_unix_test.go b/client/allocrunner/alloc_runner_unix_test.go index 0c2492da2..b22359068 100644 --- a/client/allocrunner/alloc_runner_unix_test.go +++ b/client/allocrunner/alloc_runner_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows package allocrunner diff --git a/client/allocrunner/allocdir_hook.go b/client/allocrunner/allocdir_hook.go index 15628b1cc..60466a3b6 100644 --- a/client/allocrunner/allocdir_hook.go +++ b/client/allocrunner/allocdir_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/cgroup_hook.go b/client/allocrunner/cgroup_hook.go index f73710472..8b14ce848 100644 --- a/client/allocrunner/cgroup_hook.go +++ b/client/allocrunner/cgroup_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/checks_hook.go b/client/allocrunner/checks_hook.go index 1705cc4cb..7228efce8 100644 --- a/client/allocrunner/checks_hook.go +++ b/client/allocrunner/checks_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/checks_hook_test.go b/client/allocrunner/checks_hook_test.go index b204c2e80..972d0a32c 100644 --- a/client/allocrunner/checks_hook_test.go +++ b/client/allocrunner/checks_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/config.go b/client/allocrunner/config.go index 4b9cbc2e2..00738f1d0 100644 --- a/client/allocrunner/config.go +++ b/client/allocrunner/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/consul_grpc_sock_hook.go b/client/allocrunner/consul_grpc_sock_hook.go index 2e6c60f7c..d8152ac3c 100644 --- a/client/allocrunner/consul_grpc_sock_hook.go +++ b/client/allocrunner/consul_grpc_sock_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/consul_grpc_sock_hook_test.go b/client/allocrunner/consul_grpc_sock_hook_test.go index 6e8e1ed06..d7ebc2a05 100644 --- a/client/allocrunner/consul_grpc_sock_hook_test.go +++ b/client/allocrunner/consul_grpc_sock_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/consul_http_sock_hook.go b/client/allocrunner/consul_http_sock_hook.go index fb7a7266c..f5135e59a 100644 --- a/client/allocrunner/consul_http_sock_hook.go +++ b/client/allocrunner/consul_http_sock_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/consul_http_sock_hook_test.go b/client/allocrunner/consul_http_sock_hook_test.go index 9a03a9579..8d5929679 100644 --- a/client/allocrunner/consul_http_sock_hook_test.go +++ b/client/allocrunner/consul_http_sock_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/csi_hook.go b/client/allocrunner/csi_hook.go index 6012fe910..f18d23a16 100644 --- a/client/allocrunner/csi_hook.go +++ b/client/allocrunner/csi_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/csi_hook_test.go b/client/allocrunner/csi_hook_test.go index b960345af..32e0c0d06 100644 --- a/client/allocrunner/csi_hook_test.go +++ b/client/allocrunner/csi_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/group_service_hook.go b/client/allocrunner/group_service_hook.go index 0d37b6301..30a698ecd 100644 --- a/client/allocrunner/group_service_hook.go +++ b/client/allocrunner/group_service_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/group_service_hook_test.go b/client/allocrunner/group_service_hook_test.go index 606dab8f3..e92e4c869 100644 --- a/client/allocrunner/group_service_hook_test.go +++ b/client/allocrunner/group_service_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/health_hook.go b/client/allocrunner/health_hook.go index 397debd46..88008a45b 100644 --- a/client/allocrunner/health_hook.go +++ b/client/allocrunner/health_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/health_hook_test.go b/client/allocrunner/health_hook_test.go index fbbd5b8f7..d703e11e0 100644 --- a/client/allocrunner/health_hook_test.go +++ b/client/allocrunner/health_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/interfaces/runner.go b/client/allocrunner/interfaces/runner.go index 9fe9ed284..575008d76 100644 --- a/client/allocrunner/interfaces/runner.go +++ b/client/allocrunner/interfaces/runner.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package interfaces import ( diff --git a/client/allocrunner/interfaces/runner_lifecycle.go b/client/allocrunner/interfaces/runner_lifecycle.go index 392aae7c8..84bf9aa75 100644 --- a/client/allocrunner/interfaces/runner_lifecycle.go +++ b/client/allocrunner/interfaces/runner_lifecycle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package interfaces import ( diff --git a/client/allocrunner/interfaces/task_lifecycle.go b/client/allocrunner/interfaces/task_lifecycle.go index 3ea51c4a9..20ea8039b 100644 --- a/client/allocrunner/interfaces/task_lifecycle.go +++ b/client/allocrunner/interfaces/task_lifecycle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package interfaces import ( diff --git a/client/allocrunner/migrate_hook.go b/client/allocrunner/migrate_hook.go index b8ca162cb..e2b4da3b0 100644 --- a/client/allocrunner/migrate_hook.go +++ b/client/allocrunner/migrate_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/network_hook.go b/client/allocrunner/network_hook.go index b540d4b5e..d822f6508 100644 --- a/client/allocrunner/network_hook.go +++ b/client/allocrunner/network_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/network_hook_test.go b/client/allocrunner/network_hook_test.go index 5041c2864..07d9cabd7 100644 --- a/client/allocrunner/network_hook_test.go +++ b/client/allocrunner/network_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/network_manager_linux.go b/client/allocrunner/network_manager_linux.go index 915bfd24c..77d0f9192 100644 --- a/client/allocrunner/network_manager_linux.go +++ b/client/allocrunner/network_manager_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/network_manager_linux_test.go b/client/allocrunner/network_manager_linux_test.go index 7d598d74c..56beba8d4 100644 --- a/client/allocrunner/network_manager_linux_test.go +++ b/client/allocrunner/network_manager_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/network_manager_nonlinux.go b/client/allocrunner/network_manager_nonlinux.go index e8a2d4ea5..a7a278936 100644 --- a/client/allocrunner/network_manager_nonlinux.go +++ b/client/allocrunner/network_manager_nonlinux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux // +build !linux diff --git a/client/allocrunner/networking.go b/client/allocrunner/networking.go index 4e508452a..7f1a21d17 100644 --- a/client/allocrunner/networking.go +++ b/client/allocrunner/networking.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/networking_bridge_linux.go b/client/allocrunner/networking_bridge_linux.go index aa166b811..c59bf0131 100644 --- a/client/allocrunner/networking_bridge_linux.go +++ b/client/allocrunner/networking_bridge_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/networking_bridge_linux_test.go b/client/allocrunner/networking_bridge_linux_test.go index 35843b5b6..b59f99b43 100644 --- a/client/allocrunner/networking_bridge_linux_test.go +++ b/client/allocrunner/networking_bridge_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocrunner/networking_cni.go b/client/allocrunner/networking_cni.go index 9eb581b71..cec8330f7 100644 --- a/client/allocrunner/networking_cni.go +++ b/client/allocrunner/networking_cni.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // For now CNI is supported only on Linux. // //go:build linux diff --git a/client/allocrunner/networking_cni_test.go b/client/allocrunner/networking_cni_test.go index 3bc8f8599..d50f8c839 100644 --- a/client/allocrunner/networking_cni_test.go +++ b/client/allocrunner/networking_cni_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package allocrunner diff --git a/client/allocrunner/state/state.go b/client/allocrunner/state/state.go index f1316cc57..c3f245eed 100644 --- a/client/allocrunner/state/state.go +++ b/client/allocrunner/state/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/allocrunner/tasklifecycle/coordinator.go b/client/allocrunner/tasklifecycle/coordinator.go index 90a8e7fc0..ee25ac495 100644 --- a/client/allocrunner/tasklifecycle/coordinator.go +++ b/client/allocrunner/tasklifecycle/coordinator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package tasklifecycle import ( diff --git a/client/allocrunner/tasklifecycle/coordinator_test.go b/client/allocrunner/tasklifecycle/coordinator_test.go index 3f86dcc99..226c2ff40 100644 --- a/client/allocrunner/tasklifecycle/coordinator_test.go +++ b/client/allocrunner/tasklifecycle/coordinator_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package tasklifecycle import ( diff --git a/client/allocrunner/tasklifecycle/doc.go b/client/allocrunner/tasklifecycle/doc.go index 95d806fe7..6ecc55753 100644 --- a/client/allocrunner/tasklifecycle/doc.go +++ b/client/allocrunner/tasklifecycle/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + /* Package tasklifecycle manages the execution order of tasks based on their lifecycle configuration. Its main structs are the Coordinator and the Gate. diff --git a/client/allocrunner/tasklifecycle/gate.go b/client/allocrunner/tasklifecycle/gate.go index 02d96b297..09d97cbc8 100644 --- a/client/allocrunner/tasklifecycle/gate.go +++ b/client/allocrunner/tasklifecycle/gate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package tasklifecycle const ( diff --git a/client/allocrunner/tasklifecycle/gate_test.go b/client/allocrunner/tasklifecycle/gate_test.go index 4ff3a2f14..f54f1ecd8 100644 --- a/client/allocrunner/tasklifecycle/gate_test.go +++ b/client/allocrunner/tasklifecycle/gate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package tasklifecycle import ( diff --git a/client/allocrunner/tasklifecycle/testing.go b/client/allocrunner/tasklifecycle/testing.go index 7e7ee0eb1..0ac45b87e 100644 --- a/client/allocrunner/tasklifecycle/testing.go +++ b/client/allocrunner/tasklifecycle/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package tasklifecycle import ( diff --git a/client/allocrunner/taskrunner/api_hook.go b/client/allocrunner/taskrunner/api_hook.go index 003d5fecd..0beba4c60 100644 --- a/client/allocrunner/taskrunner/api_hook.go +++ b/client/allocrunner/taskrunner/api_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/api_hook_test.go b/client/allocrunner/taskrunner/api_hook_test.go index 164d4433d..2405d69e0 100644 --- a/client/allocrunner/taskrunner/api_hook_test.go +++ b/client/allocrunner/taskrunner/api_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/artifact_hook.go b/client/allocrunner/taskrunner/artifact_hook.go index de31ad7ff..2c9e891d0 100644 --- a/client/allocrunner/taskrunner/artifact_hook.go +++ b/client/allocrunner/taskrunner/artifact_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/artifact_hook_test.go b/client/allocrunner/taskrunner/artifact_hook_test.go index 20fab5509..51fd5a0cd 100644 --- a/client/allocrunner/taskrunner/artifact_hook_test.go +++ b/client/allocrunner/taskrunner/artifact_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/connect_native_hook.go b/client/allocrunner/taskrunner/connect_native_hook.go index 628e87d61..0a7febe2a 100644 --- a/client/allocrunner/taskrunner/connect_native_hook.go +++ b/client/allocrunner/taskrunner/connect_native_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/connect_native_hook_test.go b/client/allocrunner/taskrunner/connect_native_hook_test.go index da8b0f727..72202f0a6 100644 --- a/client/allocrunner/taskrunner/connect_native_hook_test.go +++ b/client/allocrunner/taskrunner/connect_native_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/device_hook.go b/client/allocrunner/taskrunner/device_hook.go index 4c7faada5..55bbcc68e 100644 --- a/client/allocrunner/taskrunner/device_hook.go +++ b/client/allocrunner/taskrunner/device_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/device_hook_test.go b/client/allocrunner/taskrunner/device_hook_test.go index 9723f0de5..3da6874b6 100644 --- a/client/allocrunner/taskrunner/device_hook_test.go +++ b/client/allocrunner/taskrunner/device_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/dispatch_hook.go b/client/allocrunner/taskrunner/dispatch_hook.go index 35dc9141d..77c11500f 100644 --- a/client/allocrunner/taskrunner/dispatch_hook.go +++ b/client/allocrunner/taskrunner/dispatch_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/dispatch_hook_test.go b/client/allocrunner/taskrunner/dispatch_hook_test.go index 92adf1338..483895118 100644 --- a/client/allocrunner/taskrunner/dispatch_hook_test.go +++ b/client/allocrunner/taskrunner/dispatch_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/driver_handle.go b/client/allocrunner/taskrunner/driver_handle.go index 73a376c8a..2239bd8e9 100644 --- a/client/allocrunner/taskrunner/driver_handle.go +++ b/client/allocrunner/taskrunner/driver_handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/envoy_bootstrap_hook.go b/client/allocrunner/taskrunner/envoy_bootstrap_hook.go index 87e7c1d35..975a67535 100644 --- a/client/allocrunner/taskrunner/envoy_bootstrap_hook.go +++ b/client/allocrunner/taskrunner/envoy_bootstrap_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/envoy_bootstrap_hook_test.go b/client/allocrunner/taskrunner/envoy_bootstrap_hook_test.go index b331fc340..0499c5e2b 100644 --- a/client/allocrunner/taskrunner/envoy_bootstrap_hook_test.go +++ b/client/allocrunner/taskrunner/envoy_bootstrap_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/client/allocrunner/taskrunner/envoy_version_hook.go b/client/allocrunner/taskrunner/envoy_version_hook.go index 77c0d47ff..0554fc7b5 100644 --- a/client/allocrunner/taskrunner/envoy_version_hook.go +++ b/client/allocrunner/taskrunner/envoy_version_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/envoy_version_hook_test.go b/client/allocrunner/taskrunner/envoy_version_hook_test.go index a45b77ade..a68f7a27e 100644 --- a/client/allocrunner/taskrunner/envoy_version_hook_test.go +++ b/client/allocrunner/taskrunner/envoy_version_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/errors.go b/client/allocrunner/taskrunner/errors.go index a3503757c..7707ceb43 100644 --- a/client/allocrunner/taskrunner/errors.go +++ b/client/allocrunner/taskrunner/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/errors_test.go b/client/allocrunner/taskrunner/errors_test.go index 15ad61990..64e737ff8 100644 --- a/client/allocrunner/taskrunner/errors_test.go +++ b/client/allocrunner/taskrunner/errors_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/getter/error.go b/client/allocrunner/taskrunner/getter/error.go index 5e84ecb0c..41574ba6c 100644 --- a/client/allocrunner/taskrunner/getter/error.go +++ b/client/allocrunner/taskrunner/getter/error.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter // Error is a RecoverableError used to include the URL along with the underlying diff --git a/client/allocrunner/taskrunner/getter/error_test.go b/client/allocrunner/taskrunner/getter/error_test.go index 94d90940f..f9600c52c 100644 --- a/client/allocrunner/taskrunner/getter/error_test.go +++ b/client/allocrunner/taskrunner/getter/error_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client/allocrunner/taskrunner/getter/params.go b/client/allocrunner/taskrunner/getter/params.go index d92f939cd..d2e1b8a23 100644 --- a/client/allocrunner/taskrunner/getter/params.go +++ b/client/allocrunner/taskrunner/getter/params.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client/allocrunner/taskrunner/getter/params_test.go b/client/allocrunner/taskrunner/getter/params_test.go index a2f880296..15f9b77c8 100644 --- a/client/allocrunner/taskrunner/getter/params_test.go +++ b/client/allocrunner/taskrunner/getter/params_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client/allocrunner/taskrunner/getter/replacer_test.go b/client/allocrunner/taskrunner/getter/replacer_test.go index 3eb5d0ee7..930d9a1cc 100644 --- a/client/allocrunner/taskrunner/getter/replacer_test.go +++ b/client/allocrunner/taskrunner/getter/replacer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client/allocrunner/taskrunner/getter/sandbox.go b/client/allocrunner/taskrunner/getter/sandbox.go index d111becab..3b6318aa4 100644 --- a/client/allocrunner/taskrunner/getter/sandbox.go +++ b/client/allocrunner/taskrunner/getter/sandbox.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client/allocrunner/taskrunner/getter/sandbox_test.go b/client/allocrunner/taskrunner/getter/sandbox_test.go index 7ffe83d69..357f9b4b3 100644 --- a/client/allocrunner/taskrunner/getter/sandbox_test.go +++ b/client/allocrunner/taskrunner/getter/sandbox_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client/allocrunner/taskrunner/getter/testing.go b/client/allocrunner/taskrunner/getter/testing.go index 4daf4d056..fd268cb16 100644 --- a/client/allocrunner/taskrunner/getter/testing.go +++ b/client/allocrunner/taskrunner/getter/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client/allocrunner/taskrunner/getter/util.go b/client/allocrunner/taskrunner/getter/util.go index 6422c95c2..f5b24ac15 100644 --- a/client/allocrunner/taskrunner/getter/util.go +++ b/client/allocrunner/taskrunner/getter/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client/allocrunner/taskrunner/getter/util_default.go b/client/allocrunner/taskrunner/getter/util_default.go index be1facdb4..06b8e4a62 100644 --- a/client/allocrunner/taskrunner/getter/util_default.go +++ b/client/allocrunner/taskrunner/getter/util_default.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux && !windows package getter diff --git a/client/allocrunner/taskrunner/getter/util_linux.go b/client/allocrunner/taskrunner/getter/util_linux.go index c034a08ac..a45e2999c 100644 --- a/client/allocrunner/taskrunner/getter/util_linux.go +++ b/client/allocrunner/taskrunner/getter/util_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package getter diff --git a/client/allocrunner/taskrunner/getter/util_linux_test.go b/client/allocrunner/taskrunner/getter/util_linux_test.go index 863ea01eb..d3d0e5171 100644 --- a/client/allocrunner/taskrunner/getter/util_linux_test.go +++ b/client/allocrunner/taskrunner/getter/util_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package getter diff --git a/client/allocrunner/taskrunner/getter/util_test.go b/client/allocrunner/taskrunner/getter/util_test.go index 73c382d03..ccdc0d7f9 100644 --- a/client/allocrunner/taskrunner/getter/util_test.go +++ b/client/allocrunner/taskrunner/getter/util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client/allocrunner/taskrunner/getter/util_windows.go b/client/allocrunner/taskrunner/getter/util_windows.go index f22b58e91..889dd0f43 100644 --- a/client/allocrunner/taskrunner/getter/util_windows.go +++ b/client/allocrunner/taskrunner/getter/util_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows package getter diff --git a/client/allocrunner/taskrunner/getter/z_getter_cmd.go b/client/allocrunner/taskrunner/getter/z_getter_cmd.go index 2451c65c5..47afe2b18 100644 --- a/client/allocrunner/taskrunner/getter/z_getter_cmd.go +++ b/client/allocrunner/taskrunner/getter/z_getter_cmd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package getter import ( diff --git a/client/allocrunner/taskrunner/identity_hook.go b/client/allocrunner/taskrunner/identity_hook.go index c45d0b9e6..f71cd8d85 100644 --- a/client/allocrunner/taskrunner/identity_hook.go +++ b/client/allocrunner/taskrunner/identity_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/identity_hook_test.go b/client/allocrunner/taskrunner/identity_hook_test.go index e1d9a6f47..8738cdfd0 100644 --- a/client/allocrunner/taskrunner/identity_hook_test.go +++ b/client/allocrunner/taskrunner/identity_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import "github.com/hashicorp/nomad/client/allocrunner/interfaces" diff --git a/client/allocrunner/taskrunner/interfaces/events.go b/client/allocrunner/taskrunner/interfaces/events.go index dd2fc3d07..b718de74d 100644 --- a/client/allocrunner/taskrunner/interfaces/events.go +++ b/client/allocrunner/taskrunner/interfaces/events.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package interfaces import "github.com/hashicorp/nomad/nomad/structs" diff --git a/client/allocrunner/taskrunner/interfaces/handle.go b/client/allocrunner/taskrunner/interfaces/handle.go index 3fafaba15..6c5a6c2d9 100644 --- a/client/allocrunner/taskrunner/interfaces/handle.go +++ b/client/allocrunner/taskrunner/interfaces/handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package interfaces import ( diff --git a/client/allocrunner/taskrunner/interfaces/lifecycle.go b/client/allocrunner/taskrunner/interfaces/lifecycle.go index 325a13e38..c6c04e177 100644 --- a/client/allocrunner/taskrunner/interfaces/lifecycle.go +++ b/client/allocrunner/taskrunner/interfaces/lifecycle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package interfaces import ( diff --git a/client/allocrunner/taskrunner/lazy_handle.go b/client/allocrunner/taskrunner/lazy_handle.go index 24b044acf..bd7b532a8 100644 --- a/client/allocrunner/taskrunner/lazy_handle.go +++ b/client/allocrunner/taskrunner/lazy_handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/lifecycle.go b/client/allocrunner/taskrunner/lifecycle.go index 90c3d3718..b0be141c1 100644 --- a/client/allocrunner/taskrunner/lifecycle.go +++ b/client/allocrunner/taskrunner/lifecycle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/logmon_hook.go b/client/allocrunner/taskrunner/logmon_hook.go index b98392959..7c510a041 100644 --- a/client/allocrunner/taskrunner/logmon_hook.go +++ b/client/allocrunner/taskrunner/logmon_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/logmon_hook_test.go b/client/allocrunner/taskrunner/logmon_hook_test.go index bf5f9e7f0..4f4cdb505 100644 --- a/client/allocrunner/taskrunner/logmon_hook_test.go +++ b/client/allocrunner/taskrunner/logmon_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/logmon_hook_unix_test.go b/client/allocrunner/taskrunner/logmon_hook_unix_test.go index f98c01b06..a828036de 100644 --- a/client/allocrunner/taskrunner/logmon_hook_unix_test.go +++ b/client/allocrunner/taskrunner/logmon_hook_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/client/allocrunner/taskrunner/plugin_supervisor_hook.go b/client/allocrunner/taskrunner/plugin_supervisor_hook.go index a21c632f8..98dc30b82 100644 --- a/client/allocrunner/taskrunner/plugin_supervisor_hook.go +++ b/client/allocrunner/taskrunner/plugin_supervisor_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/remotetask_hook.go b/client/allocrunner/taskrunner/remotetask_hook.go index 4fd9a6376..afa7836a0 100644 --- a/client/allocrunner/taskrunner/remotetask_hook.go +++ b/client/allocrunner/taskrunner/remotetask_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/restarts/restarts.go b/client/allocrunner/taskrunner/restarts/restarts.go index 0e39e4715..63b431b3d 100644 --- a/client/allocrunner/taskrunner/restarts/restarts.go +++ b/client/allocrunner/taskrunner/restarts/restarts.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package restarts import ( diff --git a/client/allocrunner/taskrunner/restarts/restarts_test.go b/client/allocrunner/taskrunner/restarts/restarts_test.go index f679e69f9..e0f702a96 100644 --- a/client/allocrunner/taskrunner/restarts/restarts_test.go +++ b/client/allocrunner/taskrunner/restarts/restarts_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package restarts import ( diff --git a/client/allocrunner/taskrunner/script_check_hook.go b/client/allocrunner/taskrunner/script_check_hook.go index e556b6f72..5a826ff91 100644 --- a/client/allocrunner/taskrunner/script_check_hook.go +++ b/client/allocrunner/taskrunner/script_check_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/script_check_hook_test.go b/client/allocrunner/taskrunner/script_check_hook_test.go index cfe127bb2..00c38c604 100644 --- a/client/allocrunner/taskrunner/script_check_hook_test.go +++ b/client/allocrunner/taskrunner/script_check_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/service_hook.go b/client/allocrunner/taskrunner/service_hook.go index 2f506c702..3de2b384f 100644 --- a/client/allocrunner/taskrunner/service_hook.go +++ b/client/allocrunner/taskrunner/service_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/service_hook_test.go b/client/allocrunner/taskrunner/service_hook_test.go index 6125f65b8..d8ab5e27f 100644 --- a/client/allocrunner/taskrunner/service_hook_test.go +++ b/client/allocrunner/taskrunner/service_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/sids_hook.go b/client/allocrunner/taskrunner/sids_hook.go index fa087baed..c1ff39ff9 100644 --- a/client/allocrunner/taskrunner/sids_hook.go +++ b/client/allocrunner/taskrunner/sids_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/sids_hook_test.go b/client/allocrunner/taskrunner/sids_hook_test.go index 7b22f231c..cfec8d5b7 100644 --- a/client/allocrunner/taskrunner/sids_hook_test.go +++ b/client/allocrunner/taskrunner/sids_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/client/allocrunner/taskrunner/state/state.go b/client/allocrunner/taskrunner/state/state.go index cda144003..195d3b7c3 100644 --- a/client/allocrunner/taskrunner/state/state.go +++ b/client/allocrunner/taskrunner/state/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/allocrunner/taskrunner/stats_hook.go b/client/allocrunner/taskrunner/stats_hook.go index 93359b4fe..1968e99fa 100644 --- a/client/allocrunner/taskrunner/stats_hook.go +++ b/client/allocrunner/taskrunner/stats_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/stats_hook_test.go b/client/allocrunner/taskrunner/stats_hook_test.go index 2ab9f6569..d9aea09b6 100644 --- a/client/allocrunner/taskrunner/stats_hook_test.go +++ b/client/allocrunner/taskrunner/stats_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/task_dir_hook.go b/client/allocrunner/taskrunner/task_dir_hook.go index ac2d4338d..794c54a97 100644 --- a/client/allocrunner/taskrunner/task_dir_hook.go +++ b/client/allocrunner/taskrunner/task_dir_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/task_runner.go b/client/allocrunner/taskrunner/task_runner.go index aae6a314d..aaf3c010a 100644 --- a/client/allocrunner/taskrunner/task_runner.go +++ b/client/allocrunner/taskrunner/task_runner.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/task_runner_getters.go b/client/allocrunner/taskrunner/task_runner_getters.go index 2620435b4..dd51c13fb 100644 --- a/client/allocrunner/taskrunner/task_runner_getters.go +++ b/client/allocrunner/taskrunner/task_runner_getters.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/task_runner_hooks.go b/client/allocrunner/taskrunner/task_runner_hooks.go index 40ea084ba..1a3d844ac 100644 --- a/client/allocrunner/taskrunner/task_runner_hooks.go +++ b/client/allocrunner/taskrunner/task_runner_hooks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/task_runner_test.go b/client/allocrunner/taskrunner/task_runner_test.go index 822ed1ae3..cfaf60fe9 100644 --- a/client/allocrunner/taskrunner/task_runner_test.go +++ b/client/allocrunner/taskrunner/task_runner_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/tasklet.go b/client/allocrunner/taskrunner/tasklet.go index 0f6d2e578..90b543557 100644 --- a/client/allocrunner/taskrunner/tasklet.go +++ b/client/allocrunner/taskrunner/tasklet.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/tasklet_test.go b/client/allocrunner/taskrunner/tasklet_test.go index ea0cf2d7d..28e4742af 100644 --- a/client/allocrunner/taskrunner/tasklet_test.go +++ b/client/allocrunner/taskrunner/tasklet_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/template/template.go b/client/allocrunner/taskrunner/template/template.go index 8538908cc..f24b87881 100644 --- a/client/allocrunner/taskrunner/template/template.go +++ b/client/allocrunner/taskrunner/template/template.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package template import ( diff --git a/client/allocrunner/taskrunner/template/template_test.go b/client/allocrunner/taskrunner/template/template_test.go index 2c07ae596..ccdc3b4cc 100644 --- a/client/allocrunner/taskrunner/template/template_test.go +++ b/client/allocrunner/taskrunner/template/template_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package template import ( diff --git a/client/allocrunner/taskrunner/template_hook.go b/client/allocrunner/taskrunner/template_hook.go index 315145433..3f3cc8e7a 100644 --- a/client/allocrunner/taskrunner/template_hook.go +++ b/client/allocrunner/taskrunner/template_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/testdata/noop.sh b/client/allocrunner/taskrunner/testdata/noop.sh index 8832c26a2..9c2c38fb1 100644 --- a/client/allocrunner/taskrunner/testdata/noop.sh +++ b/client/allocrunner/taskrunner/testdata/noop.sh @@ -1,2 +1,5 @@ #!/bin/sh +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + echo "ok" diff --git a/client/allocrunner/taskrunner/validate_hook.go b/client/allocrunner/taskrunner/validate_hook.go index 0a22f90e9..aa7679c63 100644 --- a/client/allocrunner/taskrunner/validate_hook.go +++ b/client/allocrunner/taskrunner/validate_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/validate_hook_test.go b/client/allocrunner/taskrunner/validate_hook_test.go index d346b6c47..18ab98a92 100644 --- a/client/allocrunner/taskrunner/validate_hook_test.go +++ b/client/allocrunner/taskrunner/validate_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/vault_hook.go b/client/allocrunner/taskrunner/vault_hook.go index 87c76653f..2a2ce87af 100644 --- a/client/allocrunner/taskrunner/vault_hook.go +++ b/client/allocrunner/taskrunner/vault_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/vault_hook_test.go b/client/allocrunner/taskrunner/vault_hook_test.go index 20871b581..74e0adefb 100644 --- a/client/allocrunner/taskrunner/vault_hook_test.go +++ b/client/allocrunner/taskrunner/vault_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import "github.com/hashicorp/nomad/client/allocrunner/interfaces" diff --git a/client/allocrunner/taskrunner/volume_hook.go b/client/allocrunner/taskrunner/volume_hook.go index 54819e3ea..4b771c969 100644 --- a/client/allocrunner/taskrunner/volume_hook.go +++ b/client/allocrunner/taskrunner/volume_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/taskrunner/volume_hook_test.go b/client/allocrunner/taskrunner/volume_hook_test.go index 7b4d27ca0..83d3b15b7 100644 --- a/client/allocrunner/taskrunner/volume_hook_test.go +++ b/client/allocrunner/taskrunner/volume_hook_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskrunner import ( diff --git a/client/allocrunner/testing.go b/client/allocrunner/testing.go index 44dc79a59..5cd24881d 100644 --- a/client/allocrunner/testing.go +++ b/client/allocrunner/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !release // +build !release diff --git a/client/allocrunner/upstream_allocs_hook.go b/client/allocrunner/upstream_allocs_hook.go index 4da0d0840..4cc23a48d 100644 --- a/client/allocrunner/upstream_allocs_hook.go +++ b/client/allocrunner/upstream_allocs_hook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocrunner import ( diff --git a/client/allocwatcher/alloc_watcher.go b/client/allocwatcher/alloc_watcher.go index 700f9b6b2..cf9448750 100644 --- a/client/allocwatcher/alloc_watcher.go +++ b/client/allocwatcher/alloc_watcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocwatcher import ( diff --git a/client/allocwatcher/alloc_watcher_test.go b/client/allocwatcher/alloc_watcher_test.go index 8d74fee06..350efbef0 100644 --- a/client/allocwatcher/alloc_watcher_test.go +++ b/client/allocwatcher/alloc_watcher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocwatcher import ( diff --git a/client/allocwatcher/alloc_watcher_unix_test.go b/client/allocwatcher/alloc_watcher_unix_test.go index 76a9f752b..676c48d48 100644 --- a/client/allocwatcher/alloc_watcher_unix_test.go +++ b/client/allocwatcher/alloc_watcher_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/client/allocwatcher/doc.go b/client/allocwatcher/doc.go index 0580784c9..640fad67e 100644 --- a/client/allocwatcher/doc.go +++ b/client/allocwatcher/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package allocwatcher allows blocking until another allocation - whether // running locally or remotely - completes and migrates the allocation // directory if necessary. diff --git a/client/allocwatcher/group_alloc_watcher.go b/client/allocwatcher/group_alloc_watcher.go index 087e6256f..96d4afb6f 100644 --- a/client/allocwatcher/group_alloc_watcher.go +++ b/client/allocwatcher/group_alloc_watcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocwatcher import ( diff --git a/client/allocwatcher/group_alloc_watcher_test.go b/client/allocwatcher/group_alloc_watcher_test.go index 79eeaf07e..882754663 100644 --- a/client/allocwatcher/group_alloc_watcher_test.go +++ b/client/allocwatcher/group_alloc_watcher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package allocwatcher import ( diff --git a/client/client.go b/client/client.go index fac60242f..bd1e8f37d 100644 --- a/client/client.go +++ b/client/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/client_stats_endpoint.go b/client/client_stats_endpoint.go index 630707ca6..bf5ff517c 100644 --- a/client/client_stats_endpoint.go +++ b/client/client_stats_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/client_stats_endpoint_test.go b/client/client_stats_endpoint_test.go index 03f6b7717..c302ad18a 100644 --- a/client/client_stats_endpoint_test.go +++ b/client/client_stats_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/client_test.go b/client/client_test.go index 805f59431..bdff73011 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/config/artifact.go b/client/config/artifact.go index 0d7eaf913..df83408e5 100644 --- a/client/config/artifact.go +++ b/client/config/artifact.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/client/config/artifact_test.go b/client/config/artifact_test.go index ba2365c2d..4bd3bd85e 100644 --- a/client/config/artifact_test.go +++ b/client/config/artifact_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/client/config/config.go b/client/config/config.go index 466230ddc..0e32db3fa 100644 --- a/client/config/config.go +++ b/client/config/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/client/config/config_test.go b/client/config/config_test.go index 3dacc21ed..a8ef46be9 100644 --- a/client/config/config_test.go +++ b/client/config/config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/client/config/testing.go b/client/config/testing.go index 171978b3b..687c94507 100644 --- a/client/config/testing.go +++ b/client/config/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/client/consul/consul.go b/client/consul/consul.go index 05f77418c..16edba9eb 100644 --- a/client/consul/consul.go +++ b/client/consul/consul.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/client/consul/identities.go b/client/consul/identities.go index e07dfaf33..ee08f3a49 100644 --- a/client/consul/identities.go +++ b/client/consul/identities.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/client/consul/identities_test.go b/client/consul/identities_test.go index b41f3520e..d46a00459 100644 --- a/client/consul/identities_test.go +++ b/client/consul/identities_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/client/consul/identities_testing.go b/client/consul/identities_testing.go index a091c0060..c33dd003b 100644 --- a/client/consul/identities_testing.go +++ b/client/consul/identities_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/client/csi_endpoint.go b/client/csi_endpoint.go index abbe0b8e3..32891daab 100644 --- a/client/csi_endpoint.go +++ b/client/csi_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/csi_endpoint_test.go b/client/csi_endpoint_test.go index 7b6df1534..4fc58b97b 100644 --- a/client/csi_endpoint_test.go +++ b/client/csi_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/devicemanager/instance.go b/client/devicemanager/instance.go index b7d8a8464..89553fed7 100644 --- a/client/devicemanager/instance.go +++ b/client/devicemanager/instance.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package devicemanager import ( diff --git a/client/devicemanager/manager.go b/client/devicemanager/manager.go index 95f915d8f..1d38329a2 100644 --- a/client/devicemanager/manager.go +++ b/client/devicemanager/manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package devicemanager is used to manage device plugins package devicemanager diff --git a/client/devicemanager/manager_test.go b/client/devicemanager/manager_test.go index 337f5c795..782de18e7 100644 --- a/client/devicemanager/manager_test.go +++ b/client/devicemanager/manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package devicemanager import ( diff --git a/client/devicemanager/state/state.go b/client/devicemanager/state/state.go index 20eb789f6..a20d62688 100644 --- a/client/devicemanager/state/state.go +++ b/client/devicemanager/state/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import pstructs "github.com/hashicorp/nomad/plugins/shared/structs" diff --git a/client/devicemanager/testing.go b/client/devicemanager/testing.go index 602d9007d..527a837af 100644 --- a/client/devicemanager/testing.go +++ b/client/devicemanager/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package devicemanager import ( diff --git a/client/devicemanager/utils.go b/client/devicemanager/utils.go index cb9083db0..356d580fe 100644 --- a/client/devicemanager/utils.go +++ b/client/devicemanager/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package devicemanager import ( diff --git a/client/driver_manager_test.go b/client/driver_manager_test.go index 996b64ff1..8252e37f4 100644 --- a/client/driver_manager_test.go +++ b/client/driver_manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/dynamicplugins/registry.go b/client/dynamicplugins/registry.go index 497459731..72edb3cf2 100644 --- a/client/dynamicplugins/registry.go +++ b/client/dynamicplugins/registry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // dynamicplugins is a package that manages dynamic plugins in Nomad. // It exposes a registry that allows for plugins to be registered/deregistered // and also allows subscribers to receive real time updates of these events. diff --git a/client/dynamicplugins/registry_test.go b/client/dynamicplugins/registry_test.go index e425cd170..cac0eeaba 100644 --- a/client/dynamicplugins/registry_test.go +++ b/client/dynamicplugins/registry_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dynamicplugins import ( diff --git a/client/enterprise_client_oss.go b/client/enterprise_client_oss.go index 0d68f7e83..f1a174db7 100644 --- a/client/enterprise_client_oss.go +++ b/client/enterprise_client_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/client/fingerprint/arch.go b/client/fingerprint/arch.go index 5d309a1c0..bcc4e458a 100644 --- a/client/fingerprint/arch.go +++ b/client/fingerprint/arch.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/arch_test.go b/client/fingerprint/arch_test.go index 9861b95a7..94bdbe0b2 100644 --- a/client/fingerprint/arch_test.go +++ b/client/fingerprint/arch_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/bridge.go b/client/fingerprint/bridge.go index fd58386be..deb2c8ddc 100644 --- a/client/fingerprint/bridge.go +++ b/client/fingerprint/bridge.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import log "github.com/hashicorp/go-hclog" diff --git a/client/fingerprint/bridge_default.go b/client/fingerprint/bridge_default.go index 942414c90..c495da3bc 100644 --- a/client/fingerprint/bridge_default.go +++ b/client/fingerprint/bridge_default.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package fingerprint diff --git a/client/fingerprint/bridge_linux.go b/client/fingerprint/bridge_linux.go index afa58b027..e351c384b 100644 --- a/client/fingerprint/bridge_linux.go +++ b/client/fingerprint/bridge_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package fingerprint diff --git a/client/fingerprint/bridge_linux_test.go b/client/fingerprint/bridge_linux_test.go index ce1f8f355..37d0acd5e 100644 --- a/client/fingerprint/bridge_linux_test.go +++ b/client/fingerprint/bridge_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/cgroup.go b/client/fingerprint/cgroup.go index ce88fdc83..d3bdd72d3 100644 --- a/client/fingerprint/cgroup.go +++ b/client/fingerprint/cgroup.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/cgroup_default.go b/client/fingerprint/cgroup_default.go index f1e53c603..4d13af63b 100644 --- a/client/fingerprint/cgroup_default.go +++ b/client/fingerprint/cgroup_default.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package fingerprint diff --git a/client/fingerprint/cgroup_linux.go b/client/fingerprint/cgroup_linux.go index e4decda8a..8a805b69a 100644 --- a/client/fingerprint/cgroup_linux.go +++ b/client/fingerprint/cgroup_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package fingerprint diff --git a/client/fingerprint/cgroup_test.go b/client/fingerprint/cgroup_test.go index 23205169a..4039f195a 100644 --- a/client/fingerprint/cgroup_test.go +++ b/client/fingerprint/cgroup_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package fingerprint diff --git a/client/fingerprint/cni.go b/client/fingerprint/cni.go index 351d7b3d2..f4f2aa1e3 100644 --- a/client/fingerprint/cni.go +++ b/client/fingerprint/cni.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/cni_test.go b/client/fingerprint/cni_test.go index 90186da0e..e9ddae90a 100644 --- a/client/fingerprint/cni_test.go +++ b/client/fingerprint/cni_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/consul.go b/client/fingerprint/consul.go index 15f8ce25e..45ea6f94e 100644 --- a/client/fingerprint/consul.go +++ b/client/fingerprint/consul.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/consul_test.go b/client/fingerprint/consul_test.go index 0d011ad2c..2555c4a8b 100644 --- a/client/fingerprint/consul_test.go +++ b/client/fingerprint/consul_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/cpu.go b/client/fingerprint/cpu.go index b4943549c..c6c69e3b1 100644 --- a/client/fingerprint/cpu.go +++ b/client/fingerprint/cpu.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/cpu_darwin_test.go b/client/fingerprint/cpu_darwin_test.go index aa5ce13ae..c4214744f 100644 --- a/client/fingerprint/cpu_darwin_test.go +++ b/client/fingerprint/cpu_darwin_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin && arm64 && cgo package fingerprint diff --git a/client/fingerprint/cpu_default.go b/client/fingerprint/cpu_default.go index 40bcf43cd..118fb8eb4 100644 --- a/client/fingerprint/cpu_default.go +++ b/client/fingerprint/cpu_default.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package fingerprint diff --git a/client/fingerprint/cpu_default_test.go b/client/fingerprint/cpu_default_test.go index 7e0bbf48c..f9ef40bf1 100644 --- a/client/fingerprint/cpu_default_test.go +++ b/client/fingerprint/cpu_default_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !darwin || !arm64 || !cgo package fingerprint diff --git a/client/fingerprint/cpu_linux.go b/client/fingerprint/cpu_linux.go index aea8c3472..b7795693a 100644 --- a/client/fingerprint/cpu_linux.go +++ b/client/fingerprint/cpu_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/env_aws.go b/client/fingerprint/env_aws.go index b39317d1a..b7e1bf706 100644 --- a/client/fingerprint/env_aws.go +++ b/client/fingerprint/env_aws.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/env_aws_test.go b/client/fingerprint/env_aws_test.go index c346b788d..35f756bb2 100644 --- a/client/fingerprint/env_aws_test.go +++ b/client/fingerprint/env_aws_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/env_azure.go b/client/fingerprint/env_azure.go index c49b6cfd7..92948978f 100644 --- a/client/fingerprint/env_azure.go +++ b/client/fingerprint/env_azure.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/env_azure_test.go b/client/fingerprint/env_azure_test.go index bc6d7dd45..54605b748 100644 --- a/client/fingerprint/env_azure_test.go +++ b/client/fingerprint/env_azure_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/env_digitalocean.go b/client/fingerprint/env_digitalocean.go index 849617798..0aa65b0f6 100644 --- a/client/fingerprint/env_digitalocean.go +++ b/client/fingerprint/env_digitalocean.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/env_digitalocean_test.go b/client/fingerprint/env_digitalocean_test.go index a7d82eaf6..cb8c61257 100644 --- a/client/fingerprint/env_digitalocean_test.go +++ b/client/fingerprint/env_digitalocean_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/env_gce.go b/client/fingerprint/env_gce.go index 9a4900093..4e8095883 100644 --- a/client/fingerprint/env_gce.go +++ b/client/fingerprint/env_gce.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/env_gce_test.go b/client/fingerprint/env_gce_test.go index c4228bcad..536135394 100644 --- a/client/fingerprint/env_gce_test.go +++ b/client/fingerprint/env_gce_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/fingerprint.go b/client/fingerprint/fingerprint.go index c15448b12..3ade44484 100644 --- a/client/fingerprint/fingerprint.go +++ b/client/fingerprint/fingerprint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/fingerprint_default.go b/client/fingerprint/fingerprint_default.go index d558d62f6..a2fa1bf59 100644 --- a/client/fingerprint/fingerprint_default.go +++ b/client/fingerprint/fingerprint_default.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || netbsd || openbsd || solaris || windows // +build darwin dragonfly freebsd netbsd openbsd solaris windows diff --git a/client/fingerprint/fingerprint_linux.go b/client/fingerprint/fingerprint_linux.go index 10c9768b2..874575a73 100644 --- a/client/fingerprint/fingerprint_linux.go +++ b/client/fingerprint/fingerprint_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint func initPlatformFingerprints(fps map[string]Factory) { diff --git a/client/fingerprint/fingerprint_test.go b/client/fingerprint/fingerprint_test.go index ee03643c0..b63c742e4 100644 --- a/client/fingerprint/fingerprint_test.go +++ b/client/fingerprint/fingerprint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint // This file contains helper methods for testing fingerprinters diff --git a/client/fingerprint/host.go b/client/fingerprint/host.go index 4d37d091d..426b0c308 100644 --- a/client/fingerprint/host.go +++ b/client/fingerprint/host.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/host_test.go b/client/fingerprint/host_test.go index 5fd9dbf85..9db05c348 100644 --- a/client/fingerprint/host_test.go +++ b/client/fingerprint/host_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/landlock.go b/client/fingerprint/landlock.go index 9c0d6eb5b..d53f94234 100644 --- a/client/fingerprint/landlock.go +++ b/client/fingerprint/landlock.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/landlock_test.go b/client/fingerprint/landlock_test.go index 3091e85bf..78b27c00a 100644 --- a/client/fingerprint/landlock_test.go +++ b/client/fingerprint/landlock_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/memory.go b/client/fingerprint/memory.go index b5ad4b7d9..5ce1db142 100644 --- a/client/fingerprint/memory.go +++ b/client/fingerprint/memory.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/memory_test.go b/client/fingerprint/memory_test.go index e93599e9b..7da77fbef 100644 --- a/client/fingerprint/memory_test.go +++ b/client/fingerprint/memory_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/network.go b/client/fingerprint/network.go index 9f005c928..7b2090835 100644 --- a/client/fingerprint/network.go +++ b/client/fingerprint/network.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/network_default.go b/client/fingerprint/network_default.go index 7cf924031..1dd33b0f4 100644 --- a/client/fingerprint/network_default.go +++ b/client/fingerprint/network_default.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux && !windows // +build !linux,!windows diff --git a/client/fingerprint/network_linux.go b/client/fingerprint/network_linux.go index a44221be0..f488b678f 100644 --- a/client/fingerprint/network_linux.go +++ b/client/fingerprint/network_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/network_test.go b/client/fingerprint/network_test.go index 08332ba09..12da2bace 100644 --- a/client/fingerprint/network_test.go +++ b/client/fingerprint/network_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/network_windows.go b/client/fingerprint/network_windows.go index c843da32e..1902c6be1 100644 --- a/client/fingerprint/network_windows.go +++ b/client/fingerprint/network_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/nomad.go b/client/fingerprint/nomad.go index 89525dbfd..ff20b1e49 100644 --- a/client/fingerprint/nomad.go +++ b/client/fingerprint/nomad.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/nomad_test.go b/client/fingerprint/nomad_test.go index 4b762ed04..3853ec8de 100644 --- a/client/fingerprint/nomad_test.go +++ b/client/fingerprint/nomad_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/plugins_cni.go b/client/fingerprint/plugins_cni.go index 8100521c7..aec171c64 100644 --- a/client/fingerprint/plugins_cni.go +++ b/client/fingerprint/plugins_cni.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/plugins_cni_test.go b/client/fingerprint/plugins_cni_test.go index 95e1b0e23..62d889cde 100644 --- a/client/fingerprint/plugins_cni_test.go +++ b/client/fingerprint/plugins_cni_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/signal.go b/client/fingerprint/signal.go index c6d795b9d..d741d4d7b 100644 --- a/client/fingerprint/signal.go +++ b/client/fingerprint/signal.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/signal_test.go b/client/fingerprint/signal_test.go index 4cdc3b01d..30ab32dd7 100644 --- a/client/fingerprint/signal_test.go +++ b/client/fingerprint/signal_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/storage.go b/client/fingerprint/storage.go index e11a23f49..3e98dca2d 100644 --- a/client/fingerprint/storage.go +++ b/client/fingerprint/storage.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/storage_test.go b/client/fingerprint/storage_test.go index 1c00fcbc4..59d88a6c1 100644 --- a/client/fingerprint/storage_test.go +++ b/client/fingerprint/storage_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/storage_unix.go b/client/fingerprint/storage_unix.go index 3ac5a6cae..c277630d5 100644 --- a/client/fingerprint/storage_unix.go +++ b/client/fingerprint/storage_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris diff --git a/client/fingerprint/storage_windows.go b/client/fingerprint/storage_windows.go index 716f1baf0..9bbecb1a1 100644 --- a/client/fingerprint/storage_windows.go +++ b/client/fingerprint/storage_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/structs.go b/client/fingerprint/structs.go index 403295344..27ecba06c 100644 --- a/client/fingerprint/structs.go +++ b/client/fingerprint/structs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/vault.go b/client/fingerprint/vault.go index 4639425d9..582372fea 100644 --- a/client/fingerprint/vault.go +++ b/client/fingerprint/vault.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/vault_test.go b/client/fingerprint/vault_test.go index 32cd8f3b4..89ecbea3e 100644 --- a/client/fingerprint/vault_test.go +++ b/client/fingerprint/vault_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fingerprint import ( diff --git a/client/fingerprint/zstorage_windows.go b/client/fingerprint/zstorage_windows.go index 52405b3f2..c5ee91dd0 100644 --- a/client/fingerprint/zstorage_windows.go +++ b/client/fingerprint/zstorage_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT package fingerprint diff --git a/client/fingerprint_manager.go b/client/fingerprint_manager.go index 1886c8df5..82a01442b 100644 --- a/client/fingerprint_manager.go +++ b/client/fingerprint_manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/fingerprint_manager_test.go b/client/fingerprint_manager_test.go index 576b6514b..c46df756a 100644 --- a/client/fingerprint_manager_test.go +++ b/client/fingerprint_manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/fs_endpoint.go b/client/fs_endpoint.go index 3d988520a..df2a46beb 100644 --- a/client/fs_endpoint.go +++ b/client/fs_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/fs_endpoint_test.go b/client/fs_endpoint_test.go index 63c04d91d..ad52c69d3 100644 --- a/client/fs_endpoint_test.go +++ b/client/fs_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/gc.go b/client/gc.go index 1d37dbf1f..0c95fd7f8 100644 --- a/client/gc.go +++ b/client/gc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/gc_test.go b/client/gc_test.go index 83a25c50a..84e3ed4d8 100644 --- a/client/gc_test.go +++ b/client/gc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/heartbeatstop.go b/client/heartbeatstop.go index b75dea9c1..d13894de1 100644 --- a/client/heartbeatstop.go +++ b/client/heartbeatstop.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/heartbeatstop_test.go b/client/heartbeatstop_test.go index 55c54c2bf..a8dc6c492 100644 --- a/client/heartbeatstop_test.go +++ b/client/heartbeatstop_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/interfaces/client.go b/client/interfaces/client.go index 241fcedbe..99af32ce9 100644 --- a/client/interfaces/client.go +++ b/client/interfaces/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package interfaces import ( diff --git a/client/lib/cgutil/cgutil_linux.go b/client/lib/cgutil/cgutil_linux.go index 84ce6b408..7727b2a43 100644 --- a/client/lib/cgutil/cgutil_linux.go +++ b/client/lib/cgutil/cgutil_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package cgutil diff --git a/client/lib/cgutil/cgutil_linux_test.go b/client/lib/cgutil/cgutil_linux_test.go index 6d43053cb..8047b5ccc 100644 --- a/client/lib/cgutil/cgutil_linux_test.go +++ b/client/lib/cgutil/cgutil_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package cgutil diff --git a/client/lib/cgutil/cgutil_noop.go b/client/lib/cgutil/cgutil_noop.go index 89c86c109..f9b9373d5 100644 --- a/client/lib/cgutil/cgutil_noop.go +++ b/client/lib/cgutil/cgutil_noop.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package cgutil diff --git a/client/lib/cgutil/cpuset_manager.go b/client/lib/cgutil/cpuset_manager.go index 17530f1be..eceb6c7be 100644 --- a/client/lib/cgutil/cpuset_manager.go +++ b/client/lib/cgutil/cpuset_manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cgutil import ( diff --git a/client/lib/cgutil/cpuset_manager_test.go b/client/lib/cgutil/cpuset_manager_test.go index 88f661411..805c1306c 100644 --- a/client/lib/cgutil/cpuset_manager_test.go +++ b/client/lib/cgutil/cpuset_manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cgutil import ( diff --git a/client/lib/cgutil/cpuset_manager_v1.go b/client/lib/cgutil/cpuset_manager_v1.go index 1f02d15d3..bd2c69607 100644 --- a/client/lib/cgutil/cpuset_manager_v1.go +++ b/client/lib/cgutil/cpuset_manager_v1.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package cgutil diff --git a/client/lib/cgutil/cpuset_manager_v1_test.go b/client/lib/cgutil/cpuset_manager_v1_test.go index e207f344e..c982bb531 100644 --- a/client/lib/cgutil/cpuset_manager_v1_test.go +++ b/client/lib/cgutil/cpuset_manager_v1_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package cgutil diff --git a/client/lib/cgutil/cpuset_manager_v2.go b/client/lib/cgutil/cpuset_manager_v2.go index 1157ad373..8e58f2624 100644 --- a/client/lib/cgutil/cpuset_manager_v2.go +++ b/client/lib/cgutil/cpuset_manager_v2.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package cgutil diff --git a/client/lib/cgutil/cpuset_manager_v2_test.go b/client/lib/cgutil/cpuset_manager_v2_test.go index ac5489aa0..fd3ee6f18 100644 --- a/client/lib/cgutil/cpuset_manager_v2_test.go +++ b/client/lib/cgutil/cpuset_manager_v2_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package cgutil diff --git a/client/lib/cgutil/editor.go b/client/lib/cgutil/editor.go index 4f354b98e..a366f4211 100644 --- a/client/lib/cgutil/editor.go +++ b/client/lib/cgutil/editor.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package cgutil diff --git a/client/lib/cgutil/editor_test.go b/client/lib/cgutil/editor_test.go index ad9a5c319..ce8dc32be 100644 --- a/client/lib/cgutil/editor_test.go +++ b/client/lib/cgutil/editor_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package cgutil diff --git a/client/lib/cgutil/group_killer.go b/client/lib/cgutil/group_killer.go index f6e82dbf8..ef299e9d5 100644 --- a/client/lib/cgutil/group_killer.go +++ b/client/lib/cgutil/group_killer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package cgutil diff --git a/client/lib/fifo/doc.go b/client/lib/fifo/doc.go index d1d2779f8..a46537cfa 100644 --- a/client/lib/fifo/doc.go +++ b/client/lib/fifo/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + /* Package fifo implements functions to create and open a fifo for inter-process communication in an OS agnostic way. A few assumptions should be made when diff --git a/client/lib/fifo/fifo_test.go b/client/lib/fifo/fifo_test.go index 5c4ced177..eac319a32 100644 --- a/client/lib/fifo/fifo_test.go +++ b/client/lib/fifo/fifo_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fifo import ( diff --git a/client/lib/fifo/fifo_unix.go b/client/lib/fifo/fifo_unix.go index 28f51e929..88a23aa45 100644 --- a/client/lib/fifo/fifo_unix.go +++ b/client/lib/fifo/fifo_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/client/lib/fifo/fifo_windows.go b/client/lib/fifo/fifo_windows.go index b8ea6b4b9..fdaf0a67a 100644 --- a/client/lib/fifo/fifo_windows.go +++ b/client/lib/fifo/fifo_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fifo import ( diff --git a/client/lib/resources/containment.go b/client/lib/resources/containment.go index dd05ca5f0..8df561c72 100644 --- a/client/lib/resources/containment.go +++ b/client/lib/resources/containment.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package resources // A Containment will cleanup resources created by an executor. diff --git a/client/lib/resources/containment_linux.go b/client/lib/resources/containment_linux.go index 4c878f7d7..73002dd90 100644 --- a/client/lib/resources/containment_linux.go +++ b/client/lib/resources/containment_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package resources diff --git a/client/lib/resources/pid.go b/client/lib/resources/pid.go index c2e4f5470..8b99d1e8f 100644 --- a/client/lib/resources/pid.go +++ b/client/lib/resources/pid.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package resources import ( diff --git a/client/lib/streamframer/framer.go b/client/lib/streamframer/framer.go index 812f775c6..9335904b1 100644 --- a/client/lib/streamframer/framer.go +++ b/client/lib/streamframer/framer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package framer import ( diff --git a/client/lib/streamframer/framer_test.go b/client/lib/streamframer/framer_test.go index 12d5fefaa..20682230c 100644 --- a/client/lib/streamframer/framer_test.go +++ b/client/lib/streamframer/framer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package framer import ( diff --git a/client/logmon/client.go b/client/logmon/client.go index 5deaf827c..32e561713 100644 --- a/client/logmon/client.go +++ b/client/logmon/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logmon import ( diff --git a/client/logmon/logging/rotator.go b/client/logmon/logging/rotator.go index a23d6172f..917cf750f 100644 --- a/client/logmon/logging/rotator.go +++ b/client/logmon/logging/rotator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logging import ( diff --git a/client/logmon/logging/rotator_test.go b/client/logmon/logging/rotator_test.go index 0c9b41903..666cab3e7 100644 --- a/client/logmon/logging/rotator_test.go +++ b/client/logmon/logging/rotator_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logging import ( diff --git a/client/logmon/logmon.go b/client/logmon/logmon.go index 36bdd9317..c62728e7d 100644 --- a/client/logmon/logmon.go +++ b/client/logmon/logmon.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logmon import ( diff --git a/client/logmon/logmon_test.go b/client/logmon/logmon_test.go index 05be035c3..ec1930dda 100644 --- a/client/logmon/logmon_test.go +++ b/client/logmon/logmon_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logmon import ( diff --git a/client/logmon/plugin.go b/client/logmon/plugin.go index a21777357..e3bf3c2a7 100644 --- a/client/logmon/plugin.go +++ b/client/logmon/plugin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logmon import ( diff --git a/client/logmon/proto/logmon.proto b/client/logmon/proto/logmon.proto index a5048ddeb..f0820a047 100644 --- a/client/logmon/proto/logmon.proto +++ b/client/logmon/proto/logmon.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; package hashicorp.nomad.client.logmon.proto; option go_package = "proto"; diff --git a/client/logmon/server.go b/client/logmon/server.go index 020d173bf..4263b76c1 100644 --- a/client/logmon/server.go +++ b/client/logmon/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logmon import ( diff --git a/client/logmon/z_logmon_cmd.go b/client/logmon/z_logmon_cmd.go index 33b5c2d11..208b29e3f 100644 --- a/client/logmon/z_logmon_cmd.go +++ b/client/logmon/z_logmon_cmd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logmon import ( diff --git a/client/meta_endpoint.go b/client/meta_endpoint.go index 2eefb5825..dc20159ba 100644 --- a/client/meta_endpoint.go +++ b/client/meta_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/meta_endpoint_test.go b/client/meta_endpoint_test.go index 777fad40d..c8179c624 100644 --- a/client/meta_endpoint_test.go +++ b/client/meta_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/node_updater.go b/client/node_updater.go index 1b341ee7c..9fa70cafb 100644 --- a/client/node_updater.go +++ b/client/node_updater.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/pluginmanager/csimanager/doc.go b/client/pluginmanager/csimanager/doc.go index 298bf18bf..89e253d37 100644 --- a/client/pluginmanager/csimanager/doc.go +++ b/client/pluginmanager/csimanager/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + /* * csimanager manages locally running CSI Plugins on a Nomad host, and provides a diff --git a/client/pluginmanager/csimanager/fingerprint.go b/client/pluginmanager/csimanager/fingerprint.go index db10aac98..27af9fd93 100644 --- a/client/pluginmanager/csimanager/fingerprint.go +++ b/client/pluginmanager/csimanager/fingerprint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/csimanager/fingerprint_test.go b/client/pluginmanager/csimanager/fingerprint_test.go index 5c87a7e38..43284f88d 100644 --- a/client/pluginmanager/csimanager/fingerprint_test.go +++ b/client/pluginmanager/csimanager/fingerprint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/csimanager/instance.go b/client/pluginmanager/csimanager/instance.go index 3839113dc..41ca29151 100644 --- a/client/pluginmanager/csimanager/instance.go +++ b/client/pluginmanager/csimanager/instance.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/csimanager/instance_test.go b/client/pluginmanager/csimanager/instance_test.go index 2f05ddc3f..5c302fd83 100644 --- a/client/pluginmanager/csimanager/instance_test.go +++ b/client/pluginmanager/csimanager/instance_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/csimanager/interface.go b/client/pluginmanager/csimanager/interface.go index 479b32172..0e986858a 100644 --- a/client/pluginmanager/csimanager/interface.go +++ b/client/pluginmanager/csimanager/interface.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/csimanager/manager.go b/client/pluginmanager/csimanager/manager.go index 59879e350..c7ba9e2fb 100644 --- a/client/pluginmanager/csimanager/manager.go +++ b/client/pluginmanager/csimanager/manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/csimanager/manager_test.go b/client/pluginmanager/csimanager/manager_test.go index 4b05513f0..f2363ff70 100644 --- a/client/pluginmanager/csimanager/manager_test.go +++ b/client/pluginmanager/csimanager/manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/csimanager/usage_tracker.go b/client/pluginmanager/csimanager/usage_tracker.go index 29c105a57..a9c0d5f3c 100644 --- a/client/pluginmanager/csimanager/usage_tracker.go +++ b/client/pluginmanager/csimanager/usage_tracker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/csimanager/usage_tracker_test.go b/client/pluginmanager/csimanager/usage_tracker_test.go index 6e8c352c4..5c4888f2c 100644 --- a/client/pluginmanager/csimanager/usage_tracker_test.go +++ b/client/pluginmanager/csimanager/usage_tracker_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/csimanager/volume.go b/client/pluginmanager/csimanager/volume.go index 4c6bf1d14..9cb96461c 100644 --- a/client/pluginmanager/csimanager/volume.go +++ b/client/pluginmanager/csimanager/volume.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/csimanager/volume_test.go b/client/pluginmanager/csimanager/volume_test.go index 9650aae35..28240d304 100644 --- a/client/pluginmanager/csimanager/volume_test.go +++ b/client/pluginmanager/csimanager/volume_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csimanager import ( diff --git a/client/pluginmanager/drivermanager/instance.go b/client/pluginmanager/drivermanager/instance.go index 68e6a5c35..8b7a5a85e 100644 --- a/client/pluginmanager/drivermanager/instance.go +++ b/client/pluginmanager/drivermanager/instance.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivermanager import ( diff --git a/client/pluginmanager/drivermanager/instance_test.go b/client/pluginmanager/drivermanager/instance_test.go index 80af8b641..eaa709c01 100644 --- a/client/pluginmanager/drivermanager/instance_test.go +++ b/client/pluginmanager/drivermanager/instance_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivermanager import ( diff --git a/client/pluginmanager/drivermanager/manager.go b/client/pluginmanager/drivermanager/manager.go index f74963bb0..c2dbe708b 100644 --- a/client/pluginmanager/drivermanager/manager.go +++ b/client/pluginmanager/drivermanager/manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivermanager import ( diff --git a/client/pluginmanager/drivermanager/manager_test.go b/client/pluginmanager/drivermanager/manager_test.go index e3f7798a4..21952d961 100644 --- a/client/pluginmanager/drivermanager/manager_test.go +++ b/client/pluginmanager/drivermanager/manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivermanager import ( diff --git a/client/pluginmanager/drivermanager/state/state.go b/client/pluginmanager/drivermanager/state/state.go index f37717c3b..b0f7656a8 100644 --- a/client/pluginmanager/drivermanager/state/state.go +++ b/client/pluginmanager/drivermanager/state/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import pstructs "github.com/hashicorp/nomad/plugins/shared/structs" diff --git a/client/pluginmanager/drivermanager/testing.go b/client/pluginmanager/drivermanager/testing.go index b442db3aa..358bc5c30 100644 --- a/client/pluginmanager/drivermanager/testing.go +++ b/client/pluginmanager/drivermanager/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !release // +build !release diff --git a/client/pluginmanager/group.go b/client/pluginmanager/group.go index 299675adb..561787a74 100644 --- a/client/pluginmanager/group.go +++ b/client/pluginmanager/group.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pluginmanager import ( diff --git a/client/pluginmanager/group_test.go b/client/pluginmanager/group_test.go index fc91824e8..8214ee442 100644 --- a/client/pluginmanager/group_test.go +++ b/client/pluginmanager/group_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pluginmanager import ( diff --git a/client/pluginmanager/manager.go b/client/pluginmanager/manager.go index f9d83a9ee..ef3b90ef7 100644 --- a/client/pluginmanager/manager.go +++ b/client/pluginmanager/manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pluginmanager import "context" diff --git a/client/pluginmanager/testing.go b/client/pluginmanager/testing.go index c92aa33ae..642643058 100644 --- a/client/pluginmanager/testing.go +++ b/client/pluginmanager/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pluginmanager import "context" diff --git a/client/rpc.go b/client/rpc.go index 8a5b9a61c..860fb996b 100644 --- a/client/rpc.go +++ b/client/rpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/rpc_test.go b/client/rpc_test.go index 162e4d790..a824206ba 100644 --- a/client/rpc_test.go +++ b/client/rpc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/servers/manager.go b/client/servers/manager.go index d99df578e..196cb5794 100644 --- a/client/servers/manager.go +++ b/client/servers/manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package servers provides an interface for choosing Servers to communicate // with from a Nomad Client perspective. The package does not provide any API // guarantees and should be called only by `hashicorp/nomad`. diff --git a/client/servers/manager_internal_test.go b/client/servers/manager_internal_test.go index 8c1765aa1..5bbbec115 100644 --- a/client/servers/manager_internal_test.go +++ b/client/servers/manager_internal_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package servers import ( diff --git a/client/servers/manager_test.go b/client/servers/manager_test.go index e219c3f4b..4e18a2ce0 100644 --- a/client/servers/manager_test.go +++ b/client/servers/manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package servers_test import ( diff --git a/client/serviceregistration/address.go b/client/serviceregistration/address.go index 9ddb47740..5fedcde63 100644 --- a/client/serviceregistration/address.go +++ b/client/serviceregistration/address.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serviceregistration import ( diff --git a/client/serviceregistration/address_test.go b/client/serviceregistration/address_test.go index 6e31c9176..6da9bc5fb 100644 --- a/client/serviceregistration/address_test.go +++ b/client/serviceregistration/address_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serviceregistration import ( diff --git a/client/serviceregistration/checks/checkstore/shim.go b/client/serviceregistration/checks/checkstore/shim.go index 0a6a64a2d..dfc97ef4d 100644 --- a/client/serviceregistration/checks/checkstore/shim.go +++ b/client/serviceregistration/checks/checkstore/shim.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checkstore import ( diff --git a/client/serviceregistration/checks/checkstore/shim_test.go b/client/serviceregistration/checks/checkstore/shim_test.go index 99bd38dd7..baf1f412d 100644 --- a/client/serviceregistration/checks/checkstore/shim_test.go +++ b/client/serviceregistration/checks/checkstore/shim_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checkstore import ( diff --git a/client/serviceregistration/checks/client.go b/client/serviceregistration/checks/client.go index d46b124e2..4ebc6ac87 100644 --- a/client/serviceregistration/checks/client.go +++ b/client/serviceregistration/checks/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/client/serviceregistration/checks/client_test.go b/client/serviceregistration/checks/client_test.go index 572843bef..5a81ad0ab 100644 --- a/client/serviceregistration/checks/client_test.go +++ b/client/serviceregistration/checks/client_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/client/serviceregistration/checks/result.go b/client/serviceregistration/checks/result.go index f7813288f..eaaa89a1e 100644 --- a/client/serviceregistration/checks/result.go +++ b/client/serviceregistration/checks/result.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/client/serviceregistration/checks/result_test.go b/client/serviceregistration/checks/result_test.go index 853feb747..6d88c5c58 100644 --- a/client/serviceregistration/checks/result_test.go +++ b/client/serviceregistration/checks/result_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/client/serviceregistration/id.go b/client/serviceregistration/id.go index edcabd4c6..94873aa41 100644 --- a/client/serviceregistration/id.go +++ b/client/serviceregistration/id.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serviceregistration import ( diff --git a/client/serviceregistration/id_test.go b/client/serviceregistration/id_test.go index b41085a9f..517d07c4c 100644 --- a/client/serviceregistration/id_test.go +++ b/client/serviceregistration/id_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serviceregistration import ( diff --git a/client/serviceregistration/mock/mock.go b/client/serviceregistration/mock/mock.go index da7e885ad..28456c85a 100644 --- a/client/serviceregistration/mock/mock.go +++ b/client/serviceregistration/mock/mock.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/client/serviceregistration/nsd/doc.go b/client/serviceregistration/nsd/doc.go index f86c8458d..84cfafa08 100644 --- a/client/serviceregistration/nsd/doc.go +++ b/client/serviceregistration/nsd/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package nsd provides Nomad service registration and therefore discovery // capabilities for Nomad clients. The name nsd was used instead of Nomad to // avoid conflict with the existing nomad package. diff --git a/client/serviceregistration/nsd/nsd.go b/client/serviceregistration/nsd/nsd.go index adbea8a0b..cb64187df 100644 --- a/client/serviceregistration/nsd/nsd.go +++ b/client/serviceregistration/nsd/nsd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nsd import ( diff --git a/client/serviceregistration/nsd/nsd_test.go b/client/serviceregistration/nsd/nsd_test.go index c8681fd37..54d464e2e 100644 --- a/client/serviceregistration/nsd/nsd_test.go +++ b/client/serviceregistration/nsd/nsd_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nsd import ( diff --git a/client/serviceregistration/nsd/statuses.go b/client/serviceregistration/nsd/statuses.go index cb19e0fb9..7b4e804ad 100644 --- a/client/serviceregistration/nsd/statuses.go +++ b/client/serviceregistration/nsd/statuses.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nsd import ( diff --git a/client/serviceregistration/nsd/statuses_test.go b/client/serviceregistration/nsd/statuses_test.go index c68d1abfa..8a05fb1d6 100644 --- a/client/serviceregistration/nsd/statuses_test.go +++ b/client/serviceregistration/nsd/statuses_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nsd import ( diff --git a/client/serviceregistration/service_registration.go b/client/serviceregistration/service_registration.go index e04aa4598..ec34bd979 100644 --- a/client/serviceregistration/service_registration.go +++ b/client/serviceregistration/service_registration.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serviceregistration import ( diff --git a/client/serviceregistration/service_registration_test.go b/client/serviceregistration/service_registration_test.go index dc6589886..be09c9f4a 100644 --- a/client/serviceregistration/service_registration_test.go +++ b/client/serviceregistration/service_registration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serviceregistration import ( diff --git a/client/serviceregistration/watcher.go b/client/serviceregistration/watcher.go index 4f92f00da..f76b9aeca 100644 --- a/client/serviceregistration/watcher.go +++ b/client/serviceregistration/watcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serviceregistration import ( diff --git a/client/serviceregistration/watcher_test.go b/client/serviceregistration/watcher_test.go index 1629753b5..608bdd343 100644 --- a/client/serviceregistration/watcher_test.go +++ b/client/serviceregistration/watcher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serviceregistration import ( diff --git a/client/serviceregistration/workload.go b/client/serviceregistration/workload.go index f752cd22c..6b61449d6 100644 --- a/client/serviceregistration/workload.go +++ b/client/serviceregistration/workload.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serviceregistration import ( diff --git a/client/serviceregistration/workload_test.go b/client/serviceregistration/workload_test.go index 3152e7492..4f0c9675a 100644 --- a/client/serviceregistration/workload_test.go +++ b/client/serviceregistration/workload_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serviceregistration import ( diff --git a/client/serviceregistration/wrapper/wrapper.go b/client/serviceregistration/wrapper/wrapper.go index 1c52dfd19..8f9926013 100644 --- a/client/serviceregistration/wrapper/wrapper.go +++ b/client/serviceregistration/wrapper/wrapper.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package wrapper import ( diff --git a/client/serviceregistration/wrapper/wrapper_test.go b/client/serviceregistration/wrapper/wrapper_test.go index 2acb82376..64ec404b8 100644 --- a/client/serviceregistration/wrapper/wrapper_test.go +++ b/client/serviceregistration/wrapper/wrapper_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package wrapper import ( diff --git a/client/state/08types.go b/client/state/08types.go index b4cc54bf7..da5c7c89e 100644 --- a/client/state/08types.go +++ b/client/state/08types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/state/12types.go b/client/state/12types.go index bc93c258e..86e29c107 100644 --- a/client/state/12types.go +++ b/client/state/12types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import "github.com/hashicorp/nomad/client/dynamicplugins" diff --git a/client/state/db_bolt.go b/client/state/db_bolt.go index 84e5c9174..c0722d65d 100644 --- a/client/state/db_bolt.go +++ b/client/state/db_bolt.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/state/db_error.go b/client/state/db_error.go index 0f23d3d75..2d9c2cdb2 100644 --- a/client/state/db_error.go +++ b/client/state/db_error.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/state/db_mem.go b/client/state/db_mem.go index 1118e5f5b..329fc6909 100644 --- a/client/state/db_mem.go +++ b/client/state/db_mem.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/state/db_noop.go b/client/state/db_noop.go index 8a0726b5f..d0db5b48a 100644 --- a/client/state/db_noop.go +++ b/client/state/db_noop.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/state/db_test.go b/client/state/db_test.go index 542c21900..e1b831283 100644 --- a/client/state/db_test.go +++ b/client/state/db_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/state/interface.go b/client/state/interface.go index bdff16982..44253d949 100644 --- a/client/state/interface.go +++ b/client/state/interface.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/state/upgrade.go b/client/state/upgrade.go index b2a1394e1..f6e7ab3a3 100644 --- a/client/state/upgrade.go +++ b/client/state/upgrade.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/state/upgrade_int_test.go b/client/state/upgrade_int_test.go index 5bcf12d5c..30a0b60c7 100644 --- a/client/state/upgrade_int_test.go +++ b/client/state/upgrade_int_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state_test import ( diff --git a/client/state/upgrade_test.go b/client/state/upgrade_test.go index 940917353..b4c4e50e0 100644 --- a/client/state/upgrade_test.go +++ b/client/state/upgrade_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/client/stats/cpu.go b/client/stats/cpu.go index 1986b0588..36dad08a5 100644 --- a/client/stats/cpu.go +++ b/client/stats/cpu.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stats import ( diff --git a/client/stats/cpu_test.go b/client/stats/cpu_test.go index 4dc9b19b4..e04395c3e 100644 --- a/client/stats/cpu_test.go +++ b/client/stats/cpu_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stats import ( diff --git a/client/stats/host.go b/client/stats/host.go index 97ad5df30..2f732198a 100644 --- a/client/stats/host.go +++ b/client/stats/host.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stats import ( diff --git a/client/stats/host_test.go b/client/stats/host_test.go index c6a8bab88..3d939cd10 100644 --- a/client/stats/host_test.go +++ b/client/stats/host_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stats import ( diff --git a/client/structs/allochook.go b/client/structs/allochook.go index 3a694d85a..d2a870d3b 100644 --- a/client/structs/allochook.go +++ b/client/structs/allochook.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/client/structs/broadcaster.go b/client/structs/broadcaster.go index 407894e71..1ed0085cd 100644 --- a/client/structs/broadcaster.go +++ b/client/structs/broadcaster.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/client/structs/broadcaster_test.go b/client/structs/broadcaster_test.go index 1bbc1006d..ef14a3c29 100644 --- a/client/structs/broadcaster_test.go +++ b/client/structs/broadcaster_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/client/structs/csi.go b/client/structs/csi.go index 642f02b01..f327daa5d 100644 --- a/client/structs/csi.go +++ b/client/structs/csi.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/client/structs/structs.go b/client/structs/structs.go index d3b2ab8d0..103e166fc 100644 --- a/client/structs/structs.go +++ b/client/structs/structs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs //go:generate codecgen -c github.com/hashicorp/go-msgpack/codec -st codec -d 102 -t codegen_generated -o structs.generated.go structs.go diff --git a/client/taskenv/env.go b/client/taskenv/env.go index 2844a928c..12bb4cafc 100644 --- a/client/taskenv/env.go +++ b/client/taskenv/env.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskenv import ( diff --git a/client/taskenv/env_test.go b/client/taskenv/env_test.go index b149efdbd..6cbbdc6e1 100644 --- a/client/taskenv/env_test.go +++ b/client/taskenv/env_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskenv import ( diff --git a/client/taskenv/network.go b/client/taskenv/network.go index 7d9b2a0f8..d9a609e59 100644 --- a/client/taskenv/network.go +++ b/client/taskenv/network.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskenv import ( diff --git a/client/taskenv/network_test.go b/client/taskenv/network_test.go index 5c1f3deba..c28c40e49 100644 --- a/client/taskenv/network_test.go +++ b/client/taskenv/network_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskenv import ( diff --git a/client/taskenv/services.go b/client/taskenv/services.go index c6e44c75d..76c6a683e 100644 --- a/client/taskenv/services.go +++ b/client/taskenv/services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskenv import ( diff --git a/client/taskenv/services_test.go b/client/taskenv/services_test.go index aefb23a5c..ab29678e7 100644 --- a/client/taskenv/services_test.go +++ b/client/taskenv/services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskenv import ( diff --git a/client/taskenv/util.go b/client/taskenv/util.go index 1686a100d..19c5c9660 100644 --- a/client/taskenv/util.go +++ b/client/taskenv/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskenv import ( diff --git a/client/taskenv/util_test.go b/client/taskenv/util_test.go index 4f4538781..4a21253d6 100644 --- a/client/taskenv/util_test.go +++ b/client/taskenv/util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskenv import ( diff --git a/client/testing.go b/client/testing.go index 121b2b33c..129af7f59 100644 --- a/client/testing.go +++ b/client/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/testutil/docker.go b/client/testutil/docker.go index 92bc72fb0..cdc3ae5a4 100644 --- a/client/testutil/docker.go +++ b/client/testutil/docker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/client/testutil/driver_compatible.go b/client/testutil/driver_compatible.go index 590c913f5..e729aed4f 100644 --- a/client/testutil/driver_compatible.go +++ b/client/testutil/driver_compatible.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/client/testutil/driver_compatible_default.go b/client/testutil/driver_compatible_default.go index 2f7b3cb8a..32053e2d9 100644 --- a/client/testutil/driver_compatible_default.go +++ b/client/testutil/driver_compatible_default.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package testutil diff --git a/client/testutil/driver_compatible_linux.go b/client/testutil/driver_compatible_linux.go index f30aba7ef..f953e6317 100644 --- a/client/testutil/driver_compatible_linux.go +++ b/client/testutil/driver_compatible_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package testutil diff --git a/client/testutil/rpc.go b/client/testutil/rpc.go index b6d4c66b7..c1a1d6466 100644 --- a/client/testutil/rpc.go +++ b/client/testutil/rpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/client/util.go b/client/util.go index af3bd7540..746f08f83 100644 --- a/client/util.go +++ b/client/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/vaultclient/vaultclient.go b/client/vaultclient/vaultclient.go index 7d142db60..b17bb614d 100644 --- a/client/vaultclient/vaultclient.go +++ b/client/vaultclient/vaultclient.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package vaultclient import ( diff --git a/client/vaultclient/vaultclient_test.go b/client/vaultclient/vaultclient_test.go index ff9ca2877..8338f36cd 100644 --- a/client/vaultclient/vaultclient_test.go +++ b/client/vaultclient/vaultclient_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package vaultclient import ( diff --git a/client/vaultclient/vaultclient_testing.go b/client/vaultclient/vaultclient_testing.go index c3c25c90d..afea55f0d 100644 --- a/client/vaultclient/vaultclient_testing.go +++ b/client/vaultclient/vaultclient_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package vaultclient import ( diff --git a/command/acl.go b/command/acl.go index 4667fbf9f..7273be7ee 100644 --- a/command/acl.go +++ b/command/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method.go b/command/acl_auth_method.go index 6e00dcc76..29cc6d00b 100644 --- a/command/acl_auth_method.go +++ b/command/acl_auth_method.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method_create.go b/command/acl_auth_method_create.go index 29064d455..dd24006a5 100644 --- a/command/acl_auth_method_create.go +++ b/command/acl_auth_method_create.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method_create_test.go b/command/acl_auth_method_create_test.go index 5ebdbb047..344fb74c2 100644 --- a/command/acl_auth_method_create_test.go +++ b/command/acl_auth_method_create_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method_delete.go b/command/acl_auth_method_delete.go index 1f471b72d..532a62951 100644 --- a/command/acl_auth_method_delete.go +++ b/command/acl_auth_method_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method_delete_test.go b/command/acl_auth_method_delete_test.go index 5d2eb487e..dcca9b6f2 100644 --- a/command/acl_auth_method_delete_test.go +++ b/command/acl_auth_method_delete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method_info.go b/command/acl_auth_method_info.go index 4ba99918b..1028c7d46 100644 --- a/command/acl_auth_method_info.go +++ b/command/acl_auth_method_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method_info_test.go b/command/acl_auth_method_info_test.go index 2e32e2806..7eb256e4b 100644 --- a/command/acl_auth_method_info_test.go +++ b/command/acl_auth_method_info_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method_list.go b/command/acl_auth_method_list.go index 70f914a83..1ca485966 100644 --- a/command/acl_auth_method_list.go +++ b/command/acl_auth_method_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method_list_test.go b/command/acl_auth_method_list_test.go index 9c2966152..d91e0728b 100644 --- a/command/acl_auth_method_list_test.go +++ b/command/acl_auth_method_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method_update.go b/command/acl_auth_method_update.go index a3d8f902a..3ff3dd386 100644 --- a/command/acl_auth_method_update.go +++ b/command/acl_auth_method_update.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_auth_method_update_test.go b/command/acl_auth_method_update_test.go index f4f7fbe66..cf32c4981 100644 --- a/command/acl_auth_method_update_test.go +++ b/command/acl_auth_method_update_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule.go b/command/acl_binding_rule.go index d32b77065..c40777b43 100644 --- a/command/acl_binding_rule.go +++ b/command/acl_binding_rule.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule_create.go b/command/acl_binding_rule_create.go index 37d9dba3d..b2a573926 100644 --- a/command/acl_binding_rule_create.go +++ b/command/acl_binding_rule_create.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule_create_test.go b/command/acl_binding_rule_create_test.go index 3d870a537..657ee18c3 100644 --- a/command/acl_binding_rule_create_test.go +++ b/command/acl_binding_rule_create_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule_delete.go b/command/acl_binding_rule_delete.go index c9532f4de..417efda21 100644 --- a/command/acl_binding_rule_delete.go +++ b/command/acl_binding_rule_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule_delete_test.go b/command/acl_binding_rule_delete_test.go index 25a2856b4..da55ae7fa 100644 --- a/command/acl_binding_rule_delete_test.go +++ b/command/acl_binding_rule_delete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule_info.go b/command/acl_binding_rule_info.go index 34a957203..1d04d606e 100644 --- a/command/acl_binding_rule_info.go +++ b/command/acl_binding_rule_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule_info_test.go b/command/acl_binding_rule_info_test.go index 12d894149..86524ed02 100644 --- a/command/acl_binding_rule_info_test.go +++ b/command/acl_binding_rule_info_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule_list.go b/command/acl_binding_rule_list.go index 242a91f0d..b69bb3fb5 100644 --- a/command/acl_binding_rule_list.go +++ b/command/acl_binding_rule_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule_list_test.go b/command/acl_binding_rule_list_test.go index 842d4c7d4..39fd53f52 100644 --- a/command/acl_binding_rule_list_test.go +++ b/command/acl_binding_rule_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule_update.go b/command/acl_binding_rule_update.go index 3c5904a81..6fe7186ca 100644 --- a/command/acl_binding_rule_update.go +++ b/command/acl_binding_rule_update.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_binding_rule_update_test.go b/command/acl_binding_rule_update_test.go index d12396b55..b60fa96b1 100644 --- a/command/acl_binding_rule_update_test.go +++ b/command/acl_binding_rule_update_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_bootstrap.go b/command/acl_bootstrap.go index e7ec8a54d..691d28d98 100644 --- a/command/acl_bootstrap.go +++ b/command/acl_bootstrap.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_bootstrap_test.go b/command/acl_bootstrap_test.go index 995b5ba96..c3f3733d7 100644 --- a/command/acl_bootstrap_test.go +++ b/command/acl_bootstrap_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_policy.go b/command/acl_policy.go index a742d75c4..90efdc28b 100644 --- a/command/acl_policy.go +++ b/command/acl_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_policy_apply.go b/command/acl_policy_apply.go index d878afb9c..ada66b793 100644 --- a/command/acl_policy_apply.go +++ b/command/acl_policy_apply.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_policy_apply_test.go b/command/acl_policy_apply_test.go index 9abe9cbfd..f0a463ed3 100644 --- a/command/acl_policy_apply_test.go +++ b/command/acl_policy_apply_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_policy_delete.go b/command/acl_policy_delete.go index 723ba3239..cdc266083 100644 --- a/command/acl_policy_delete.go +++ b/command/acl_policy_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_policy_delete_test.go b/command/acl_policy_delete_test.go index 6b49f9884..3d5a52163 100644 --- a/command/acl_policy_delete_test.go +++ b/command/acl_policy_delete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_policy_info.go b/command/acl_policy_info.go index 4ddf320e5..dd03a448b 100644 --- a/command/acl_policy_info.go +++ b/command/acl_policy_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_policy_info_test.go b/command/acl_policy_info_test.go index 939284b7f..1f6f82433 100644 --- a/command/acl_policy_info_test.go +++ b/command/acl_policy_info_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_policy_list.go b/command/acl_policy_list.go index 4f8f0c79c..c53746a00 100644 --- a/command/acl_policy_list.go +++ b/command/acl_policy_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_policy_list_test.go b/command/acl_policy_list_test.go index 1db79a838..b46f7dad9 100644 --- a/command/acl_policy_list_test.go +++ b/command/acl_policy_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role.go b/command/acl_role.go index 284c59b9c..d0de5ae13 100644 --- a/command/acl_role.go +++ b/command/acl_role.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_create.go b/command/acl_role_create.go index fa06f46c5..ed42184d5 100644 --- a/command/acl_role_create.go +++ b/command/acl_role_create.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_create_test.go b/command/acl_role_create_test.go index 000bda470..26a5d2096 100644 --- a/command/acl_role_create_test.go +++ b/command/acl_role_create_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_delete.go b/command/acl_role_delete.go index 6f35e3664..7013f4df6 100644 --- a/command/acl_role_delete.go +++ b/command/acl_role_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_delete_test.go b/command/acl_role_delete_test.go index 217c06654..fab522409 100644 --- a/command/acl_role_delete_test.go +++ b/command/acl_role_delete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_info.go b/command/acl_role_info.go index 897c4635d..2598d674a 100644 --- a/command/acl_role_info.go +++ b/command/acl_role_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_info_test.go b/command/acl_role_info_test.go index 4f4cc5db5..0008cbef8 100644 --- a/command/acl_role_info_test.go +++ b/command/acl_role_info_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_list.go b/command/acl_role_list.go index 97360b78c..fbaca4817 100644 --- a/command/acl_role_list.go +++ b/command/acl_role_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_list_test.go b/command/acl_role_list_test.go index 7c7855edf..8a32b6a62 100644 --- a/command/acl_role_list_test.go +++ b/command/acl_role_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_test.go b/command/acl_role_test.go index 7031cc621..c1c0e6a7b 100644 --- a/command/acl_role_test.go +++ b/command/acl_role_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_update.go b/command/acl_role_update.go index 872cc7f39..252d2bef4 100644 --- a/command/acl_role_update.go +++ b/command/acl_role_update.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_role_update_test.go b/command/acl_role_update_test.go index 9ae7adc11..fd9b43116 100644 --- a/command/acl_role_update_test.go +++ b/command/acl_role_update_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token.go b/command/acl_token.go index 395fdb84d..e6521b0fb 100644 --- a/command/acl_token.go +++ b/command/acl_token.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_create.go b/command/acl_token_create.go index ada1afb08..a76fb3ca1 100644 --- a/command/acl_token_create.go +++ b/command/acl_token_create.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_create_test.go b/command/acl_token_create_test.go index 49f7d110c..ea01bf9f4 100644 --- a/command/acl_token_create_test.go +++ b/command/acl_token_create_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_delete.go b/command/acl_token_delete.go index aae409957..364da4e3e 100644 --- a/command/acl_token_delete.go +++ b/command/acl_token_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_delete_test.go b/command/acl_token_delete_test.go index 52f47d20d..312e9c6f1 100644 --- a/command/acl_token_delete_test.go +++ b/command/acl_token_delete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_info.go b/command/acl_token_info.go index cb0c12651..431040d67 100644 --- a/command/acl_token_info.go +++ b/command/acl_token_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_info_test.go b/command/acl_token_info_test.go index 52776af5e..826f89fed 100644 --- a/command/acl_token_info_test.go +++ b/command/acl_token_info_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_list.go b/command/acl_token_list.go index 5946302fd..50178b7fb 100644 --- a/command/acl_token_list.go +++ b/command/acl_token_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_list_test.go b/command/acl_token_list_test.go index 26721ac2e..9ed8222ef 100644 --- a/command/acl_token_list_test.go +++ b/command/acl_token_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_self.go b/command/acl_token_self.go index 9e3516346..2166b2a91 100644 --- a/command/acl_token_self.go +++ b/command/acl_token_self.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_self_test.go b/command/acl_token_self_test.go index b91c67222..87b2945c0 100644 --- a/command/acl_token_self_test.go +++ b/command/acl_token_self_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_update.go b/command/acl_token_update.go index 1880c9c61..a52e85ed7 100644 --- a/command/acl_token_update.go +++ b/command/acl_token_update.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/acl_token_update_test.go b/command/acl_token_update_test.go index 97d0e2a58..b03a2a34f 100644 --- a/command/acl_token_update_test.go +++ b/command/acl_token_update_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/agent/acl_endpoint.go b/command/agent/acl_endpoint.go index 089ba73d8..9c8b58ea8 100644 --- a/command/agent/acl_endpoint.go +++ b/command/agent/acl_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/acl_endpoint_test.go b/command/agent/acl_endpoint_test.go index ff86a0761..1ca8d281c 100644 --- a/command/agent/acl_endpoint_test.go +++ b/command/agent/acl_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/agent.go b/command/agent/agent.go index a31d008c2..316aea06e 100644 --- a/command/agent/agent.go +++ b/command/agent/agent.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/agent_endpoint.go b/command/agent/agent_endpoint.go index 21df7c3b3..f4c20d393 100644 --- a/command/agent/agent_endpoint.go +++ b/command/agent/agent_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/agent_endpoint_test.go b/command/agent/agent_endpoint_test.go index 891ce0148..706e86945 100644 --- a/command/agent/agent_endpoint_test.go +++ b/command/agent/agent_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/agent_oss.go b/command/agent/agent_oss.go index 4594204e5..ca041b971 100644 --- a/command/agent/agent_oss.go +++ b/command/agent/agent_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/command/agent/agent_test.go b/command/agent/agent_test.go index 8adf99f2c..bcdbf2410 100644 --- a/command/agent/agent_test.go +++ b/command/agent/agent_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/alloc_endpoint.go b/command/agent/alloc_endpoint.go index 15b384288..3d71d8b78 100644 --- a/command/agent/alloc_endpoint.go +++ b/command/agent/alloc_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/alloc_endpoint_test.go b/command/agent/alloc_endpoint_test.go index f6e1478ca..16369b820 100644 --- a/command/agent/alloc_endpoint_test.go +++ b/command/agent/alloc_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/bindata_assetfs.go b/command/agent/bindata_assetfs.go index 087431b9b..3a51a5687 100644 --- a/command/agent/bindata_assetfs.go +++ b/command/agent/bindata_assetfs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Code generated by go-bindata. // sources: // ui/dist/assets/chunk.143.f0d0de021bb70990f5b3.js diff --git a/command/agent/command.go b/command/agent/command.go index 3b58dc77c..6d72dc79d 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/command_test.go b/command/agent/command_test.go index 3e96f399d..8190221a1 100644 --- a/command/agent/command_test.go +++ b/command/agent/command_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/config.go b/command/agent/config.go index 943ee5359..a67af86d4 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/config_oss.go b/command/agent/config_oss.go index 9ae283f6f..27a2e3021 100644 --- a/command/agent/config_oss.go +++ b/command/agent/config_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/command/agent/config_parse.go b/command/agent/config_parse.go index 8bacdc836..8a45d4dd3 100644 --- a/command/agent/config_parse.go +++ b/command/agent/config_parse.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/config_parse_test.go b/command/agent/config_parse_test.go index 912a1ab28..d023a90c0 100644 --- a/command/agent/config_parse_test.go +++ b/command/agent/config_parse_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/config_test.go b/command/agent/config_test.go index 9616fe255..e82dca1bd 100644 --- a/command/agent/config_test.go +++ b/command/agent/config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/consul/acl_testing.go b/command/agent/consul/acl_testing.go index 9ead73581..0e4cb0ef2 100644 --- a/command/agent/consul/acl_testing.go +++ b/command/agent/consul/acl_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/catalog_testing.go b/command/agent/consul/catalog_testing.go index 6d9bc3fee..1711d295e 100644 --- a/command/agent/consul/catalog_testing.go +++ b/command/agent/consul/catalog_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/config_entries_testing.go b/command/agent/consul/config_entries_testing.go index 9b3166e81..dada9c8d3 100644 --- a/command/agent/consul/config_entries_testing.go +++ b/command/agent/consul/config_entries_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/connect.go b/command/agent/consul/connect.go index 91f9f712f..97c5b096d 100644 --- a/command/agent/consul/connect.go +++ b/command/agent/consul/connect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/connect_proxies.go b/command/agent/consul/connect_proxies.go index cb46a848b..50c32bc3d 100644 --- a/command/agent/consul/connect_proxies.go +++ b/command/agent/consul/connect_proxies.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/connect_proxies_test.go b/command/agent/consul/connect_proxies_test.go index b9dad693c..92b320dc8 100644 --- a/command/agent/consul/connect_proxies_test.go +++ b/command/agent/consul/connect_proxies_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/connect_proxies_testing.go b/command/agent/consul/connect_proxies_testing.go index 122d7e842..cecaa8388 100644 --- a/command/agent/consul/connect_proxies_testing.go +++ b/command/agent/consul/connect_proxies_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul // ConnectProxies implements SupportedProxiesAPI by mocking the Consul Agent API. diff --git a/command/agent/consul/connect_test.go b/command/agent/consul/connect_test.go index 39364f796..d4657cd71 100644 --- a/command/agent/consul/connect_test.go +++ b/command/agent/consul/connect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/group_test.go b/command/agent/consul/group_test.go index 8f690b003..094ab20eb 100644 --- a/command/agent/consul/group_test.go +++ b/command/agent/consul/group_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/int_test.go b/command/agent/consul/int_test.go index 21352e30e..48efe019c 100644 --- a/command/agent/consul/int_test.go +++ b/command/agent/consul/int_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul_test import ( diff --git a/command/agent/consul/namespaces_client.go b/command/agent/consul/namespaces_client.go index 7f7961bd2..d810830cd 100644 --- a/command/agent/consul/namespaces_client.go +++ b/command/agent/consul/namespaces_client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/namespaces_client_test.go b/command/agent/consul/namespaces_client_test.go index 6b8704920..ef7089096 100644 --- a/command/agent/consul/namespaces_client_test.go +++ b/command/agent/consul/namespaces_client_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/self.go b/command/agent/consul/self.go index 36afd1424..c7892b5dd 100644 --- a/command/agent/consul/self.go +++ b/command/agent/consul/self.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/self_test.go b/command/agent/consul/self_test.go index db274d7f0..8ac458333 100644 --- a/command/agent/consul/self_test.go +++ b/command/agent/consul/self_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/service_client.go b/command/agent/consul/service_client.go index 1b98bec49..be2d4b4c6 100644 --- a/command/agent/consul/service_client.go +++ b/command/agent/consul/service_client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/service_client_test.go b/command/agent/consul/service_client_test.go index 1199e7192..253fb2841 100644 --- a/command/agent/consul/service_client_test.go +++ b/command/agent/consul/service_client_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/structs.go b/command/agent/consul/structs.go index 8b31d471e..4367a1cf4 100644 --- a/command/agent/consul/structs.go +++ b/command/agent/consul/structs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/testing.go b/command/agent/consul/testing.go index 86c649708..9c0698758 100644 --- a/command/agent/consul/testing.go +++ b/command/agent/consul/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/unit_test.go b/command/agent/consul/unit_test.go index 23c5ea79d..09a239281 100644 --- a/command/agent/consul/unit_test.go +++ b/command/agent/consul/unit_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/version_checker.go b/command/agent/consul/version_checker.go index f31f016ea..2e0fb637e 100644 --- a/command/agent/consul/version_checker.go +++ b/command/agent/consul/version_checker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/consul/version_checker_test.go b/command/agent/consul/version_checker_test.go index e098cf0ea..e88bf18d5 100644 --- a/command/agent/consul/version_checker_test.go +++ b/command/agent/consul/version_checker_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/command/agent/csi_endpoint.go b/command/agent/csi_endpoint.go index fb71bfd95..23790b333 100644 --- a/command/agent/csi_endpoint.go +++ b/command/agent/csi_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/csi_endpoint_test.go b/command/agent/csi_endpoint_test.go index f8187fa9a..55a500720 100644 --- a/command/agent/csi_endpoint_test.go +++ b/command/agent/csi_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/deployment_endpoint.go b/command/agent/deployment_endpoint.go index 58829adce..a4f03661c 100644 --- a/command/agent/deployment_endpoint.go +++ b/command/agent/deployment_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/deployment_endpoint_test.go b/command/agent/deployment_endpoint_test.go index 2a1742157..a1eca6c12 100644 --- a/command/agent/deployment_endpoint_test.go +++ b/command/agent/deployment_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/eval_endpoint.go b/command/agent/eval_endpoint.go index e52285a0c..77d210593 100644 --- a/command/agent/eval_endpoint.go +++ b/command/agent/eval_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/eval_endpoint_test.go b/command/agent/eval_endpoint_test.go index 8891506d6..fbc6ed46e 100644 --- a/command/agent/eval_endpoint_test.go +++ b/command/agent/eval_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/event/event.go b/command/agent/event/event.go index 2f1ac247e..0dc700fc4 100644 --- a/command/agent/event/event.go +++ b/command/agent/event/event.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package event import ( diff --git a/command/agent/event_endpoint.go b/command/agent/event_endpoint.go index 94ef92555..89fd81bd2 100644 --- a/command/agent/event_endpoint.go +++ b/command/agent/event_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/event_endpoint_test.go b/command/agent/event_endpoint_test.go index 209b45960..485eb09ca 100644 --- a/command/agent/event_endpoint_test.go +++ b/command/agent/event_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/fs_endpoint.go b/command/agent/fs_endpoint.go index 22be22541..1cc7a6924 100644 --- a/command/agent/fs_endpoint.go +++ b/command/agent/fs_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/fs_endpoint_test.go b/command/agent/fs_endpoint_test.go index 90b3d01cf..c45b8ed87 100644 --- a/command/agent/fs_endpoint_test.go +++ b/command/agent/fs_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/helpers.go b/command/agent/helpers.go index 7248ea5f8..aff659939 100644 --- a/command/agent/helpers.go +++ b/command/agent/helpers.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent // rpcHandlerForAlloc is a helper that given an allocation ID returns whether to diff --git a/command/agent/helpers_test.go b/command/agent/helpers_test.go index a53c6ea95..f649ed94e 100644 --- a/command/agent/helpers_test.go +++ b/command/agent/helpers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/host/darwin.go b/command/agent/host/darwin.go index 7a7807054..c690c9cce 100644 --- a/command/agent/host/darwin.go +++ b/command/agent/host/darwin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin // +build darwin diff --git a/command/agent/host/host.go b/command/agent/host/host.go index 08aeb53bd..b26fdcbb0 100644 --- a/command/agent/host/host.go +++ b/command/agent/host/host.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package host import ( diff --git a/command/agent/host/host_test.go b/command/agent/host/host_test.go index 65c1208d8..2d4b73908 100644 --- a/command/agent/host/host_test.go +++ b/command/agent/host/host_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package host import ( diff --git a/command/agent/host/linux.go b/command/agent/host/linux.go index f9776988b..4985e49c7 100644 --- a/command/agent/host/linux.go +++ b/command/agent/host/linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux // +build linux diff --git a/command/agent/host/network.go b/command/agent/host/network.go index 6f8d522c2..13870377a 100644 --- a/command/agent/host/network.go +++ b/command/agent/host/network.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package host import ( diff --git a/command/agent/host/unix.go b/command/agent/host/unix.go index 304170045..f7b9b1a5f 100644 --- a/command/agent/host/unix.go +++ b/command/agent/host/unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/command/agent/host/windows.go b/command/agent/host/windows.go index 11aa237f7..9098d121c 100644 --- a/command/agent/host/windows.go +++ b/command/agent/host/windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows // +build windows diff --git a/command/agent/http.go b/command/agent/http.go index 9c062a53c..5ccba35d6 100644 --- a/command/agent/http.go +++ b/command/agent/http.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/http_oss.go b/command/agent/http_oss.go index 7f54194c9..196b836a2 100644 --- a/command/agent/http_oss.go +++ b/command/agent/http_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/command/agent/http_stdlog.go b/command/agent/http_stdlog.go index a960bb655..9972ab65e 100644 --- a/command/agent/http_stdlog.go +++ b/command/agent/http_stdlog.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/http_stdlog_test.go b/command/agent/http_stdlog_test.go index aa9430242..9a3bd93f7 100644 --- a/command/agent/http_stdlog_test.go +++ b/command/agent/http_stdlog_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/http_test.go b/command/agent/http_test.go index 9f31caf51..59e4dd159 100644 --- a/command/agent/http_test.go +++ b/command/agent/http_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/job_endpoint.go b/command/agent/job_endpoint.go index ec7322403..6e3766f48 100644 --- a/command/agent/job_endpoint.go +++ b/command/agent/job_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/job_endpoint_test.go b/command/agent/job_endpoint_test.go index 907639102..fb355af01 100644 --- a/command/agent/job_endpoint_test.go +++ b/command/agent/job_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/keyring.go b/command/agent/keyring.go index 7a58c30b5..296b7c2cd 100644 --- a/command/agent/keyring.go +++ b/command/agent/keyring.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/keyring_endpoint.go b/command/agent/keyring_endpoint.go index 58f7dfddb..b95b82047 100644 --- a/command/agent/keyring_endpoint.go +++ b/command/agent/keyring_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/keyring_endpoint_test.go b/command/agent/keyring_endpoint_test.go index b97acaf1e..0a17b41ed 100644 --- a/command/agent/keyring_endpoint_test.go +++ b/command/agent/keyring_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/keyring_test.go b/command/agent/keyring_test.go index d234b8a55..ad3f91b3e 100644 --- a/command/agent/keyring_test.go +++ b/command/agent/keyring_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/log_file.go b/command/agent/log_file.go index 7bba86a31..6f18ac206 100644 --- a/command/agent/log_file.go +++ b/command/agent/log_file.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/log_file_bsd.go b/command/agent/log_file_bsd.go index b22711328..0872e8d4b 100644 --- a/command/agent/log_file_bsd.go +++ b/command/agent/log_file_bsd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || freebsd || netbsd || openbsd // +build darwin freebsd netbsd openbsd diff --git a/command/agent/log_file_linux.go b/command/agent/log_file_linux.go index 2f873b90f..bca1c48bd 100644 --- a/command/agent/log_file_linux.go +++ b/command/agent/log_file_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build dragonfly || linux || solaris // +build dragonfly linux solaris diff --git a/command/agent/log_file_test.go b/command/agent/log_file_test.go index 26864ec2c..760c6135d 100644 --- a/command/agent/log_file_test.go +++ b/command/agent/log_file_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/log_file_windows.go b/command/agent/log_file_windows.go index ea6a691f2..76eff6b70 100644 --- a/command/agent/log_file_windows.go +++ b/command/agent/log_file_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/log_levels.go b/command/agent/log_levels.go index a91e75959..66d2f81bd 100644 --- a/command/agent/log_levels.go +++ b/command/agent/log_levels.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/log_levels_test.go b/command/agent/log_levels_test.go index ab4d03842..734a39d04 100644 --- a/command/agent/log_levels_test.go +++ b/command/agent/log_levels_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/meta_endpoint.go b/command/agent/meta_endpoint.go index 282505549..db54e2c14 100644 --- a/command/agent/meta_endpoint.go +++ b/command/agent/meta_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/metrics_endpoint.go b/command/agent/metrics_endpoint.go index 90686cb3e..886c844be 100644 --- a/command/agent/metrics_endpoint.go +++ b/command/agent/metrics_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/metrics_endpoint_test.go b/command/agent/metrics_endpoint_test.go index 787f114b5..3e5042da8 100644 --- a/command/agent/metrics_endpoint_test.go +++ b/command/agent/metrics_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/monitor/monitor.go b/command/agent/monitor/monitor.go index 2a9108662..19ef56890 100644 --- a/command/agent/monitor/monitor.go +++ b/command/agent/monitor/monitor.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package monitor import ( diff --git a/command/agent/monitor/monitor_test.go b/command/agent/monitor/monitor_test.go index f005e4210..fb2b4a0fc 100644 --- a/command/agent/monitor/monitor_test.go +++ b/command/agent/monitor/monitor_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package monitor import ( diff --git a/command/agent/namespace_endpoint.go b/command/agent/namespace_endpoint.go index ccea00bd2..bf4dbd32f 100644 --- a/command/agent/namespace_endpoint.go +++ b/command/agent/namespace_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/namespace_endpoint_test.go b/command/agent/namespace_endpoint_test.go index b488fe16a..761c61bd6 100644 --- a/command/agent/namespace_endpoint_test.go +++ b/command/agent/namespace_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/node_endpoint.go b/command/agent/node_endpoint.go index 046227dbb..38a40f8ba 100644 --- a/command/agent/node_endpoint.go +++ b/command/agent/node_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/node_endpoint_test.go b/command/agent/node_endpoint_test.go index 406879a93..d9dd8b0cb 100644 --- a/command/agent/node_endpoint_test.go +++ b/command/agent/node_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/operator_endpoint.go b/command/agent/operator_endpoint.go index 4c8d278cd..63394d046 100644 --- a/command/agent/operator_endpoint.go +++ b/command/agent/operator_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/operator_endpoint_oss.go b/command/agent/operator_endpoint_oss.go index 8467c907b..13dc5d2e4 100644 --- a/command/agent/operator_endpoint_oss.go +++ b/command/agent/operator_endpoint_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/command/agent/operator_endpoint_test.go b/command/agent/operator_endpoint_test.go index cbfed0435..64e8742a1 100644 --- a/command/agent/operator_endpoint_test.go +++ b/command/agent/operator_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/plugins.go b/command/agent/plugins.go index 8f96d471d..5dab9021e 100644 --- a/command/agent/plugins.go +++ b/command/agent/plugins.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/plugins_test.go b/command/agent/plugins_test.go index be8c3d56c..f480b05a9 100644 --- a/command/agent/plugins_test.go +++ b/command/agent/plugins_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/pprof/pprof.go b/command/agent/pprof/pprof.go index 15ba3d5fe..bc5719948 100644 --- a/command/agent/pprof/pprof.go +++ b/command/agent/pprof/pprof.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package profile is meant to be a near identical implemenation of // https://golang.org/src/net/http/pprof/pprof.go // It's purpose is to provide a way to accommodate the RPC endpoint style diff --git a/command/agent/pprof/pprof_test.go b/command/agent/pprof/pprof_test.go index 08b6596de..b93508260 100644 --- a/command/agent/pprof/pprof_test.go +++ b/command/agent/pprof/pprof_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pprof import ( diff --git a/command/agent/region_endpoint.go b/command/agent/region_endpoint.go index 538adefb4..f674c4507 100644 --- a/command/agent/region_endpoint.go +++ b/command/agent/region_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/region_endpoint_test.go b/command/agent/region_endpoint_test.go index 30f84ed00..9a1ea1ffc 100644 --- a/command/agent/region_endpoint_test.go +++ b/command/agent/region_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/retry_join.go b/command/agent/retry_join.go index b48da2a8f..7d92c3778 100644 --- a/command/agent/retry_join.go +++ b/command/agent/retry_join.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/retry_join_test.go b/command/agent/retry_join_test.go index f349021c4..0fccb41eb 100644 --- a/command/agent/retry_join_test.go +++ b/command/agent/retry_join_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/scaling_endpoint.go b/command/agent/scaling_endpoint.go index 96a1b853c..f7355b69f 100644 --- a/command/agent/scaling_endpoint.go +++ b/command/agent/scaling_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/scaling_endpoint_test.go b/command/agent/scaling_endpoint_test.go index fe7faa2e3..9b37eba8f 100644 --- a/command/agent/scaling_endpoint_test.go +++ b/command/agent/scaling_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/search_endpoint.go b/command/agent/search_endpoint.go index 95e115834..d467543cf 100644 --- a/command/agent/search_endpoint.go +++ b/command/agent/search_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/search_endpoint_test.go b/command/agent/search_endpoint_test.go index 23c37b970..4ee6b8cff 100644 --- a/command/agent/search_endpoint_test.go +++ b/command/agent/search_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/service_registration_endpoint.go b/command/agent/service_registration_endpoint.go index 3d6151bea..44f62e68a 100644 --- a/command/agent/service_registration_endpoint.go +++ b/command/agent/service_registration_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/service_registration_endpoint_test.go b/command/agent/service_registration_endpoint_test.go index 489c6fa98..9e2f77249 100644 --- a/command/agent/service_registration_endpoint_test.go +++ b/command/agent/service_registration_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/stats_endpoint.go b/command/agent/stats_endpoint.go index 0958ac2a5..affeab70a 100644 --- a/command/agent/stats_endpoint.go +++ b/command/agent/stats_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/stats_endpoint_test.go b/command/agent/stats_endpoint_test.go index 6778ef58d..162e030ca 100644 --- a/command/agent/stats_endpoint_test.go +++ b/command/agent/stats_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/status_endpoint.go b/command/agent/status_endpoint.go index 7e25cf84e..d5513925e 100644 --- a/command/agent/status_endpoint.go +++ b/command/agent/status_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/status_endpoint_test.go b/command/agent/status_endpoint_test.go index 9be35c4f2..fe400db13 100644 --- a/command/agent/status_endpoint_test.go +++ b/command/agent/status_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/stub_asset.go b/command/agent/stub_asset.go index 17fbd2592..fb3dd1c71 100644 --- a/command/agent/stub_asset.go +++ b/command/agent/stub_asset.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ui // +build !ui diff --git a/command/agent/syslog.go b/command/agent/syslog.go index 90b44742f..110c661dc 100644 --- a/command/agent/syslog.go +++ b/command/agent/syslog.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/syslog_test.go b/command/agent/syslog_test.go index 44fa82c5a..f7d74dd23 100644 --- a/command/agent/syslog_test.go +++ b/command/agent/syslog_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/system_endpoint.go b/command/agent/system_endpoint.go index ef7a81222..e375d67a7 100644 --- a/command/agent/system_endpoint.go +++ b/command/agent/system_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/system_endpoint_test.go b/command/agent/system_endpoint_test.go index 504b44f54..6f8e3f61c 100644 --- a/command/agent/system_endpoint_test.go +++ b/command/agent/system_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/test-resources/client_with_basic_template.hcl b/command/agent/test-resources/client_with_basic_template.hcl index fc1fcb493..3f0c27932 100644 --- a/command/agent/test-resources/client_with_basic_template.hcl +++ b/command/agent/test-resources/client_with_basic_template.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { enabled = true diff --git a/command/agent/test-resources/client_with_empty_template.hcl b/command/agent/test-resources/client_with_empty_template.hcl index 7d0eeec11..82a889b34 100644 --- a/command/agent/test-resources/client_with_empty_template.hcl +++ b/command/agent/test-resources/client_with_empty_template.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { enabled = true diff --git a/command/agent/test-resources/client_with_function_denylist.hcl b/command/agent/test-resources/client_with_function_denylist.hcl index f1f60f4ed..07fcf87e0 100644 --- a/command/agent/test-resources/client_with_function_denylist.hcl +++ b/command/agent/test-resources/client_with_function_denylist.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { enabled = true diff --git a/command/agent/test-resources/client_with_function_denylist_empty.hcl b/command/agent/test-resources/client_with_function_denylist_empty.hcl index 17ea0f42b..7bceaa0d7 100644 --- a/command/agent/test-resources/client_with_function_denylist_empty.hcl +++ b/command/agent/test-resources/client_with_function_denylist_empty.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { enabled = true diff --git a/command/agent/test-resources/client_with_function_denylist_empty_string.hcl b/command/agent/test-resources/client_with_function_denylist_empty_string.hcl index 91f3b3910..934ceb34d 100644 --- a/command/agent/test-resources/client_with_function_denylist_empty_string.hcl +++ b/command/agent/test-resources/client_with_function_denylist_empty_string.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { enabled = true diff --git a/command/agent/test-resources/client_with_function_denylist_nil.hcl b/command/agent/test-resources/client_with_function_denylist_nil.hcl index 15f090bb7..bc472f582 100644 --- a/command/agent/test-resources/client_with_function_denylist_nil.hcl +++ b/command/agent/test-resources/client_with_function_denylist_nil.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { enabled = true diff --git a/command/agent/test-resources/client_with_template.hcl b/command/agent/test-resources/client_with_template.hcl index ff310f22f..1ec8571c7 100644 --- a/command/agent/test-resources/client_with_template.hcl +++ b/command/agent/test-resources/client_with_template.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { enabled = true diff --git a/command/agent/test-resources/etcnomad/common.hcl b/command/agent/test-resources/etcnomad/common.hcl index 2e8eb7f6e..fb3ac397c 100644 --- a/command/agent/test-resources/etcnomad/common.hcl +++ b/command/agent/test-resources/etcnomad/common.hcl @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + bind_addr = "0.0.0.0" diff --git a/command/agent/test-resources/minimal_client.hcl b/command/agent/test-resources/minimal_client.hcl index cae89867b..fb7e948e7 100644 --- a/command/agent/test-resources/minimal_client.hcl +++ b/command/agent/test-resources/minimal_client.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { enabled = true } diff --git a/command/agent/testagent.go b/command/agent/testagent.go index 9f3f6e73e..074a44e03 100644 --- a/command/agent/testagent.go +++ b/command/agent/testagent.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/testagent_oss.go b/command/agent/testagent_oss.go index 4f93ace4a..a44c71fad 100644 --- a/command/agent/testagent_oss.go +++ b/command/agent/testagent_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/command/agent/testdata/basic.hcl b/command/agent/testdata/basic.hcl index 1ec40a2cb..c3637c680 100644 --- a/command/agent/testdata/basic.hcl +++ b/command/agent/testdata/basic.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # This file was used to generate basic.json from https://www.hcl2json.com/ region = "foobar" diff --git a/command/agent/testdata/config-slices.hcl b/command/agent/testdata/config-slices.hcl index 98be21cae..c51ede6b6 100644 --- a/command/agent/testdata/config-slices.hcl +++ b/command/agent/testdata/config-slices.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client "chroot_env" { "e0" = "baz" } diff --git a/command/agent/testdata/non-optional.hcl b/command/agent/testdata/non-optional.hcl index 9e49cf8f1..6522d77fa 100644 --- a/command/agent/testdata/non-optional.hcl +++ b/command/agent/testdata/non-optional.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { memory_total_mb = 5555 } diff --git a/command/agent/testdata/obj-len-one.hcl b/command/agent/testdata/obj-len-one.hcl index 7d1485a29..636f3f31f 100644 --- a/command/agent/testdata/obj-len-one.hcl +++ b/command/agent/testdata/obj-len-one.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { options { driver.allowlist = "docker" diff --git a/command/agent/testdata/plugin.hcl b/command/agent/testdata/plugin.hcl index 1e26770b6..2cb7c90d9 100644 --- a/command/agent/testdata/plugin.hcl +++ b/command/agent/testdata/plugin.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { memory_total_mb = 5555 } diff --git a/command/agent/testdata/sample1/sample2.hcl b/command/agent/testdata/sample1/sample2.hcl index fef851553..a9c7bc5bc 100644 --- a/command/agent/testdata/sample1/sample2.hcl +++ b/command/agent/testdata/sample1/sample2.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + "advertise" = { "http" = "host.example.com" "rpc" = "host.example.com" diff --git a/command/agent/testingutils_test.go b/command/agent/testingutils_test.go index 270621f73..d1603be02 100644 --- a/command/agent/testingutils_test.go +++ b/command/agent/testingutils_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/variable_endpoint.go b/command/agent/variable_endpoint.go index 98c581d54..6542a12c9 100644 --- a/command/agent/variable_endpoint.go +++ b/command/agent/variable_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent/variable_endpoint_test.go b/command/agent/variable_endpoint_test.go index 74c32ecb7..fb9ba4f23 100644 --- a/command/agent/variable_endpoint_test.go +++ b/command/agent/variable_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/command/agent_info.go b/command/agent_info.go index f7309eea2..28a7cfd20 100644 --- a/command/agent_info.go +++ b/command/agent_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/agent_info_test.go b/command/agent_info_test.go index bd559c6da..ddd0312d5 100644 --- a/command/agent_info_test.go +++ b/command/agent_info_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/agent_monitor.go b/command/agent_monitor.go index 2a4d99091..c1c6d8d52 100644 --- a/command/agent_monitor.go +++ b/command/agent_monitor.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/agent_monitor_test.go b/command/agent_monitor_test.go index 27665e98b..6cc26e176 100644 --- a/command/agent_monitor_test.go +++ b/command/agent_monitor_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc.go b/command/alloc.go index f3d8663bc..8d2a74f95 100644 --- a/command/alloc.go +++ b/command/alloc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_checks.go b/command/alloc_checks.go index f5084f829..fd6f83925 100644 --- a/command/alloc_checks.go +++ b/command/alloc_checks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_checks_test.go b/command/alloc_checks_test.go index fe133e9fe..be1b26195 100644 --- a/command/alloc_checks_test.go +++ b/command/alloc_checks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_exec.go b/command/alloc_exec.go index 9487032a7..5bba969be 100644 --- a/command/alloc_exec.go +++ b/command/alloc_exec.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_exec_test.go b/command/alloc_exec_test.go index d8f622786..69ebc5a60 100644 --- a/command/alloc_exec_test.go +++ b/command/alloc_exec_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_exec_unix.go b/command/alloc_exec_unix.go index a03caaed1..d3a004db0 100644 --- a/command/alloc_exec_unix.go +++ b/command/alloc_exec_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris diff --git a/command/alloc_exec_windows.go b/command/alloc_exec_windows.go index 882c757c0..ea9e81e95 100644 --- a/command/alloc_exec_windows.go +++ b/command/alloc_exec_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_fs.go b/command/alloc_fs.go index 1912ebc1c..c21c7c28a 100644 --- a/command/alloc_fs.go +++ b/command/alloc_fs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_fs_test.go b/command/alloc_fs_test.go index d426fb0f6..44fe9f153 100644 --- a/command/alloc_fs_test.go +++ b/command/alloc_fs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_logs.go b/command/alloc_logs.go index eca78baf6..03d16174c 100644 --- a/command/alloc_logs.go +++ b/command/alloc_logs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_logs_test.go b/command/alloc_logs_test.go index 3cc558daf..f3ab6ee4f 100644 --- a/command/alloc_logs_test.go +++ b/command/alloc_logs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_restart.go b/command/alloc_restart.go index cc6d91654..1b213ccb6 100644 --- a/command/alloc_restart.go +++ b/command/alloc_restart.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_restart_test.go b/command/alloc_restart_test.go index 098906103..c327d684f 100644 --- a/command/alloc_restart_test.go +++ b/command/alloc_restart_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_signal.go b/command/alloc_signal.go index e4db386f9..1b2bacc1f 100644 --- a/command/alloc_signal.go +++ b/command/alloc_signal.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_signal_test.go b/command/alloc_signal_test.go index f7c8af465..e3fdabaa5 100644 --- a/command/alloc_signal_test.go +++ b/command/alloc_signal_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_status.go b/command/alloc_status.go index 335f4f4b9..ba19b08ca 100644 --- a/command/alloc_status.go +++ b/command/alloc_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_status_test.go b/command/alloc_status_test.go index ae1eff7b8..919d3a333 100644 --- a/command/alloc_status_test.go +++ b/command/alloc_status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_stop.go b/command/alloc_stop.go index bbb8a341a..1c7b2e718 100644 --- a/command/alloc_stop.go +++ b/command/alloc_stop.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/alloc_stop_test.go b/command/alloc_stop_test.go index 6a85ef5c1..4383a56df 100644 --- a/command/alloc_stop_test.go +++ b/command/alloc_stop_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/asset/asset.go b/command/asset/asset.go index a67597df1..474623e5d 100644 --- a/command/asset/asset.go +++ b/command/asset/asset.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package asset import _ "embed" diff --git a/command/asset/connect-short.nomad.hcl b/command/asset/connect-short.nomad.hcl index 91a1948be..e376602b1 100644 --- a/command/asset/connect-short.nomad.hcl +++ b/command/asset/connect-short.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "countdash" { group "api" { diff --git a/command/asset/connect.nomad.hcl b/command/asset/connect.nomad.hcl index cca46cb01..2be4c29a6 100644 --- a/command/asset/connect.nomad.hcl +++ b/command/asset/connect.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # There can only be a single job definition per file. This job is named # "countdash" so it will create a job with the ID and Name "countdash". diff --git a/command/asset/example-short.nomad.hcl b/command/asset/example-short.nomad.hcl index 930e06627..39fdbbc5f 100644 --- a/command/asset/example-short.nomad.hcl +++ b/command/asset/example-short.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "example" { group "cache" { diff --git a/command/asset/example.nomad.hcl b/command/asset/example.nomad.hcl index 3403321ec..57abd9f3a 100644 --- a/command/asset/example.nomad.hcl +++ b/command/asset/example.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # There can only be a single job definition per file. This job is named # "example" so it will create a job with the ID and Name "example". diff --git a/command/check.go b/command/check.go index 9b0801300..456e94685 100644 --- a/command/check.go +++ b/command/check.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/check_test.go b/command/check_test.go index 5eed44735..885a2be0a 100644 --- a/command/check_test.go +++ b/command/check_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/commands.go b/command/commands.go index b7b041ca3..9f1d225e4 100644 --- a/command/commands.go +++ b/command/commands.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/commands_oss.go b/command/commands_oss.go index 2b283681f..3beb49fef 100644 --- a/command/commands_oss.go +++ b/command/commands_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/command/config.go b/command/config.go index 16b47d578..190409c88 100644 --- a/command/config.go +++ b/command/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/config_validate.go b/command/config_validate.go index 3efb4d307..40546f6bc 100644 --- a/command/config_validate.go +++ b/command/config_validate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/config_validate_test.go b/command/config_validate_test.go index 78ec2197f..ddaa9c743 100644 --- a/command/config_validate_test.go +++ b/command/config_validate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/data_format.go b/command/data_format.go index 9a6141b81..dc31d8813 100644 --- a/command/data_format.go +++ b/command/data_format.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/data_format_test.go b/command/data_format_test.go index c17e06742..585fbece3 100644 --- a/command/data_format_test.go +++ b/command/data_format_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment.go b/command/deployment.go index 6d20de9f5..48375895d 100644 --- a/command/deployment.go +++ b/command/deployment.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_fail.go b/command/deployment_fail.go index 3e0557a4d..8a227c320 100644 --- a/command/deployment_fail.go +++ b/command/deployment_fail.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_fail_test.go b/command/deployment_fail_test.go index 463300c4a..583db9fcc 100644 --- a/command/deployment_fail_test.go +++ b/command/deployment_fail_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_list.go b/command/deployment_list.go index 95ea0b2ec..e1fed89ec 100644 --- a/command/deployment_list.go +++ b/command/deployment_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_list_test.go b/command/deployment_list_test.go index 95099a1b3..c88952187 100644 --- a/command/deployment_list_test.go +++ b/command/deployment_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_pause.go b/command/deployment_pause.go index 7d021de1a..633f1bc86 100644 --- a/command/deployment_pause.go +++ b/command/deployment_pause.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_pause_test.go b/command/deployment_pause_test.go index a677461cd..cef097c42 100644 --- a/command/deployment_pause_test.go +++ b/command/deployment_pause_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_promote.go b/command/deployment_promote.go index 9e44c29d3..ddbfb7fe6 100644 --- a/command/deployment_promote.go +++ b/command/deployment_promote.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_promote_test.go b/command/deployment_promote_test.go index 7259caca8..e26288322 100644 --- a/command/deployment_promote_test.go +++ b/command/deployment_promote_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_resume.go b/command/deployment_resume.go index 156dfcafa..19bc999a0 100644 --- a/command/deployment_resume.go +++ b/command/deployment_resume.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_resume_test.go b/command/deployment_resume_test.go index b136b34be..1f3735747 100644 --- a/command/deployment_resume_test.go +++ b/command/deployment_resume_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_status.go b/command/deployment_status.go index 260f54bf0..3c5b1bea6 100644 --- a/command/deployment_status.go +++ b/command/deployment_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_status_test.go b/command/deployment_status_test.go index 777addd1e..9ec834f17 100644 --- a/command/deployment_status_test.go +++ b/command/deployment_status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_unblock.go b/command/deployment_unblock.go index 23b6e138f..facb2faf3 100644 --- a/command/deployment_unblock.go +++ b/command/deployment_unblock.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/deployment_unblock_test.go b/command/deployment_unblock_test.go index ee1350b79..b6a39a05c 100644 --- a/command/deployment_unblock_test.go +++ b/command/deployment_unblock_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/eval.go b/command/eval.go index 0f7a22017..1483e56ac 100644 --- a/command/eval.go +++ b/command/eval.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/eval_delete.go b/command/eval_delete.go index 45c638b25..44bfbc7cf 100644 --- a/command/eval_delete.go +++ b/command/eval_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/eval_delete_test.go b/command/eval_delete_test.go index bfdd3d8dd..e306a4929 100644 --- a/command/eval_delete_test.go +++ b/command/eval_delete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/eval_list.go b/command/eval_list.go index 2baab393b..a6683078c 100644 --- a/command/eval_list.go +++ b/command/eval_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/eval_list_test.go b/command/eval_list_test.go index 141e64a36..13d369b68 100644 --- a/command/eval_list_test.go +++ b/command/eval_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/eval_status.go b/command/eval_status.go index 189bafceb..2396c2452 100644 --- a/command/eval_status.go +++ b/command/eval_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/eval_status_test.go b/command/eval_status_test.go index 3f1287813..66ddc5a26 100644 --- a/command/eval_status_test.go +++ b/command/eval_status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/event.go b/command/event.go index f9a3a4ae6..ea8f42261 100644 --- a/command/event.go +++ b/command/event.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/event_test.go b/command/event_test.go index 8c6a01651..2f5c9ce58 100644 --- a/command/event_test.go +++ b/command/event_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/fmt.go b/command/fmt.go index fe64c20e2..8e769ac46 100644 --- a/command/fmt.go +++ b/command/fmt.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/fmt_test.go b/command/fmt_test.go index 082656169..c223cfbb0 100644 --- a/command/fmt_test.go +++ b/command/fmt_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/helper_devices.go b/command/helper_devices.go index ba88cb3fd..41bf6367c 100644 --- a/command/helper_devices.go +++ b/command/helper_devices.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/helper_devices_test.go b/command/helper_devices_test.go index 17577d094..df432c282 100644 --- a/command/helper_devices_test.go +++ b/command/helper_devices_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/helpers.go b/command/helpers.go index 1d9de2467..97cb918f0 100644 --- a/command/helpers.go +++ b/command/helpers.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/helpers_test.go b/command/helpers_test.go index ae651e067..6547a2d0e 100644 --- a/command/helpers_test.go +++ b/command/helpers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/integration_test.go b/command/integration_test.go index 6a7650ac9..236316cde 100644 --- a/command/integration_test.go +++ b/command/integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job.go b/command/job.go index 79d6a00e8..ba5c7750a 100644 --- a/command/job.go +++ b/command/job.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_allocs.go b/command/job_allocs.go index 124468da7..e3f55b868 100644 --- a/command/job_allocs.go +++ b/command/job_allocs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_allocs_test.go b/command/job_allocs_test.go index 3c8f9a6ae..57c637393 100644 --- a/command/job_allocs_test.go +++ b/command/job_allocs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_deployments.go b/command/job_deployments.go index e3a043383..8d045bf9f 100644 --- a/command/job_deployments.go +++ b/command/job_deployments.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_deployments_test.go b/command/job_deployments_test.go index e09317072..f8952d5c5 100644 --- a/command/job_deployments_test.go +++ b/command/job_deployments_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_dispatch.go b/command/job_dispatch.go index aa7c2d190..edd09f0dc 100644 --- a/command/job_dispatch.go +++ b/command/job_dispatch.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_dispatch_test.go b/command/job_dispatch_test.go index 1f3e2a52a..c1c6ab1bb 100644 --- a/command/job_dispatch_test.go +++ b/command/job_dispatch_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_eval.go b/command/job_eval.go index d5535be79..3e5c60035 100644 --- a/command/job_eval.go +++ b/command/job_eval.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_eval_test.go b/command/job_eval_test.go index ad34e540d..8b3a1f588 100644 --- a/command/job_eval_test.go +++ b/command/job_eval_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_history.go b/command/job_history.go index 4c35135cf..acd77e6cb 100644 --- a/command/job_history.go +++ b/command/job_history.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_history_test.go b/command/job_history_test.go index 69ede9f6a..c0f5a63d1 100644 --- a/command/job_history_test.go +++ b/command/job_history_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_init.go b/command/job_init.go index 032e77d83..77afb63a0 100644 --- a/command/job_init.go +++ b/command/job_init.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_init_test.go b/command/job_init_test.go index f8213c8d7..8417d8306 100644 --- a/command/job_init_test.go +++ b/command/job_init_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_inspect.go b/command/job_inspect.go index 7ca8aeb14..ccb196490 100644 --- a/command/job_inspect.go +++ b/command/job_inspect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_inspect_test.go b/command/job_inspect_test.go index 182b1c4a6..067eda9c9 100644 --- a/command/job_inspect_test.go +++ b/command/job_inspect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_periodic.go b/command/job_periodic.go index 020e2ab29..8bdde0e27 100644 --- a/command/job_periodic.go +++ b/command/job_periodic.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_periodic_force.go b/command/job_periodic_force.go index 8c18ed8c8..d58989e54 100644 --- a/command/job_periodic_force.go +++ b/command/job_periodic_force.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_periodic_force_test.go b/command/job_periodic_force_test.go index b21c6ad4c..6cefba335 100644 --- a/command/job_periodic_force_test.go +++ b/command/job_periodic_force_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_plan.go b/command/job_plan.go index 45c3fbe40..10e8af7fa 100644 --- a/command/job_plan.go +++ b/command/job_plan.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_plan_test.go b/command/job_plan_test.go index aeaf63f83..30f3146f2 100644 --- a/command/job_plan_test.go +++ b/command/job_plan_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_promote.go b/command/job_promote.go index 74e053cf9..a131887d0 100644 --- a/command/job_promote.go +++ b/command/job_promote.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_promote_test.go b/command/job_promote_test.go index c6ebe00c2..68c7c488f 100644 --- a/command/job_promote_test.go +++ b/command/job_promote_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_restart.go b/command/job_restart.go index 55084bf79..33f8b183f 100644 --- a/command/job_restart.go +++ b/command/job_restart.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_restart_test.go b/command/job_restart_test.go index d33bf879a..af21438b5 100644 --- a/command/job_restart_test.go +++ b/command/job_restart_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_revert.go b/command/job_revert.go index 87a7ab808..9fa66c35a 100644 --- a/command/job_revert.go +++ b/command/job_revert.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_revert_test.go b/command/job_revert_test.go index 3c8e644f1..850a8c1cf 100644 --- a/command/job_revert_test.go +++ b/command/job_revert_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_run.go b/command/job_run.go index 7e7090f16..d4dc701ac 100644 --- a/command/job_run.go +++ b/command/job_run.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_run_test.go b/command/job_run_test.go index 6c2c55b9b..65875a059 100644 --- a/command/job_run_test.go +++ b/command/job_run_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_scale.go b/command/job_scale.go index 46e652c5f..626d734b1 100644 --- a/command/job_scale.go +++ b/command/job_scale.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_scale_test.go b/command/job_scale_test.go index c4eb3a2af..fa947db60 100644 --- a/command/job_scale_test.go +++ b/command/job_scale_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_scaling_events.go b/command/job_scaling_events.go index 9fdb91d23..29d91a87c 100644 --- a/command/job_scaling_events.go +++ b/command/job_scaling_events.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_scaling_events_test.go b/command/job_scaling_events_test.go index 020b46557..471b2b63e 100644 --- a/command/job_scaling_events_test.go +++ b/command/job_scaling_events_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_status.go b/command/job_status.go index 4040fc835..d33614859 100644 --- a/command/job_status.go +++ b/command/job_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_status_test.go b/command/job_status_test.go index 70475c6c7..28fb7c655 100644 --- a/command/job_status_test.go +++ b/command/job_status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_stop.go b/command/job_stop.go index b97c50be7..8a39818c4 100644 --- a/command/job_stop.go +++ b/command/job_stop.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_stop_test.go b/command/job_stop_test.go index 454094b1d..b4b8ccb67 100644 --- a/command/job_stop_test.go +++ b/command/job_stop_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_validate.go b/command/job_validate.go index 8f234793a..658cda97f 100644 --- a/command/job_validate.go +++ b/command/job_validate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/job_validate_test.go b/command/job_validate_test.go index 3afb3eae2..1b98922ae 100644 --- a/command/job_validate_test.go +++ b/command/job_validate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/license.go b/command/license.go index d9b2666c2..5863c3ebf 100644 --- a/command/license.go +++ b/command/license.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/license_get.go b/command/license_get.go index eff38d713..018965694 100644 --- a/command/license_get.go +++ b/command/license_get.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/license_get_test.go b/command/license_get_test.go index f8f4de253..f53e9016c 100644 --- a/command/license_get_test.go +++ b/command/license_get_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/login.go b/command/login.go index a80d87a6c..91914f7e9 100644 --- a/command/login.go +++ b/command/login.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/login_test.go b/command/login_test.go index ce66a8e01..aa6031d75 100644 --- a/command/login_test.go +++ b/command/login_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/meta.go b/command/meta.go index b8eac1900..5a7a6c38f 100644 --- a/command/meta.go +++ b/command/meta.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/meta_test.go b/command/meta_test.go index 99e069619..f6a3fceb1 100644 --- a/command/meta_test.go +++ b/command/meta_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/metrics.go b/command/metrics.go index 0d763556a..0913b7ebf 100644 --- a/command/metrics.go +++ b/command/metrics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/metrics_test.go b/command/metrics_test.go index f899fa3e7..f1da8a0ab 100644 --- a/command/metrics_test.go +++ b/command/metrics_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/monitor.go b/command/monitor.go index c83fc2aab..d115c7655 100644 --- a/command/monitor.go +++ b/command/monitor.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/monitor_test.go b/command/monitor_test.go index 0d54b567d..a9b7bd34f 100644 --- a/command/monitor_test.go +++ b/command/monitor_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace.go b/command/namespace.go index e01a92273..76628f88a 100644 --- a/command/namespace.go +++ b/command/namespace.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace_apply.go b/command/namespace_apply.go index 9093ea6e3..4186e7e24 100644 --- a/command/namespace_apply.go +++ b/command/namespace_apply.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace_apply_test.go b/command/namespace_apply_test.go index e27b93531..8909be386 100644 --- a/command/namespace_apply_test.go +++ b/command/namespace_apply_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace_delete.go b/command/namespace_delete.go index 7f4e0f97e..ee8fcec18 100644 --- a/command/namespace_delete.go +++ b/command/namespace_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace_delete_test.go b/command/namespace_delete_test.go index b806b2aa7..262a9391a 100644 --- a/command/namespace_delete_test.go +++ b/command/namespace_delete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace_inspect.go b/command/namespace_inspect.go index 58ae675fc..0b9ad1262 100644 --- a/command/namespace_inspect.go +++ b/command/namespace_inspect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace_inspect_test.go b/command/namespace_inspect_test.go index e81744051..67cab19b9 100644 --- a/command/namespace_inspect_test.go +++ b/command/namespace_inspect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace_list.go b/command/namespace_list.go index 988afff3f..fedc94db0 100644 --- a/command/namespace_list.go +++ b/command/namespace_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace_list_test.go b/command/namespace_list_test.go index 0cc2d67a4..ca0df6a05 100644 --- a/command/namespace_list_test.go +++ b/command/namespace_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace_status.go b/command/namespace_status.go index 3c3d3a857..48ab86362 100644 --- a/command/namespace_status.go +++ b/command/namespace_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/namespace_status_oss_test.go b/command/namespace_status_oss_test.go index 7bc4d2e56..2261ba6e0 100644 --- a/command/namespace_status_oss_test.go +++ b/command/namespace_status_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/command/namespace_status_test.go b/command/namespace_status_test.go index e5f248530..a22568e06 100644 --- a/command/namespace_status_test.go +++ b/command/namespace_status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node.go b/command/node.go index 29448289a..0f45af76e 100644 --- a/command/node.go +++ b/command/node.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_config.go b/command/node_config.go index 96b7dd814..f58a35d48 100644 --- a/command/node_config.go +++ b/command/node_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_config_test.go b/command/node_config_test.go index 4583883a9..b436e1941 100644 --- a/command/node_config_test.go +++ b/command/node_config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_drain.go b/command/node_drain.go index c9ce8cccc..b1c8450d0 100644 --- a/command/node_drain.go +++ b/command/node_drain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_drain_test.go b/command/node_drain_test.go index 26eae57d7..593a7ba3e 100644 --- a/command/node_drain_test.go +++ b/command/node_drain_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_eligibility.go b/command/node_eligibility.go index 5695dea1b..1bf293852 100644 --- a/command/node_eligibility.go +++ b/command/node_eligibility.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_eligibility_test.go b/command/node_eligibility_test.go index bf2b0e546..22726d2e9 100644 --- a/command/node_eligibility_test.go +++ b/command/node_eligibility_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_meta.go b/command/node_meta.go index 3a97a818d..0df6e88bc 100644 --- a/command/node_meta.go +++ b/command/node_meta.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_meta_apply.go b/command/node_meta_apply.go index 1bd4ca086..e295ccb7d 100644 --- a/command/node_meta_apply.go +++ b/command/node_meta_apply.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_meta_apply_test.go b/command/node_meta_apply_test.go index fd4b82e08..6b7a11b5c 100644 --- a/command/node_meta_apply_test.go +++ b/command/node_meta_apply_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_meta_read.go b/command/node_meta_read.go index 19e740d82..34bf5044d 100644 --- a/command/node_meta_read.go +++ b/command/node_meta_read.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_status.go b/command/node_status.go index e71077f4a..1c488e5a2 100644 --- a/command/node_status.go +++ b/command/node_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/node_status_test.go b/command/node_status_test.go index b58a7e731..f060fd702 100644 --- a/command/node_status_test.go +++ b/command/node_status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator.go b/command/operator.go index 3937bc2e3..c025e03f0 100644 --- a/command/operator.go +++ b/command/operator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_api.go b/command/operator_api.go index 20bad2560..4cc6cf630 100644 --- a/command/operator_api.go +++ b/command/operator_api.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_api_test.go b/command/operator_api_test.go index b71e65787..71c83fac4 100644 --- a/command/operator_api_test.go +++ b/command/operator_api_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_autopilot.go b/command/operator_autopilot.go index aa73296c5..dff94142b 100644 --- a/command/operator_autopilot.go +++ b/command/operator_autopilot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_autopilot_get.go b/command/operator_autopilot_get.go index 0abd4788e..0ff0c8d32 100644 --- a/command/operator_autopilot_get.go +++ b/command/operator_autopilot_get.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_autopilot_get_test.go b/command/operator_autopilot_get_test.go index 07b510bd4..7700f4873 100644 --- a/command/operator_autopilot_get_test.go +++ b/command/operator_autopilot_get_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_autopilot_set.go b/command/operator_autopilot_set.go index 95b0d87d0..b91984f70 100644 --- a/command/operator_autopilot_set.go +++ b/command/operator_autopilot_set.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_autopilot_set_test.go b/command/operator_autopilot_set_test.go index 0bff571fa..ab28a56c2 100644 --- a/command/operator_autopilot_set_test.go +++ b/command/operator_autopilot_set_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_autopilot_test.go b/command/operator_autopilot_test.go index 85fd99103..576a4dce3 100644 --- a/command/operator_autopilot_test.go +++ b/command/operator_autopilot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_client_state.go b/command/operator_client_state.go index ce8da4e8e..773b47d52 100644 --- a/command/operator_client_state.go +++ b/command/operator_client_state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_client_state_test.go b/command/operator_client_state_test.go index 3ae55a251..e0dc1b249 100644 --- a/command/operator_client_state_test.go +++ b/command/operator_client_state_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_debug.go b/command/operator_debug.go index eeb4321d8..3619fba55 100644 --- a/command/operator_debug.go +++ b/command/operator_debug.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_debug_test.go b/command/operator_debug_test.go index 7a3d2cc86..92e1f91b7 100644 --- a/command/operator_debug_test.go +++ b/command/operator_debug_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_gossip_keyring.go b/command/operator_gossip_keyring.go index 5d3b71da1..01a9822a2 100644 --- a/command/operator_gossip_keyring.go +++ b/command/operator_gossip_keyring.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_gossip_keyring_generate.go b/command/operator_gossip_keyring_generate.go index ca78fdfc5..143550517 100644 --- a/command/operator_gossip_keyring_generate.go +++ b/command/operator_gossip_keyring_generate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_gossip_keyring_install.go b/command/operator_gossip_keyring_install.go index 8fd31680c..0ba99fea7 100644 --- a/command/operator_gossip_keyring_install.go +++ b/command/operator_gossip_keyring_install.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_gossip_keyring_list.go b/command/operator_gossip_keyring_list.go index 5bb86e181..7603fd80b 100644 --- a/command/operator_gossip_keyring_list.go +++ b/command/operator_gossip_keyring_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_gossip_keyring_remove.go b/command/operator_gossip_keyring_remove.go index 70e89728d..193d548d5 100644 --- a/command/operator_gossip_keyring_remove.go +++ b/command/operator_gossip_keyring_remove.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_gossip_keyring_test.go b/command/operator_gossip_keyring_test.go index b6535e06b..165511bbb 100644 --- a/command/operator_gossip_keyring_test.go +++ b/command/operator_gossip_keyring_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_gossip_keyring_use.go b/command/operator_gossip_keyring_use.go index 2b5d7d5c0..cac816c6b 100644 --- a/command/operator_gossip_keyring_use.go +++ b/command/operator_gossip_keyring_use.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_raft.go b/command/operator_raft.go index a1aac4875..9e3d7e0eb 100644 --- a/command/operator_raft.go +++ b/command/operator_raft.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_raft_info.go b/command/operator_raft_info.go index 18622e810..4ce1be54d 100644 --- a/command/operator_raft_info.go +++ b/command/operator_raft_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_raft_list.go b/command/operator_raft_list.go index 2e235e255..eee9f7998 100644 --- a/command/operator_raft_list.go +++ b/command/operator_raft_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_raft_list_test.go b/command/operator_raft_list_test.go index 8c615bd3d..99dcb7825 100644 --- a/command/operator_raft_list_test.go +++ b/command/operator_raft_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_raft_logs.go b/command/operator_raft_logs.go index 006827aa6..0816f65f9 100644 --- a/command/operator_raft_logs.go +++ b/command/operator_raft_logs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_raft_remove.go b/command/operator_raft_remove.go index 2661d2bbd..cd1500d3d 100644 --- a/command/operator_raft_remove.go +++ b/command/operator_raft_remove.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_raft_remove_test.go b/command/operator_raft_remove_test.go index eea792459..f8f3833fe 100644 --- a/command/operator_raft_remove_test.go +++ b/command/operator_raft_remove_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_raft_state.go b/command/operator_raft_state.go index a116ae97f..3d8f844df 100644 --- a/command/operator_raft_state.go +++ b/command/operator_raft_state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_raft_test.go b/command/operator_raft_test.go index 6ee6d2d9a..42f33eec6 100644 --- a/command/operator_raft_test.go +++ b/command/operator_raft_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_root_keyring.go b/command/operator_root_keyring.go index 2fde6e45e..fb18902ed 100644 --- a/command/operator_root_keyring.go +++ b/command/operator_root_keyring.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_root_keyring_list.go b/command/operator_root_keyring_list.go index 4891a56a4..4651413a0 100644 --- a/command/operator_root_keyring_list.go +++ b/command/operator_root_keyring_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_root_keyring_remove.go b/command/operator_root_keyring_remove.go index a4bc86838..fe7b7fa53 100644 --- a/command/operator_root_keyring_remove.go +++ b/command/operator_root_keyring_remove.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_root_keyring_rotate.go b/command/operator_root_keyring_rotate.go index 99fc92352..664d9ed83 100644 --- a/command/operator_root_keyring_rotate.go +++ b/command/operator_root_keyring_rotate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_scheduler.go b/command/operator_scheduler.go index 3a5552374..de73e4c56 100644 --- a/command/operator_scheduler.go +++ b/command/operator_scheduler.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_scheduler_get_config.go b/command/operator_scheduler_get_config.go index cc286729a..5c550bee7 100644 --- a/command/operator_scheduler_get_config.go +++ b/command/operator_scheduler_get_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_scheduler_get_config_test.go b/command/operator_scheduler_get_config_test.go index 7ece5a28d..ec225f1c8 100644 --- a/command/operator_scheduler_get_config_test.go +++ b/command/operator_scheduler_get_config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_scheduler_set_config.go b/command/operator_scheduler_set_config.go index e7d03d399..03ac6b481 100644 --- a/command/operator_scheduler_set_config.go +++ b/command/operator_scheduler_set_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_scheduler_set_config_test.go b/command/operator_scheduler_set_config_test.go index 7d4b2fdfc..1eea4be34 100644 --- a/command/operator_scheduler_set_config_test.go +++ b/command/operator_scheduler_set_config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_snapshot.go b/command/operator_snapshot.go index 3646db5a0..7cc72a4fc 100644 --- a/command/operator_snapshot.go +++ b/command/operator_snapshot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_snapshot_inspect.go b/command/operator_snapshot_inspect.go index d836508ac..5d609cf8f 100644 --- a/command/operator_snapshot_inspect.go +++ b/command/operator_snapshot_inspect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_snapshot_inspect_test.go b/command/operator_snapshot_inspect_test.go index 7a0e9e7d0..a421d69ee 100644 --- a/command/operator_snapshot_inspect_test.go +++ b/command/operator_snapshot_inspect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_snapshot_restore.go b/command/operator_snapshot_restore.go index a917b744e..966417cd5 100644 --- a/command/operator_snapshot_restore.go +++ b/command/operator_snapshot_restore.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_snapshot_restore_test.go b/command/operator_snapshot_restore_test.go index d475ce7ac..81a417b58 100644 --- a/command/operator_snapshot_restore_test.go +++ b/command/operator_snapshot_restore_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_snapshot_save.go b/command/operator_snapshot_save.go index 8a7ac3b60..e9eaa66b3 100644 --- a/command/operator_snapshot_save.go +++ b/command/operator_snapshot_save.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_snapshot_save_test.go b/command/operator_snapshot_save_test.go index a25912e7f..2cb1196f9 100644 --- a/command/operator_snapshot_save_test.go +++ b/command/operator_snapshot_save_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_snapshot_state.go b/command/operator_snapshot_state.go index 025b2a759..c03ae3831 100644 --- a/command/operator_snapshot_state.go +++ b/command/operator_snapshot_state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/operator_test.go b/command/operator_test.go index d1d9d92f4..ddfde61dd 100644 --- a/command/operator_test.go +++ b/command/operator_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/plugin.go b/command/plugin.go index 7128e7cbe..104b63c46 100644 --- a/command/plugin.go +++ b/command/plugin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import "github.com/mitchellh/cli" diff --git a/command/plugin_status.go b/command/plugin_status.go index a60430539..1bc3a23bd 100644 --- a/command/plugin_status.go +++ b/command/plugin_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/plugin_status_csi.go b/command/plugin_status_csi.go index 1ee5eaa4f..6182a9a7c 100644 --- a/command/plugin_status_csi.go +++ b/command/plugin_status_csi.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/plugin_status_test.go b/command/plugin_status_test.go index d33317953..ff765dafb 100644 --- a/command/plugin_status_test.go +++ b/command/plugin_status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/quota.go b/command/quota.go index fbbc9858c..8e68eb7c2 100644 --- a/command/quota.go +++ b/command/quota.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/quota_apply.go b/command/quota_apply.go index 53036920b..a0108127f 100644 --- a/command/quota_apply.go +++ b/command/quota_apply.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/quota_apply_test.go b/command/quota_apply_test.go index 487111d04..189216737 100644 --- a/command/quota_apply_test.go +++ b/command/quota_apply_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/quota_delete.go b/command/quota_delete.go index b5e59a188..d4786b83d 100644 --- a/command/quota_delete.go +++ b/command/quota_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/quota_delete_test.go b/command/quota_delete_test.go index 120a0c299..ee04521c6 100644 --- a/command/quota_delete_test.go +++ b/command/quota_delete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build ent // +build ent diff --git a/command/quota_init.go b/command/quota_init.go index c349b804c..b47330f48 100644 --- a/command/quota_init.go +++ b/command/quota_init.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/quota_init_test.go b/command/quota_init_test.go index f669fb023..c8669f601 100644 --- a/command/quota_init_test.go +++ b/command/quota_init_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/quota_inspect.go b/command/quota_inspect.go index 483ce00b4..5e1fce289 100644 --- a/command/quota_inspect.go +++ b/command/quota_inspect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/quota_inspect_test.go b/command/quota_inspect_test.go index 7c0365d3a..493b4490d 100644 --- a/command/quota_inspect_test.go +++ b/command/quota_inspect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build ent // +build ent diff --git a/command/quota_list.go b/command/quota_list.go index 2802efd47..c2012a068 100644 --- a/command/quota_list.go +++ b/command/quota_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/quota_list_test.go b/command/quota_list_test.go index 90785e3e8..bd8d5219b 100644 --- a/command/quota_list_test.go +++ b/command/quota_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build ent // +build ent diff --git a/command/quota_status.go b/command/quota_status.go index ca36d4b57..3a4bd54e9 100644 --- a/command/quota_status.go +++ b/command/quota_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/quota_status_test.go b/command/quota_status_test.go index cdb2a829f..0aa7e8b80 100644 --- a/command/quota_status_test.go +++ b/command/quota_status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build ent // +build ent diff --git a/command/raft_tools/state.go b/command/raft_tools/state.go index 90891fea8..a8938331b 100644 --- a/command/raft_tools/state.go +++ b/command/raft_tools/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package rafttools import ( diff --git a/command/recommendation.go b/command/recommendation.go index 376e82319..9d7c3733a 100644 --- a/command/recommendation.go +++ b/command/recommendation.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/recommendation_apply.go b/command/recommendation_apply.go index d8846372f..72eb86b11 100644 --- a/command/recommendation_apply.go +++ b/command/recommendation_apply.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/recommendation_apply_test.go b/command/recommendation_apply_test.go index 1ed797d7b..955c313d5 100644 --- a/command/recommendation_apply_test.go +++ b/command/recommendation_apply_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/recommendation_dismiss.go b/command/recommendation_dismiss.go index 2e6cd446a..e3078d412 100644 --- a/command/recommendation_dismiss.go +++ b/command/recommendation_dismiss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/recommendation_dismiss_test.go b/command/recommendation_dismiss_test.go index ebe095369..954f17522 100644 --- a/command/recommendation_dismiss_test.go +++ b/command/recommendation_dismiss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/recommendation_info.go b/command/recommendation_info.go index 6964d2bf7..48f7c78f2 100644 --- a/command/recommendation_info.go +++ b/command/recommendation_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/recommendation_info_test.go b/command/recommendation_info_test.go index 2529b5986..686d10d95 100644 --- a/command/recommendation_info_test.go +++ b/command/recommendation_info_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/recommendation_list.go b/command/recommendation_list.go index 62139373c..d18b749e6 100644 --- a/command/recommendation_list.go +++ b/command/recommendation_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/recommendation_list_test.go b/command/recommendation_list_test.go index 5223e84d7..37d65c26f 100644 --- a/command/recommendation_list_test.go +++ b/command/recommendation_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/scaling.go b/command/scaling.go index e83336e1b..67aa753ae 100644 --- a/command/scaling.go +++ b/command/scaling.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/scaling_policy.go b/command/scaling_policy.go index cc1578abe..1c8503f1a 100644 --- a/command/scaling_policy.go +++ b/command/scaling_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/scaling_policy_info.go b/command/scaling_policy_info.go index 4e8662055..eba30e15f 100644 --- a/command/scaling_policy_info.go +++ b/command/scaling_policy_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/scaling_policy_info_test.go b/command/scaling_policy_info_test.go index 8271477f2..e6213718b 100644 --- a/command/scaling_policy_info_test.go +++ b/command/scaling_policy_info_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/scaling_policy_list.go b/command/scaling_policy_list.go index 48d688c61..1c22619bf 100644 --- a/command/scaling_policy_list.go +++ b/command/scaling_policy_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/scaling_policy_list_test.go b/command/scaling_policy_list_test.go index 36ffa400c..a82929083 100644 --- a/command/scaling_policy_list_test.go +++ b/command/scaling_policy_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/scaling_policy_test.go b/command/scaling_policy_test.go index 4aa4b35b2..1f36aa61f 100644 --- a/command/scaling_policy_test.go +++ b/command/scaling_policy_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/sentinel.go b/command/sentinel.go index 3f26eea82..4ea213094 100644 --- a/command/sentinel.go +++ b/command/sentinel.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/sentinel_apply.go b/command/sentinel_apply.go index f00a40e1a..7584f0a46 100644 --- a/command/sentinel_apply.go +++ b/command/sentinel_apply.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/sentinel_apply_test.go b/command/sentinel_apply_test.go index 29169c356..e953f6a26 100644 --- a/command/sentinel_apply_test.go +++ b/command/sentinel_apply_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/sentinel_delete.go b/command/sentinel_delete.go index 412edc8c7..644230e6c 100644 --- a/command/sentinel_delete.go +++ b/command/sentinel_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/sentinel_delete_test.go b/command/sentinel_delete_test.go index 88682930f..36194c17d 100644 --- a/command/sentinel_delete_test.go +++ b/command/sentinel_delete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/sentinel_list.go b/command/sentinel_list.go index 194d4863e..9bea59259 100644 --- a/command/sentinel_list.go +++ b/command/sentinel_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/sentinel_list_test.go b/command/sentinel_list_test.go index bb109cc83..9a6f34bcf 100644 --- a/command/sentinel_list_test.go +++ b/command/sentinel_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/sentinel_read.go b/command/sentinel_read.go index cc47c71c3..492ad26d6 100644 --- a/command/sentinel_read.go +++ b/command/sentinel_read.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/sentinel_read_test.go b/command/sentinel_read_test.go index 5e874cce9..60631dbae 100644 --- a/command/sentinel_read_test.go +++ b/command/sentinel_read_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/server.go b/command/server.go index c729884a2..e652ef681 100644 --- a/command/server.go +++ b/command/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/server_force_leave.go b/command/server_force_leave.go index 957f0d4a8..df05026ae 100644 --- a/command/server_force_leave.go +++ b/command/server_force_leave.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/server_force_leave_test.go b/command/server_force_leave_test.go index 4c01769d7..c95c7a5b9 100644 --- a/command/server_force_leave_test.go +++ b/command/server_force_leave_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/server_join.go b/command/server_join.go index 05dfefd44..42ff78fab 100644 --- a/command/server_join.go +++ b/command/server_join.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/server_join_test.go b/command/server_join_test.go index bf8c5ca05..31eeb5de5 100644 --- a/command/server_join_test.go +++ b/command/server_join_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/server_members.go b/command/server_members.go index 108ab9a7a..88db710f2 100644 --- a/command/server_members.go +++ b/command/server_members.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/server_members_test.go b/command/server_members_test.go index cec2b6281..a301156ad 100644 --- a/command/server_members_test.go +++ b/command/server_members_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/service.go b/command/service.go index fbc213111..503346286 100644 --- a/command/service.go +++ b/command/service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/service_delete.go b/command/service_delete.go index 0c1570a0a..cc658fe26 100644 --- a/command/service_delete.go +++ b/command/service_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/service_delete_test.go b/command/service_delete_test.go index 0fc12d6d1..6e4acd5a5 100644 --- a/command/service_delete_test.go +++ b/command/service_delete_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/service_info.go b/command/service_info.go index 75809abbf..48ac371fd 100644 --- a/command/service_info.go +++ b/command/service_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/service_info_test.go b/command/service_info_test.go index bb20b59c7..36f0f44a2 100644 --- a/command/service_info_test.go +++ b/command/service_info_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/service_list.go b/command/service_list.go index b64d56e30..714aa66bb 100644 --- a/command/service_list.go +++ b/command/service_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/service_list_test.go b/command/service_list_test.go index b26479e5e..7f24a6ed0 100644 --- a/command/service_list_test.go +++ b/command/service_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/status.go b/command/status.go index e48aefef4..30b81be74 100644 --- a/command/status.go +++ b/command/status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/status_test.go b/command/status_test.go index 0e9e635f7..8dffa5cd1 100644 --- a/command/status_test.go +++ b/command/status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/system.go b/command/system.go index fe61fa4f5..c300acd92 100644 --- a/command/system.go +++ b/command/system.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/system_gc.go b/command/system_gc.go index cc01c5507..6c1e6296b 100644 --- a/command/system_gc.go +++ b/command/system_gc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/system_gc_test.go b/command/system_gc_test.go index 10e636e91..7f873b574 100644 --- a/command/system_gc_test.go +++ b/command/system_gc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/system_reconcile.go b/command/system_reconcile.go index 298ea71e7..d7d5a231c 100644 --- a/command/system_reconcile.go +++ b/command/system_reconcile.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/system_reconcile_summaries.go b/command/system_reconcile_summaries.go index 40bd1a243..4a0d17918 100644 --- a/command/system_reconcile_summaries.go +++ b/command/system_reconcile_summaries.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/system_reconcile_summaries_test.go b/command/system_reconcile_summaries_test.go index ca10e734b..06b38299c 100644 --- a/command/system_reconcile_summaries_test.go +++ b/command/system_reconcile_summaries_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/system_reconcile_test.go b/command/system_reconcile_test.go index f1445e793..b722573a7 100644 --- a/command/system_reconcile_test.go +++ b/command/system_reconcile_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/system_test.go b/command/system_test.go index 44ae3e370..d776cafb1 100644 --- a/command/system_test.go +++ b/command/system_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/test-resources/exiter.py b/command/test-resources/exiter.py index 90e66b98c..ffda3281b 100644 --- a/command/test-resources/exiter.py +++ b/command/test-resources/exiter.py @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + import sys sys.exit(int(sys.argv[1])) diff --git a/command/testdata/example-basic.nomad b/command/testdata/example-basic.nomad index bd3727eaa..8999f5022 100644 --- a/command/testdata/example-basic.nomad +++ b/command/testdata/example-basic.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "job1" { type = "service" datacenters = ["dc1"] diff --git a/command/testdata/example-vault.nomad b/command/testdata/example-vault.nomad index a2873e4df..f44ae9301 100644 --- a/command/testdata/example-vault.nomad +++ b/command/testdata/example-vault.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "vault" { datacenters = ["dc1"] group "group" { diff --git a/command/testdata/fmt/job.in.hcl b/command/testdata/fmt/job.in.hcl index 146b863b8..772316c2a 100644 --- a/command/testdata/fmt/job.in.hcl +++ b/command/testdata/fmt/job.in.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "job1" { type = "service" datacenters = [ "dc1" ] diff --git a/command/testdata/fmt/job.out.hcl b/command/testdata/fmt/job.out.hcl index bd3727eaa..8999f5022 100644 --- a/command/testdata/fmt/job.out.hcl +++ b/command/testdata/fmt/job.out.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "job1" { type = "service" datacenters = ["dc1"] diff --git a/command/testdata/fmt/nomad.in.hcl b/command/testdata/fmt/nomad.in.hcl index e2590998e..fffe15004 100644 --- a/command/testdata/fmt/nomad.in.hcl +++ b/command/testdata/fmt/nomad.in.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + server { enabled = true bootstrap_expect = 3 diff --git a/command/testdata/fmt/nomad.out.hcl b/command/testdata/fmt/nomad.out.hcl index cf2fe6ab5..48d1cc5bd 100644 --- a/command/testdata/fmt/nomad.out.hcl +++ b/command/testdata/fmt/nomad.out.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + server { enabled = true bootstrap_expect = 3 diff --git a/command/testing_test.go b/command/testing_test.go index 6f8ca0787..261397190 100644 --- a/command/testing_test.go +++ b/command/testing_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/tls.go b/command/tls.go index c9bab3260..4cdd94752 100644 --- a/command/tls.go +++ b/command/tls.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/tls_ca.go b/command/tls_ca.go index 9bb67504c..e42a69322 100644 --- a/command/tls_ca.go +++ b/command/tls_ca.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/tls_ca_create.go b/command/tls_ca_create.go index 9ceda2645..6b1b0457b 100644 --- a/command/tls_ca_create.go +++ b/command/tls_ca_create.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/tls_ca_create_test.go b/command/tls_ca_create_test.go index aee19663a..12bd76dc0 100644 --- a/command/tls_ca_create_test.go +++ b/command/tls_ca_create_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/tls_ca_info.go b/command/tls_ca_info.go index 0c331511e..28bcce288 100644 --- a/command/tls_ca_info.go +++ b/command/tls_ca_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/tls_cert.go b/command/tls_cert.go index 9b7cecf13..81b58d0d9 100644 --- a/command/tls_cert.go +++ b/command/tls_cert.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/tls_cert_create.go b/command/tls_cert_create.go index 611c63b45..611fb98fb 100644 --- a/command/tls_cert_create.go +++ b/command/tls_cert_create.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/tls_cert_create_test.go b/command/tls_cert_create_test.go index ef7cfefc5..48acce0a3 100644 --- a/command/tls_cert_create_test.go +++ b/command/tls_cert_create_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/tls_cert_info.go b/command/tls_cert_info.go index 202509992..05bfa5e4f 100644 --- a/command/tls_cert_info.go +++ b/command/tls_cert_info.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/ui.go b/command/ui.go index b3a0f1310..89f52b306 100644 --- a/command/ui.go +++ b/command/ui.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/ui/ui.go b/command/ui/ui.go index 553def3b3..64a596096 100644 --- a/command/ui/ui.go +++ b/command/ui/ui.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ui import ( diff --git a/command/ui/ui_test.go b/command/ui/ui_test.go index cb30ce328..7c1ba3f4e 100644 --- a/command/ui/ui_test.go +++ b/command/ui/ui_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ui import ( diff --git a/command/ui_test.go b/command/ui_test.go index 40a4193cc..70012cf16 100644 --- a/command/ui_test.go +++ b/command/ui_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var.go b/command/var.go index 48e38faf8..8a46f7689 100644 --- a/command/var.go +++ b/command/var.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_get.go b/command/var_get.go index bfca29ff3..528d4185b 100644 --- a/command/var_get.go +++ b/command/var_get.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_get_test.go b/command/var_get_test.go index d5c27ade9..02508f893 100644 --- a/command/var_get_test.go +++ b/command/var_get_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_init.go b/command/var_init.go index 07586f94f..dbaac48c8 100644 --- a/command/var_init.go +++ b/command/var_init.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_init_test.go b/command/var_init_test.go index b812c98e0..4a301d5cd 100644 --- a/command/var_init_test.go +++ b/command/var_init_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_list.go b/command/var_list.go index 9dea2b0db..45cbadd60 100644 --- a/command/var_list.go +++ b/command/var_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_list_test.go b/command/var_list_test.go index e0da26a98..531033e2d 100644 --- a/command/var_list_test.go +++ b/command/var_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_purge.go b/command/var_purge.go index ba80bf415..28abe1627 100644 --- a/command/var_purge.go +++ b/command/var_purge.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_purge_test.go b/command/var_purge_test.go index 09cc1f435..926d68092 100644 --- a/command/var_purge_test.go +++ b/command/var_purge_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_put.go b/command/var_put.go index 0593cfbbf..9a80dd7e6 100644 --- a/command/var_put.go +++ b/command/var_put.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_put_test.go b/command/var_put_test.go index 8daf14728..9c51c6eef 100644 --- a/command/var_put_test.go +++ b/command/var_put_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/var_test.go b/command/var_test.go index f94098419..ce7a3b87d 100644 --- a/command/var_test.go +++ b/command/var_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/version.go b/command/version.go index 467510395..5c7eedc7c 100644 --- a/command/version.go +++ b/command/version.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/version_test.go b/command/version_test.go index 2a39e3bc5..3ecdcf895 100644 --- a/command/version_test.go +++ b/command/version_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume.go b/command/volume.go index 2d228ac36..921465b69 100644 --- a/command/volume.go +++ b/command/volume.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_create.go b/command/volume_create.go index 91b4dd139..1f7700023 100644 --- a/command/volume_create.go +++ b/command/volume_create.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_create_csi.go b/command/volume_create_csi.go index 90a6c13d4..31c2dbbbf 100644 --- a/command/volume_create_csi.go +++ b/command/volume_create_csi.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_delete.go b/command/volume_delete.go index 12e8c832a..2929b680a 100644 --- a/command/volume_delete.go +++ b/command/volume_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_deregister.go b/command/volume_deregister.go index 4842aae51..c2ff78670 100644 --- a/command/volume_deregister.go +++ b/command/volume_deregister.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_detach.go b/command/volume_detach.go index aeea784c4..828c04036 100644 --- a/command/volume_detach.go +++ b/command/volume_detach.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_init.go b/command/volume_init.go index cb23b44df..6cb361d0a 100644 --- a/command/volume_init.go +++ b/command/volume_init.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_register.go b/command/volume_register.go index f877c9722..ac7d7c4c7 100644 --- a/command/volume_register.go +++ b/command/volume_register.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_register_csi.go b/command/volume_register_csi.go index c86735bc5..40c0c2316 100644 --- a/command/volume_register_csi.go +++ b/command/volume_register_csi.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_register_test.go b/command/volume_register_test.go index 3257aadf4..eacb68681 100644 --- a/command/volume_register_test.go +++ b/command/volume_register_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_snapshot.go b/command/volume_snapshot.go index ccaad6b74..1693de922 100644 --- a/command/volume_snapshot.go +++ b/command/volume_snapshot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_snapshot_create.go b/command/volume_snapshot_create.go index c145bb85b..7e912f348 100644 --- a/command/volume_snapshot_create.go +++ b/command/volume_snapshot_create.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_snapshot_delete.go b/command/volume_snapshot_delete.go index 63cad502f..cee3c88b6 100644 --- a/command/volume_snapshot_delete.go +++ b/command/volume_snapshot_delete.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_snapshot_list.go b/command/volume_snapshot_list.go index bef018b1d..13c647891 100644 --- a/command/volume_snapshot_list.go +++ b/command/volume_snapshot_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_status.go b/command/volume_status.go index 40360f312..7fe5ed0a3 100644 --- a/command/volume_status.go +++ b/command/volume_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_status_csi.go b/command/volume_status_csi.go index 29f87f8af..98c37b1ed 100644 --- a/command/volume_status_csi.go +++ b/command/volume_status_csi.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/command/volume_status_test.go b/command/volume_status_test.go index 7eac9f0e0..1b25c708a 100644 --- a/command/volume_status_test.go +++ b/command/volume_status_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/demo/csi/ceph-csi-plugin/ceph-csi-id.tf b/demo/csi/ceph-csi-plugin/ceph-csi-id.tf index 7ee7c13eb..2c46a1507 100644 --- a/demo/csi/ceph-csi-plugin/ceph-csi-id.tf +++ b/demo/csi/ceph-csi-plugin/ceph-csi-id.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + locals { # ClusterID: Is a unique ID per cluster that the CSI instance is serving and is restricted to # lengths that can be accommodated in the encoding scheme. diff --git a/demo/csi/ceph-csi-plugin/ceph.nomad b/demo/csi/ceph-csi-plugin/ceph.nomad index b848c99aa..f4e13ed46 100644 --- a/demo/csi/ceph-csi-plugin/ceph.nomad +++ b/demo/csi/ceph-csi-plugin/ceph.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # This job deploys Ceph as a Docker container in "demo mode"; it runs all its # processes in a single task and doesn't will not persist data after a restart diff --git a/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller-vagrant.nomad b/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller-vagrant.nomad index af7ce892b..ebd9f78c8 100644 --- a/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller-vagrant.nomad +++ b/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller-vagrant.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "cluster_id" { type = string # generated from uuid5(dns) with ceph.example.com as the seed diff --git a/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller.nomad b/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller.nomad index 70f83bbfb..b2fcb0c87 100644 --- a/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller.nomad +++ b/demo/csi/ceph-csi-plugin/plugin-cephrbd-controller.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "cluster_id" { type = string # generated from uuid5(dns) with ceph.example.com as the seed diff --git a/demo/csi/ceph-csi-plugin/plugin-cephrbd-node.nomad b/demo/csi/ceph-csi-plugin/plugin-cephrbd-node.nomad index 5d94c87d2..416b5e894 100644 --- a/demo/csi/ceph-csi-plugin/plugin-cephrbd-node.nomad +++ b/demo/csi/ceph-csi-plugin/plugin-cephrbd-node.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "plugin-cephrbd-node" { datacenters = ["dc1", "dc2"] diff --git a/demo/csi/ceph-csi-plugin/run-ceph.sh b/demo/csi/ceph-csi-plugin/run-ceph.sh index 857ac4ab8..18b3e27b6 100755 --- a/demo/csi/ceph-csi-plugin/run-ceph.sh +++ b/demo/csi/ceph-csi-plugin/run-ceph.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + CONSUL_HTTP_ADDR=${CONSUL_HTTP_ADDR:-http://localhost:8500} diff --git a/demo/csi/ceph-csi-plugin/volume.hcl b/demo/csi/ceph-csi-plugin/volume.hcl index cb9c127bf..c852831b1 100644 --- a/demo/csi/ceph-csi-plugin/volume.hcl +++ b/demo/csi/ceph-csi-plugin/volume.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + id = "testvolume" name = "test1" type = "csi" diff --git a/demo/csi/cinder-csi-plugin/cinder-csi-plugin.hcl b/demo/csi/cinder-csi-plugin/cinder-csi-plugin.hcl index e35b95334..c5e1e7d98 100644 --- a/demo/csi/cinder-csi-plugin/cinder-csi-plugin.hcl +++ b/demo/csi/cinder-csi-plugin/cinder-csi-plugin.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "cinder-csi-plugin" { datacenters = ["dc1"] type = "system" diff --git a/demo/csi/cinder-csi-plugin/example_volume.hcl b/demo/csi/cinder-csi-plugin/example_volume.hcl index 5a22749a1..0e6fa10fd 100644 --- a/demo/csi/cinder-csi-plugin/example_volume.hcl +++ b/demo/csi/cinder-csi-plugin/example_volume.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + type = "csi" id = "testvol" name = "test_volume" diff --git a/demo/csi/digitalocean/main.tf b/demo/csi/digitalocean/main.tf index 7754746f2..529766627 100644 --- a/demo/csi/digitalocean/main.tf +++ b/demo/csi/digitalocean/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Terraform configuration for creating a volume in DigitalOcean and # registering it with Nomad diff --git a/demo/csi/digitalocean/plugin.nomad b/demo/csi/digitalocean/plugin.nomad index 321234e16..d6b1a7f76 100644 --- a/demo/csi/digitalocean/plugin.nomad +++ b/demo/csi/digitalocean/plugin.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "digitalocean" { datacenters = ["dc1"] diff --git a/demo/csi/digitalocean/terraform.tf b/demo/csi/digitalocean/terraform.tf index d80cc8b93..43e7b589c 100644 --- a/demo/csi/digitalocean/terraform.tf +++ b/demo/csi/digitalocean/terraform.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + provider "digitalocean" { token = var.do_token } diff --git a/demo/csi/digitalocean/variables.tf b/demo/csi/digitalocean/variables.tf index 840b38e2c..b0d488804 100644 --- a/demo/csi/digitalocean/variables.tf +++ b/demo/csi/digitalocean/variables.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "do_token" { description = "API key" } diff --git a/demo/csi/digitalocean/versions.tf b/demo/csi/digitalocean/versions.tf index b5ad89a8d..b6a5479c1 100644 --- a/demo/csi/digitalocean/versions.tf +++ b/demo/csi/digitalocean/versions.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + terraform { required_providers { digitalocean = { diff --git a/demo/csi/digitalocean/volume-job.nomad b/demo/csi/digitalocean/volume-job.nomad index 2d082b49e..bd62f9dd5 100644 --- a/demo/csi/digitalocean/volume-job.nomad +++ b/demo/csi/digitalocean/volume-job.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "example" { datacenters = ["dc1"] diff --git a/demo/csi/hostpath/hostpath.hcl b/demo/csi/hostpath/hostpath.hcl index 2a1b8696d..6d7ba056c 100644 --- a/demo/csi/hostpath/hostpath.hcl +++ b/demo/csi/hostpath/hostpath.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + id = "VOLUME_NAME" name = "VOLUME_NAME" type = "csi" diff --git a/demo/csi/hostpath/plugin.nomad b/demo/csi/hostpath/plugin.nomad index 60637d10a..3bf322149 100644 --- a/demo/csi/hostpath/plugin.nomad +++ b/demo/csi/hostpath/plugin.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "csi-plugin" { type = "system" datacenters = ["dc1"] diff --git a/demo/csi/hostpath/redis.nomad b/demo/csi/hostpath/redis.nomad index e33a27572..1841cd47f 100644 --- a/demo/csi/hostpath/redis.nomad +++ b/demo/csi/hostpath/redis.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "example" { datacenters = ["dc1"] diff --git a/demo/csi/hostpath/run.sh b/demo/csi/hostpath/run.sh index 0169f1980..525ac0321 100755 --- a/demo/csi/hostpath/run.sh +++ b/demo/csi/hostpath/run.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Run the hostpath plugin and create some volumes, and then claim them. set -e diff --git a/demo/csi/kadalu-csi/app.nomad b/demo/csi/kadalu-csi/app.nomad index e68d7b1c5..5159bd7dc 100644 --- a/demo/csi/kadalu-csi/app.nomad +++ b/demo/csi/kadalu-csi/app.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "cn_network" { default = "dc1" } diff --git a/demo/csi/kadalu-csi/controller.nomad b/demo/csi/kadalu-csi/controller.nomad index 5b3dfe90b..ea29bcaf1 100644 --- a/demo/csi/kadalu-csi/controller.nomad +++ b/demo/csi/kadalu-csi/controller.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "cn_network" { default = "dc1" description = "Data Ceneter that the job needs to be run in" diff --git a/demo/csi/kadalu-csi/nodeplugin.nomad b/demo/csi/kadalu-csi/nodeplugin.nomad index 56d6c4496..729d04e31 100644 --- a/demo/csi/kadalu-csi/nodeplugin.nomad +++ b/demo/csi/kadalu-csi/nodeplugin.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Please refer 'controller.nomad' file for variable and job descriptions variable "cn_network" { default = "dc1" diff --git a/demo/csi/kadalu-csi/volume.hcl b/demo/csi/kadalu-csi/volume.hcl index 8fb218daf..974696857 100644 --- a/demo/csi/kadalu-csi/volume.hcl +++ b/demo/csi/kadalu-csi/volume.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Unfortunately 'variable' interpolation isn't supported in volume spec # so, parameters has to be supplied again diff --git a/demo/csi/portworx-csi-plugin/portworx-csi-plugin.hcl b/demo/csi/portworx-csi-plugin/portworx-csi-plugin.hcl index b2771c444..4578f6eb6 100644 --- a/demo/csi/portworx-csi-plugin/portworx-csi-plugin.hcl +++ b/demo/csi/portworx-csi-plugin/portworx-csi-plugin.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "portworx" { type = "service" datacenters = ["dc1"] diff --git a/demo/csi/portworx-csi-plugin/portworx-volume.hcl b/demo/csi/portworx-csi-plugin/portworx-volume.hcl index 1a08c0698..94be14c4f 100644 --- a/demo/csi/portworx-csi-plugin/portworx-volume.hcl +++ b/demo/csi/portworx-csi-plugin/portworx-volume.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + id = "px-volume-1" name = "database" type = "csi" diff --git a/demo/digitalocean/app/bench.go b/demo/digitalocean/app/bench.go index 2f7b632a9..5649eaeb4 100644 --- a/demo/digitalocean/app/bench.go +++ b/demo/digitalocean/app/bench.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/demo/digitalocean/packer/nomad/default.hcl b/demo/digitalocean/packer/nomad/default.hcl index 53de0dfab..da207584c 100644 --- a/demo/digitalocean/packer/nomad/default.hcl +++ b/demo/digitalocean/packer/nomad/default.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + data_dir = "/opt/nomad" log_level = "DEBUG" diff --git a/demo/digitalocean/packer/nomad/upstart.nomad b/demo/digitalocean/packer/nomad/upstart.nomad index 371b5d823..bfb75bff3 100644 --- a/demo/digitalocean/packer/nomad/upstart.nomad +++ b/demo/digitalocean/packer/nomad/upstart.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + description "Nomad by HashiCorp" start on runlevel [2345] diff --git a/demo/digitalocean/terraform/client/main.tf b/demo/digitalocean/terraform/client/main.tf index f86418bc1..dabbfe554 100644 --- a/demo/digitalocean/terraform/client/main.tf +++ b/demo/digitalocean/terraform/client/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "count" {} variable "image" {} variable "region" {} diff --git a/demo/digitalocean/terraform/main.tf b/demo/digitalocean/terraform/main.tf index 9b9b02e75..25e866a61 100644 --- a/demo/digitalocean/terraform/main.tf +++ b/demo/digitalocean/terraform/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "ssh_keys" {} resource "atlas_artifact" "nomad-digitalocean" { diff --git a/demo/digitalocean/terraform/server/main.tf b/demo/digitalocean/terraform/server/main.tf index 52ba707d5..08382daef 100644 --- a/demo/digitalocean/terraform/server/main.tf +++ b/demo/digitalocean/terraform/server/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "image" {} variable "region" {} variable "size" { default = "8gb" } diff --git a/demo/digitalocean/terraform/statsite/main.tf b/demo/digitalocean/terraform/statsite/main.tf index e768021a7..ed10e1fe9 100644 --- a/demo/digitalocean/terraform/statsite/main.tf +++ b/demo/digitalocean/terraform/statsite/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "size" { default = "1gb" } variable "region" {} variable "ssh_keys" {} diff --git a/demo/digitalocean/terraform/terraform.tfvars b/demo/digitalocean/terraform/terraform.tfvars index 83654fb0c..b2162bb3c 100644 --- a/demo/digitalocean/terraform/terraform.tfvars +++ b/demo/digitalocean/terraform/terraform.tfvars @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # This is a comma-separated list of SSH key ID's or fingerprints # available in your DigitalOcean account. These keys will be granted # SSH access to all of the deployed instances. diff --git a/demo/tls/tls-client.hcl b/demo/tls/tls-client.hcl index ee129e1b1..2e3e57630 100644 --- a/demo/tls/tls-client.hcl +++ b/demo/tls/tls-client.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + tls { http = true rpc = true diff --git a/demo/tls/tls-dev.hcl b/demo/tls/tls-dev.hcl index e41ba8f32..2bee41bc3 100644 --- a/demo/tls/tls-dev.hcl +++ b/demo/tls/tls-dev.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + tls { http = true rpc = true diff --git a/demo/tls/tls-server.hcl b/demo/tls/tls-server.hcl index 9e1a80269..af682e31b 100644 --- a/demo/tls/tls-server.hcl +++ b/demo/tls/tls-server.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + tls { http = true rpc = true diff --git a/demo/vagrant/client1.hcl b/demo/vagrant/client1.hcl index 15c3c8ec9..1a5fb411c 100644 --- a/demo/vagrant/client1.hcl +++ b/demo/vagrant/client1.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/demo/vagrant/client2.hcl b/demo/vagrant/client2.hcl index 6109260d8..a29afdcbb 100644 --- a/demo/vagrant/client2.hcl +++ b/demo/vagrant/client2.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/demo/vagrant/server.hcl b/demo/vagrant/server.hcl index 453df78c6..17c65356f 100644 --- a/demo/vagrant/server.hcl +++ b/demo/vagrant/server.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/acls/default-ns.hcl b/dev/acls/default-ns.hcl index 31447c750..eb8bee9ed 100644 --- a/dev/acls/default-ns.hcl +++ b/dev/acls/default-ns.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + namespace "default" { policy = "write" } diff --git a/dev/acls/node-read.hcl b/dev/acls/node-read.hcl index dd5925081..0c4e3a428 100644 --- a/dev/acls/node-read.hcl +++ b/dev/acls/node-read.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + node { policy = "read" } diff --git a/dev/cluster/client1.hcl b/dev/cluster/client1.hcl index e193bdf83..f466a864a 100644 --- a/dev/cluster/client1.hcl +++ b/dev/cluster/client1.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/cluster/client2.hcl b/dev/cluster/client2.hcl index 85d7b3171..b13cd2c56 100644 --- a/dev/cluster/client2.hcl +++ b/dev/cluster/client2.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/cluster/client3.hcl b/dev/cluster/client3.hcl index 03204d4fa..bb35b4617 100644 --- a/dev/cluster/client3.hcl +++ b/dev/cluster/client3.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/cluster/cluster.sh b/dev/cluster/cluster.sh index 6b457d646..8ccec613d 100755 --- a/dev/cluster/cluster.sh +++ b/dev/cluster/cluster.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e mkdir -p /tmp/nomad-dev-cluster/server{1,2,3} /tmp/nomad-dev-cluster/client{1,2} diff --git a/dev/cluster/server-standalone.hcl b/dev/cluster/server-standalone.hcl index 2f2280ce2..765855aed 100644 --- a/dev/cluster/server-standalone.hcl +++ b/dev/cluster/server-standalone.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/cluster/server1.hcl b/dev/cluster/server1.hcl index 28dd98f9a..e415dad34 100644 --- a/dev/cluster/server1.hcl +++ b/dev/cluster/server1.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/cluster/server2.hcl b/dev/cluster/server2.hcl index 1b95b53c8..398f9ac5f 100644 --- a/dev/cluster/server2.hcl +++ b/dev/cluster/server2.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/cluster/server3.hcl b/dev/cluster/server3.hcl index 0d88fd179..9b978155a 100644 --- a/dev/cluster/server3.hcl +++ b/dev/cluster/server3.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/docker-clients/build/Dockerfile b/dev/docker-clients/build/Dockerfile index 8e4fca9c1..cd824362d 100644 --- a/dev/docker-clients/build/Dockerfile +++ b/dev/docker-clients/build/Dockerfile @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + FROM alpine:3.6 RUN addgroup nomad && \ diff --git a/dev/docker-clients/build/start.sh b/dev/docker-clients/build/start.sh index 0e5bb730e..e233d2e4f 100644 --- a/dev/docker-clients/build/start.sh +++ b/dev/docker-clients/build/start.sh @@ -1,4 +1,7 @@ #!/usr/local/bin/dumb-init /bin/sh +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Script created following HashiCorp's model for Consul: # https://github.com/hashicorp/docker-consul/blob/master/0.X/docker-entrypoint.sh # Comments in this file originate from the project above, simply replacing 'Consul' with 'Nomad'. diff --git a/dev/docker-clients/client.nomad b/dev/docker-clients/client.nomad index 37248bfce..ae39de1fa 100644 --- a/dev/docker-clients/client.nomad +++ b/dev/docker-clients/client.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "client" { datacenters = ["dc1"] diff --git a/dev/docker-clients/docker-privileged.hcl b/dev/docker-clients/docker-privileged.hcl index f71f331de..8e80cab93 100644 --- a/dev/docker-clients/docker-privileged.hcl +++ b/dev/docker-clients/docker-privileged.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { options { "docker.privileged.enabled" = "true" diff --git a/dev/docker-clients/persistent.hcl b/dev/docker-clients/persistent.hcl index c72f6ca0f..6676667a3 100644 --- a/dev/docker-clients/persistent.hcl +++ b/dev/docker-clients/persistent.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + log_level = "DEBUG" data_dir = "/tmp/nomad-server" diff --git a/dev/tls_cluster/client1.hcl b/dev/tls_cluster/client1.hcl index 1b8251fb1..52dd20ff7 100644 --- a/dev/tls_cluster/client1.hcl +++ b/dev/tls_cluster/client1.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/tls_cluster/client2.hcl b/dev/tls_cluster/client2.hcl index a8c745e29..2b14f6518 100644 --- a/dev/tls_cluster/client2.hcl +++ b/dev/tls_cluster/client2.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/tls_cluster/server.hcl b/dev/tls_cluster/server.hcl index aa32bd94f..8719d5e08 100644 --- a/dev/tls_cluster/server.hcl +++ b/dev/tls_cluster/server.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/dev/vault/nomad-server-policy.hcl b/dev/vault/nomad-server-policy.hcl index d93a537d1..d565d3245 100644 --- a/dev/vault/nomad-server-policy.hcl +++ b/dev/vault/nomad-server-policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Allow creating tokens under "nomad-cluster" role. The role name should be # updated if "nomad-cluster" is not used. path "auth/token/create/nomad-cluster" { diff --git a/drivers/docker/cmd/main.go b/drivers/docker/cmd/main.go index f830f4f86..350956d05 100644 --- a/drivers/docker/cmd/main.go +++ b/drivers/docker/cmd/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // This package provides a mechanism to build the Docker driver plugin as an // external binary. The binary has two entry points; the docker driver and the // docker plugin's logging child binary. An example of using this is `go build diff --git a/drivers/docker/config.go b/drivers/docker/config.go index 956bb196a..6a283ea63 100644 --- a/drivers/docker/config.go +++ b/drivers/docker/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/config_test.go b/drivers/docker/config_test.go index 95cf29f2f..798281850 100644 --- a/drivers/docker/config_test.go +++ b/drivers/docker/config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/coordinator.go b/drivers/docker/coordinator.go index edbaf0f63..8448929d4 100644 --- a/drivers/docker/coordinator.go +++ b/drivers/docker/coordinator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/coordinator_test.go b/drivers/docker/coordinator_test.go index 0e08551e1..92a746ca8 100644 --- a/drivers/docker/coordinator_test.go +++ b/drivers/docker/coordinator_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/docklog/client.go b/drivers/docker/docklog/client.go index 051de3cdf..071c160a5 100644 --- a/drivers/docker/docklog/client.go +++ b/drivers/docker/docklog/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docklog import ( diff --git a/drivers/docker/docklog/docker_logger.go b/drivers/docker/docklog/docker_logger.go index 7442b0981..cba15c015 100644 --- a/drivers/docker/docklog/docker_logger.go +++ b/drivers/docker/docklog/docker_logger.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docklog import ( diff --git a/drivers/docker/docklog/docker_logger_test.go b/drivers/docker/docklog/docker_logger_test.go index f489dcd2d..0542f128c 100644 --- a/drivers/docker/docklog/docker_logger_test.go +++ b/drivers/docker/docklog/docker_logger_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docklog import ( diff --git a/drivers/docker/docklog/plugin.go b/drivers/docker/docklog/plugin.go index f9feff281..6a82382ab 100644 --- a/drivers/docker/docklog/plugin.go +++ b/drivers/docker/docklog/plugin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docklog import ( diff --git a/drivers/docker/docklog/proto/docker_logger.proto b/drivers/docker/docklog/proto/docker_logger.proto index be51ef20d..d613da198 100644 --- a/drivers/docker/docklog/proto/docker_logger.proto +++ b/drivers/docker/docklog/proto/docker_logger.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; package hashicorp.nomad.drivers.docker.docklog.proto; option go_package = "proto"; diff --git a/drivers/docker/docklog/server.go b/drivers/docker/docklog/server.go index 91cb27a18..ea86f7b56 100644 --- a/drivers/docker/docklog/server.go +++ b/drivers/docker/docklog/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docklog import ( diff --git a/drivers/docker/docklog/z_docker_logger_cmd.go b/drivers/docker/docklog/z_docker_logger_cmd.go index c4ad3a2b6..12ef95d66 100644 --- a/drivers/docker/docklog/z_docker_logger_cmd.go +++ b/drivers/docker/docklog/z_docker_logger_cmd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docklog import ( diff --git a/drivers/docker/driver.go b/drivers/docker/driver.go index 9de2b8f27..7bee45562 100644 --- a/drivers/docker/driver.go +++ b/drivers/docker/driver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/driver_darwin.go b/drivers/docker/driver_darwin.go index 2db02e4bf..5e3052dba 100644 --- a/drivers/docker/driver_darwin.go +++ b/drivers/docker/driver_darwin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin package docker diff --git a/drivers/docker/driver_darwin_test.go b/drivers/docker/driver_darwin_test.go index 9ea8adac6..56e978a30 100644 --- a/drivers/docker/driver_darwin_test.go +++ b/drivers/docker/driver_darwin_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin package docker diff --git a/drivers/docker/driver_default.go b/drivers/docker/driver_default.go index b7bef7173..9b1da1f5f 100644 --- a/drivers/docker/driver_default.go +++ b/drivers/docker/driver_default.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows package docker diff --git a/drivers/docker/driver_linux.go b/drivers/docker/driver_linux.go index 97cf680b8..a11cff490 100644 --- a/drivers/docker/driver_linux.go +++ b/drivers/docker/driver_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package docker diff --git a/drivers/docker/driver_linux_test.go b/drivers/docker/driver_linux_test.go index 6c7fc4ebf..5a7da2644 100644 --- a/drivers/docker/driver_linux_test.go +++ b/drivers/docker/driver_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package docker diff --git a/drivers/docker/driver_test.go b/drivers/docker/driver_test.go index c650a35bf..67e8ac402 100644 --- a/drivers/docker/driver_test.go +++ b/drivers/docker/driver_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/driver_unix_test.go b/drivers/docker/driver_unix_test.go index d87de4ff0..2cd8387eb 100644 --- a/drivers/docker/driver_unix_test.go +++ b/drivers/docker/driver_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris package docker diff --git a/drivers/docker/driver_windows.go b/drivers/docker/driver_windows.go index 1030a3b61..61275c4ca 100644 --- a/drivers/docker/driver_windows.go +++ b/drivers/docker/driver_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows package docker diff --git a/drivers/docker/driver_windows_test.go b/drivers/docker/driver_windows_test.go index c0d3c3989..e7bb87956 100644 --- a/drivers/docker/driver_windows_test.go +++ b/drivers/docker/driver_windows_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows package docker diff --git a/drivers/docker/fingerprint.go b/drivers/docker/fingerprint.go index b9690b939..c67254707 100644 --- a/drivers/docker/fingerprint.go +++ b/drivers/docker/fingerprint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/fingerprint_test.go b/drivers/docker/fingerprint_test.go index de356f18a..8a1d444b2 100644 --- a/drivers/docker/fingerprint_test.go +++ b/drivers/docker/fingerprint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/handle.go b/drivers/docker/handle.go index 1ee703ff8..168de1ea9 100644 --- a/drivers/docker/handle.go +++ b/drivers/docker/handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/network.go b/drivers/docker/network.go index b25bb6f24..41b458493 100644 --- a/drivers/docker/network.go +++ b/drivers/docker/network.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/network_test.go b/drivers/docker/network_test.go index 8d53306f6..930d3d635 100644 --- a/drivers/docker/network_test.go +++ b/drivers/docker/network_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/ports.go b/drivers/docker/ports.go index e8a8488ff..f3d45c06d 100644 --- a/drivers/docker/ports.go +++ b/drivers/docker/ports.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/ports_test.go b/drivers/docker/ports_test.go index ca7e13573..9d0c98283 100644 --- a/drivers/docker/ports_test.go +++ b/drivers/docker/ports_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/progress.go b/drivers/docker/progress.go index eb149635c..9884da4ee 100644 --- a/drivers/docker/progress.go +++ b/drivers/docker/progress.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/progress_test.go b/drivers/docker/progress_test.go index 4df095415..3822f288c 100644 --- a/drivers/docker/progress_test.go +++ b/drivers/docker/progress_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/reconcile_cpuset.go b/drivers/docker/reconcile_cpuset.go index 2599215c9..347daf221 100644 --- a/drivers/docker/reconcile_cpuset.go +++ b/drivers/docker/reconcile_cpuset.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package docker diff --git a/drivers/docker/reconcile_cpuset_noop.go b/drivers/docker/reconcile_cpuset_noop.go index 9613a5ad2..e8e8c77d0 100644 --- a/drivers/docker/reconcile_cpuset_noop.go +++ b/drivers/docker/reconcile_cpuset_noop.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package docker diff --git a/drivers/docker/reconcile_cpuset_test.go b/drivers/docker/reconcile_cpuset_test.go index 07ed71294..857f19103 100644 --- a/drivers/docker/reconcile_cpuset_test.go +++ b/drivers/docker/reconcile_cpuset_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package docker diff --git a/drivers/docker/reconcile_dangling.go b/drivers/docker/reconcile_dangling.go index 292da062f..d75a5268e 100644 --- a/drivers/docker/reconcile_dangling.go +++ b/drivers/docker/reconcile_dangling.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/reconcile_dangling_test.go b/drivers/docker/reconcile_dangling_test.go index b413f6051..a9edab64a 100644 --- a/drivers/docker/reconcile_dangling_test.go +++ b/drivers/docker/reconcile_dangling_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/state.go b/drivers/docker/state.go index 3365a88f7..bc00803ac 100644 --- a/drivers/docker/state.go +++ b/drivers/docker/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/stats.go b/drivers/docker/stats.go index 13531c6fb..3ca614fa5 100644 --- a/drivers/docker/stats.go +++ b/drivers/docker/stats.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/stats_test.go b/drivers/docker/stats_test.go index f17a80c84..65b511687 100644 --- a/drivers/docker/stats_test.go +++ b/drivers/docker/stats_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/test-resources/docker/Dockerfile b/drivers/docker/test-resources/docker/Dockerfile index 33a75e4e0..678b5e6ad 100644 --- a/drivers/docker/test-resources/docker/Dockerfile +++ b/drivers/docker/test-resources/docker/Dockerfile @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + FROM python ADD main.py main.py ENV PYTHONUNBUFFERED=1 diff --git a/drivers/docker/test-resources/docker/gen_stopsignal.sh b/drivers/docker/test-resources/docker/gen_stopsignal.sh index 1fa430bcc..2aaf2d4c9 100755 --- a/drivers/docker/test-resources/docker/gen_stopsignal.sh +++ b/drivers/docker/test-resources/docker/gen_stopsignal.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Create the tarball used in TestDockerDriver_StopSignal cat <<'EOF' | docker build -t busybox:1.29.3-stopsignal - diff --git a/drivers/docker/test-resources/docker/main.py b/drivers/docker/test-resources/docker/main.py index 3162260e9..c1db69f99 100644 --- a/drivers/docker/test-resources/docker/main.py +++ b/drivers/docker/test-resources/docker/main.py @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + import signal import time diff --git a/drivers/docker/util/stats_posix.go b/drivers/docker/util/stats_posix.go index ae086d475..81b05c9f9 100644 --- a/drivers/docker/util/stats_posix.go +++ b/drivers/docker/util/stats_posix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows package util diff --git a/drivers/docker/util/stats_windows.go b/drivers/docker/util/stats_windows.go index 9d4b5e81c..999e0a8dc 100644 --- a/drivers/docker/util/stats_windows.go +++ b/drivers/docker/util/stats_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package util import ( diff --git a/drivers/docker/util/util.go b/drivers/docker/util/util.go index e5d10ce0b..4a93e8e72 100644 --- a/drivers/docker/util/util.go +++ b/drivers/docker/util/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package util func CalculateCPUPercent(newSample, oldSample, newTotal, oldTotal uint64, cores int) float64 { diff --git a/drivers/docker/utils.go b/drivers/docker/utils.go index e784bfb92..1839b7f7b 100644 --- a/drivers/docker/utils.go +++ b/drivers/docker/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/utils_test.go b/drivers/docker/utils_test.go index c99cf69c9..ffa69b6d1 100644 --- a/drivers/docker/utils_test.go +++ b/drivers/docker/utils_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/docker/utils_unix_test.go b/drivers/docker/utils_unix_test.go index 0a61bd545..a177f2c0d 100644 --- a/drivers/docker/utils_unix_test.go +++ b/drivers/docker/utils_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris package docker diff --git a/drivers/docker/utils_windows_test.go b/drivers/docker/utils_windows_test.go index 72d7e0bbf..b4e9bb9fc 100644 --- a/drivers/docker/utils_windows_test.go +++ b/drivers/docker/utils_windows_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows package docker diff --git a/drivers/docker/win32_volume_parse.go b/drivers/docker/win32_volume_parse.go index 408b534aa..3dadfc9da 100644 --- a/drivers/docker/win32_volume_parse.go +++ b/drivers/docker/win32_volume_parse.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package docker import ( diff --git a/drivers/exec/driver.go b/drivers/exec/driver.go index f035d1568..c8c8d594b 100644 --- a/drivers/exec/driver.go +++ b/drivers/exec/driver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/drivers/exec/driver_test.go b/drivers/exec/driver_test.go index f197b7998..6225de5d0 100644 --- a/drivers/exec/driver_test.go +++ b/drivers/exec/driver_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/drivers/exec/driver_unix_test.go b/drivers/exec/driver_unix_test.go index e81eeeaa1..5035c30be 100644 --- a/drivers/exec/driver_unix_test.go +++ b/drivers/exec/driver_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris package exec diff --git a/drivers/exec/handle.go b/drivers/exec/handle.go index 606406b64..1c9b67597 100644 --- a/drivers/exec/handle.go +++ b/drivers/exec/handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/drivers/exec/state.go b/drivers/exec/state.go index 08cdee81c..bf9d9f6df 100644 --- a/drivers/exec/state.go +++ b/drivers/exec/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/drivers/java/driver.go b/drivers/java/driver.go index 531d51b0d..7ff471e5a 100644 --- a/drivers/java/driver.go +++ b/drivers/java/driver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package java import ( diff --git a/drivers/java/driver_test.go b/drivers/java/driver_test.go index 43be6c031..ecd7482c5 100644 --- a/drivers/java/driver_test.go +++ b/drivers/java/driver_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package java import ( diff --git a/drivers/java/handle.go b/drivers/java/handle.go index e2d677365..58fadc40d 100644 --- a/drivers/java/handle.go +++ b/drivers/java/handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package java import ( diff --git a/drivers/java/state.go b/drivers/java/state.go index 93b8a7bf4..46bbbc58a 100644 --- a/drivers/java/state.go +++ b/drivers/java/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package java import ( diff --git a/drivers/java/test-resources/Hello.java b/drivers/java/test-resources/Hello.java index 43ead64d5..721eeb601 100644 --- a/drivers/java/test-resources/Hello.java +++ b/drivers/java/test-resources/Hello.java @@ -1,3 +1,8 @@ +/* + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + public class Hello { public static void main(String[] args) { System.out.println("Hello"); diff --git a/drivers/java/utils.go b/drivers/java/utils.go index fe5a95ca7..68d70b54d 100644 --- a/drivers/java/utils.go +++ b/drivers/java/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package java import ( diff --git a/drivers/java/utils_test.go b/drivers/java/utils_test.go index bdd0b1b97..1acb6bdef 100644 --- a/drivers/java/utils_test.go +++ b/drivers/java/utils_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package java import ( diff --git a/drivers/mock/command.go b/drivers/mock/command.go index 02abfc519..58d2f35db 100644 --- a/drivers/mock/command.go +++ b/drivers/mock/command.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/drivers/mock/driver.go b/drivers/mock/driver.go index b6a141d4a..390523dff 100644 --- a/drivers/mock/driver.go +++ b/drivers/mock/driver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/drivers/mock/handle.go b/drivers/mock/handle.go index c43e2d037..fb1149a5f 100644 --- a/drivers/mock/handle.go +++ b/drivers/mock/handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/drivers/mock/state.go b/drivers/mock/state.go index e6ab74638..fa0958622 100644 --- a/drivers/mock/state.go +++ b/drivers/mock/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/drivers/mock/utils.go b/drivers/mock/utils.go index 99ea2dbd4..35248c724 100644 --- a/drivers/mock/utils.go +++ b/drivers/mock/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/drivers/mock/utils_test.go b/drivers/mock/utils_test.go index 8cd8cd471..cf156d7e0 100644 --- a/drivers/mock/utils_test.go +++ b/drivers/mock/utils_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/drivers/qemu/driver.go b/drivers/qemu/driver.go index 0ac2b9a80..ce27a1c2e 100644 --- a/drivers/qemu/driver.go +++ b/drivers/qemu/driver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package qemu import ( diff --git a/drivers/qemu/driver_bsd.go b/drivers/qemu/driver_bsd.go index 21c314598..708db793d 100644 --- a/drivers/qemu/driver_bsd.go +++ b/drivers/qemu/driver_bsd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || freebsd || netbsd || openbsd // +build darwin freebsd netbsd openbsd diff --git a/drivers/qemu/driver_fallback.go b/drivers/qemu/driver_fallback.go index cbc89500a..7ba4c5006 100644 --- a/drivers/qemu/driver_fallback.go +++ b/drivers/qemu/driver_fallback.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux && !darwin && !freebsd && !netbsd && !openbsd // +build !linux,!darwin,!freebsd,!netbsd,!openbsd diff --git a/drivers/qemu/driver_linux.go b/drivers/qemu/driver_linux.go index 76059aad8..865b2373f 100644 --- a/drivers/qemu/driver_linux.go +++ b/drivers/qemu/driver_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux // +build linux diff --git a/drivers/qemu/driver_test.go b/drivers/qemu/driver_test.go index b99990290..ca0f361e9 100644 --- a/drivers/qemu/driver_test.go +++ b/drivers/qemu/driver_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package qemu import ( diff --git a/drivers/qemu/handle.go b/drivers/qemu/handle.go index ae1619183..c350e163b 100644 --- a/drivers/qemu/handle.go +++ b/drivers/qemu/handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package qemu import ( diff --git a/drivers/qemu/state.go b/drivers/qemu/state.go index dc809ef48..a3f37ef5b 100644 --- a/drivers/qemu/state.go +++ b/drivers/qemu/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package qemu import ( diff --git a/drivers/rawexec/driver.go b/drivers/rawexec/driver.go index 5c526a15c..631d4230d 100644 --- a/drivers/rawexec/driver.go +++ b/drivers/rawexec/driver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package rawexec import ( diff --git a/drivers/rawexec/driver_test.go b/drivers/rawexec/driver_test.go index 701bf4aca..5536c7feb 100644 --- a/drivers/rawexec/driver_test.go +++ b/drivers/rawexec/driver_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package rawexec import ( diff --git a/drivers/rawexec/driver_unix_test.go b/drivers/rawexec/driver_unix_test.go index 16ee6e178..1bd5de764 100644 --- a/drivers/rawexec/driver_unix_test.go +++ b/drivers/rawexec/driver_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows package rawexec diff --git a/drivers/rawexec/handle.go b/drivers/rawexec/handle.go index fa8162261..c8b11964f 100644 --- a/drivers/rawexec/handle.go +++ b/drivers/rawexec/handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package rawexec import ( diff --git a/drivers/rawexec/state.go b/drivers/rawexec/state.go index e89917c03..846952ef4 100644 --- a/drivers/rawexec/state.go +++ b/drivers/rawexec/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package rawexec import ( diff --git a/drivers/shared/capabilities/defaults.go b/drivers/shared/capabilities/defaults.go index 6452bbf3c..2b1b81783 100644 --- a/drivers/shared/capabilities/defaults.go +++ b/drivers/shared/capabilities/defaults.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package capabilities import ( diff --git a/drivers/shared/capabilities/defaults_test.go b/drivers/shared/capabilities/defaults_test.go index 4b4e238cb..40b0ee8fb 100644 --- a/drivers/shared/capabilities/defaults_test.go +++ b/drivers/shared/capabilities/defaults_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package capabilities import ( diff --git a/drivers/shared/capabilities/set.go b/drivers/shared/capabilities/set.go index d6fe527d9..3dd80da2e 100644 --- a/drivers/shared/capabilities/set.go +++ b/drivers/shared/capabilities/set.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package capabilities is used for managing sets of linux capabilities. package capabilities diff --git a/drivers/shared/capabilities/set_test.go b/drivers/shared/capabilities/set_test.go index b6cbaf2d2..b4a95ab77 100644 --- a/drivers/shared/capabilities/set_test.go +++ b/drivers/shared/capabilities/set_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package capabilities import ( diff --git a/drivers/shared/eventer/eventer.go b/drivers/shared/eventer/eventer.go index 925b97cc8..4d3e334bd 100644 --- a/drivers/shared/eventer/eventer.go +++ b/drivers/shared/eventer/eventer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package eventer import ( diff --git a/drivers/shared/eventer/eventer_test.go b/drivers/shared/eventer/eventer_test.go index 7ca0234f7..614172423 100644 --- a/drivers/shared/eventer/eventer_test.go +++ b/drivers/shared/eventer/eventer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package eventer import ( diff --git a/drivers/shared/executor/exec_utils.go b/drivers/shared/executor/exec_utils.go index 1a048eb23..b906f50c2 100644 --- a/drivers/shared/executor/exec_utils.go +++ b/drivers/shared/executor/exec_utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/executor.go b/drivers/shared/executor/executor.go index d7d08ef72..2d45500b2 100644 --- a/drivers/shared/executor/executor.go +++ b/drivers/shared/executor/executor.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/executor_basic.go b/drivers/shared/executor/executor_basic.go index ad42792d1..415d508da 100644 --- a/drivers/shared/executor/executor_basic.go +++ b/drivers/shared/executor/executor_basic.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package executor diff --git a/drivers/shared/executor/executor_linux.go b/drivers/shared/executor/executor_linux.go index 5516660cd..1d9b352fb 100644 --- a/drivers/shared/executor/executor_linux.go +++ b/drivers/shared/executor/executor_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package executor diff --git a/drivers/shared/executor/executor_linux_test.go b/drivers/shared/executor/executor_linux_test.go index be16435ad..7172e1136 100644 --- a/drivers/shared/executor/executor_linux_test.go +++ b/drivers/shared/executor/executor_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/executor_plugin.go b/drivers/shared/executor/executor_plugin.go index 6eb7b3564..5e5c0b51c 100644 --- a/drivers/shared/executor/executor_plugin.go +++ b/drivers/shared/executor/executor_plugin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/executor_test.go b/drivers/shared/executor/executor_test.go index cd1b2b9b6..a12f9356f 100644 --- a/drivers/shared/executor/executor_test.go +++ b/drivers/shared/executor/executor_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/executor_universal_linux.go b/drivers/shared/executor/executor_universal_linux.go index 2e6bf8791..ce4267063 100644 --- a/drivers/shared/executor/executor_universal_linux.go +++ b/drivers/shared/executor/executor_universal_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/executor_unix.go b/drivers/shared/executor/executor_unix.go index d93c8fb68..42490f221 100644 --- a/drivers/shared/executor/executor_unix.go +++ b/drivers/shared/executor/executor_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris package executor diff --git a/drivers/shared/executor/executor_windows.go b/drivers/shared/executor/executor_windows.go index f03e0230e..d12ba14a1 100644 --- a/drivers/shared/executor/executor_windows.go +++ b/drivers/shared/executor/executor_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows package executor diff --git a/drivers/shared/executor/grpc_client.go b/drivers/shared/executor/grpc_client.go index 7ab2dbf6a..b13fe04b8 100644 --- a/drivers/shared/executor/grpc_client.go +++ b/drivers/shared/executor/grpc_client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/grpc_server.go b/drivers/shared/executor/grpc_server.go index 231d650a8..d6c7413d4 100644 --- a/drivers/shared/executor/grpc_server.go +++ b/drivers/shared/executor/grpc_server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/libcontainer_nsenter_linux.go b/drivers/shared/executor/libcontainer_nsenter_linux.go index 9ecada403..13423fe5e 100644 --- a/drivers/shared/executor/libcontainer_nsenter_linux.go +++ b/drivers/shared/executor/libcontainer_nsenter_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/pid_collector.go b/drivers/shared/executor/pid_collector.go index 2413f8ee5..ff0895b36 100644 --- a/drivers/shared/executor/pid_collector.go +++ b/drivers/shared/executor/pid_collector.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/pid_collector_test.go b/drivers/shared/executor/pid_collector_test.go index f71c4d827..9040c75b2 100644 --- a/drivers/shared/executor/pid_collector_test.go +++ b/drivers/shared/executor/pid_collector_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/plugins.go b/drivers/shared/executor/plugins.go index 0e3b977e9..c35479346 100644 --- a/drivers/shared/executor/plugins.go +++ b/drivers/shared/executor/plugins.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/proto/executor.proto b/drivers/shared/executor/proto/executor.proto index aa349d265..853fe61c4 100644 --- a/drivers/shared/executor/proto/executor.proto +++ b/drivers/shared/executor/proto/executor.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; package hashicorp.nomad.plugins.executor.proto; option go_package = "proto"; diff --git a/drivers/shared/executor/pty_unix.go b/drivers/shared/executor/pty_unix.go index 2df23e3d8..bacf5e31b 100644 --- a/drivers/shared/executor/pty_unix.go +++ b/drivers/shared/executor/pty_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris diff --git a/drivers/shared/executor/pty_windows.go b/drivers/shared/executor/pty_windows.go index f9c4cf35e..18c7800b2 100644 --- a/drivers/shared/executor/pty_windows.go +++ b/drivers/shared/executor/pty_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows // +build windows diff --git a/drivers/shared/executor/resource_container_default.go b/drivers/shared/executor/resource_container_default.go index 0274e1b07..c8c1947c8 100644 --- a/drivers/shared/executor/resource_container_default.go +++ b/drivers/shared/executor/resource_container_default.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux package executor diff --git a/drivers/shared/executor/utils.go b/drivers/shared/executor/utils.go index 237152a8b..5cb54b144 100644 --- a/drivers/shared/executor/utils.go +++ b/drivers/shared/executor/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/utils_test.go b/drivers/shared/executor/utils_test.go index a8f12b5f3..24a0598d0 100644 --- a/drivers/shared/executor/utils_test.go +++ b/drivers/shared/executor/utils_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/executor/utils_unix.go b/drivers/shared/executor/utils_unix.go index 6f45ccf43..b5ced6504 100644 --- a/drivers/shared/executor/utils_unix.go +++ b/drivers/shared/executor/utils_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris diff --git a/drivers/shared/executor/utils_windows.go b/drivers/shared/executor/utils_windows.go index 76ae317a2..334e923c8 100644 --- a/drivers/shared/executor/utils_windows.go +++ b/drivers/shared/executor/utils_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import "os/exec" diff --git a/drivers/shared/executor/z_executor_cmd.go b/drivers/shared/executor/z_executor_cmd.go index 5a5f13b62..60ef85045 100644 --- a/drivers/shared/executor/z_executor_cmd.go +++ b/drivers/shared/executor/z_executor_cmd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package executor import ( diff --git a/drivers/shared/hostnames/mount.go b/drivers/shared/hostnames/mount.go index ee3f9fd68..6c7c1ddd5 100644 --- a/drivers/shared/hostnames/mount.go +++ b/drivers/shared/hostnames/mount.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hostnames import ( diff --git a/drivers/shared/hostnames/mount_unix_test.go b/drivers/shared/hostnames/mount_unix_test.go index 3b3065caa..013e5e451 100644 --- a/drivers/shared/hostnames/mount_unix_test.go +++ b/drivers/shared/hostnames/mount_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/drivers/shared/resolvconf/mount.go b/drivers/shared/resolvconf/mount.go index 63954166c..d0687b963 100644 --- a/drivers/shared/resolvconf/mount.go +++ b/drivers/shared/resolvconf/mount.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package resolvconf import ( diff --git a/drivers/shared/resolvconf/mount_unix_test.go b/drivers/shared/resolvconf/mount_unix_test.go index d63c7cedd..2f947a8ab 100644 --- a/drivers/shared/resolvconf/mount_unix_test.go +++ b/drivers/shared/resolvconf/mount_unix_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/e2e/acl/acl_role_test.go b/e2e/acl/acl_role_test.go index 4e6e23e5f..6cbb5e342 100644 --- a/e2e/acl/acl_role_test.go +++ b/e2e/acl/acl_role_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/e2e/acl/acl_test.go b/e2e/acl/acl_test.go index 6d1ba75ae..04918afbc 100644 --- a/e2e/acl/acl_test.go +++ b/e2e/acl/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/e2e/acl/acl_token_test.go b/e2e/acl/acl_token_test.go index 7e9163a27..c97bf8f77 100644 --- a/e2e/acl/acl_token_test.go +++ b/e2e/acl/acl_token_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/e2e/acl/doc.go b/e2e/acl/doc.go index b12982fa1..4411af298 100644 --- a/e2e/acl/doc.go +++ b/e2e/acl/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package acl provides end-to-end tests for Nomads ACL system. // // In order to run this test suite only, from the e2e directory you can trigger diff --git a/e2e/acl/helpers.go b/e2e/acl/helpers.go index 355cfe759..d634a88e6 100644 --- a/e2e/acl/helpers.go +++ b/e2e/acl/helpers.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/e2e/affinities/affinities.go b/e2e/affinities/affinities.go index 8c3e0202c..da58963a7 100644 --- a/e2e/affinities/affinities.go +++ b/e2e/affinities/affinities.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package affinities import ( diff --git a/e2e/affinities/input/anti_affinities.nomad b/e2e/affinities/input/anti_affinities.nomad index dcd9acdf8..602dfbf28 100644 --- a/e2e/affinities/input/anti_affinities.nomad +++ b/e2e/affinities/input/anti_affinities.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test1" { datacenters = ["dc1", "dc2"] type = "service" diff --git a/e2e/affinities/input/multiple_affinities.nomad b/e2e/affinities/input/multiple_affinities.nomad index cb61e720a..1a6743f02 100644 --- a/e2e/affinities/input/multiple_affinities.nomad +++ b/e2e/affinities/input/multiple_affinities.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test1" { datacenters = ["dc1", "dc2"] type = "service" diff --git a/e2e/affinities/input/single_affinity.nomad b/e2e/affinities/input/single_affinity.nomad index 91be0f5c5..54912b182 100644 --- a/e2e/affinities/input/single_affinity.nomad +++ b/e2e/affinities/input/single_affinity.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test1" { datacenters = ["dc1", "dc2"] type = "service" diff --git a/e2e/alloc_logs/alloc_logs_test.go b/e2e/alloc_logs/alloc_logs_test.go index e154ce167..025a37a03 100644 --- a/e2e/alloc_logs/alloc_logs_test.go +++ b/e2e/alloc_logs/alloc_logs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package alloc_logs import ( diff --git a/e2e/alloc_logs/doc.go b/e2e/alloc_logs/doc.go index 3b43dca5a..2a2d1fb93 100644 --- a/e2e/alloc_logs/doc.go +++ b/e2e/alloc_logs/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package alloc_logs provides end-to-end tests for Nomads allocation logging // functionality. // diff --git a/e2e/alloc_logs/input/mixed-output.nomad b/e2e/alloc_logs/input/mixed-output.nomad index 708c77412..0027218b7 100644 --- a/e2e/alloc_logs/input/mixed-output.nomad +++ b/e2e/alloc_logs/input/mixed-output.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "alloc-logs" { datacenters = ["dc1"] type = "service" diff --git a/e2e/artifact/artifact_test.go b/e2e/artifact/artifact_test.go index 171ef34c3..029e1da3a 100644 --- a/e2e/artifact/artifact_test.go +++ b/e2e/artifact/artifact_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package artifact import ( diff --git a/e2e/artifact/input/artifact_darwin.nomad b/e2e/artifact/input/artifact_darwin.nomad index 2ea05427c..547a010ff 100644 --- a/e2e/artifact/input/artifact_darwin.nomad +++ b/e2e/artifact/input/artifact_darwin.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # note: this job is not run regularly in e2e, # where we have no macOS runner. diff --git a/e2e/artifact/input/artifact_limits.nomad b/e2e/artifact/input/artifact_limits.nomad index 66ad3f2ba..bee0f79b5 100644 --- a/e2e/artifact/input/artifact_limits.nomad +++ b/e2e/artifact/input/artifact_limits.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "linux" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/artifact/input/artifact_linux.nomad b/e2e/artifact/input/artifact_linux.nomad index 0b734604a..7098de60d 100644 --- a/e2e/artifact/input/artifact_linux.nomad +++ b/e2e/artifact/input/artifact_linux.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "linux" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/artifact/input/artifact_windows.nomad b/e2e/artifact/input/artifact_windows.nomad index 9bb7ef4a1..fc8bcaabc 100644 --- a/e2e/artifact/input/artifact_windows.nomad +++ b/e2e/artifact/input/artifact_windows.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "windows" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/auth/auth_test.go b/e2e/auth/auth_test.go index 338c70f8e..f79a3204e 100644 --- a/e2e/auth/auth_test.go +++ b/e2e/auth/auth_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/e2e/auth/doc.go b/e2e/auth/doc.go index 5301d31ba..378512ba9 100644 --- a/e2e/auth/doc.go +++ b/e2e/auth/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth // This package contains only tests, so this is a placeholder file to diff --git a/e2e/clientstate/clientstate.go b/e2e/clientstate/clientstate.go index f9de15850..dcbdb9b4e 100644 --- a/e2e/clientstate/clientstate.go +++ b/e2e/clientstate/clientstate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package clientstate import ( diff --git a/e2e/clientstate/restarter.nomad b/e2e/clientstate/restarter.nomad index 979259ebf..f4e4f4bfe 100644 --- a/e2e/clientstate/restarter.nomad +++ b/e2e/clientstate/restarter.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Restarter fakes being a flaky service that crashes and restarts constantly. # Restarting the Nomad agent during task restarts was a known cause of state # corruption in v0.8. diff --git a/e2e/clientstate/sleeper.nomad b/e2e/clientstate/sleeper.nomad index 379e0c782..b90a6fdf7 100644 --- a/e2e/clientstate/sleeper.nomad +++ b/e2e/clientstate/sleeper.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Sleeper is a fake service that outputs its pid to a file named `pid` to # assert duplicate tasks are never started. diff --git a/e2e/connect/acls.go b/e2e/connect/acls.go index 877bb9517..b742a3161 100644 --- a/e2e/connect/acls.go +++ b/e2e/connect/acls.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/e2e/connect/acls_test.go b/e2e/connect/acls_test.go index 37e2d02bc..9cea5fcbf 100644 --- a/e2e/connect/acls_test.go +++ b/e2e/connect/acls_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/e2e/connect/client.go b/e2e/connect/client.go index 542b24253..bdd25cbe0 100644 --- a/e2e/connect/client.go +++ b/e2e/connect/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/e2e/connect/connect.go b/e2e/connect/connect.go index 189ca7220..dcdc0b704 100644 --- a/e2e/connect/connect.go +++ b/e2e/connect/connect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/e2e/connect/input/demo.nomad b/e2e/connect/input/demo.nomad index 4d00e2ab3..15a3af7de 100644 --- a/e2e/connect/input/demo.nomad +++ b/e2e/connect/input/demo.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "countdash" { datacenters = ["dc1"] diff --git a/e2e/connect/input/expose-custom.nomad b/e2e/connect/input/expose-custom.nomad index 51ca38bf4..8c31d2504 100644 --- a/e2e/connect/input/expose-custom.nomad +++ b/e2e/connect/input/expose-custom.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "expose-custom" { datacenters = ["dc1"] diff --git a/e2e/connect/input/ingress-gateway.nomad b/e2e/connect/input/ingress-gateway.nomad index c4b8a806b..1c7dd0aac 100644 --- a/e2e/connect/input/ingress-gateway.nomad +++ b/e2e/connect/input/ingress-gateway.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "ig-bridge-demo" { datacenters = ["dc1"] diff --git a/e2e/connect/input/multi-ingress.nomad b/e2e/connect/input/multi-ingress.nomad index fb5ee644c..1cf048ba9 100644 --- a/e2e/connect/input/multi-ingress.nomad +++ b/e2e/connect/input/multi-ingress.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "multi-ingress" { datacenters = ["dc1"] diff --git a/e2e/connect/input/multi-service.nomad b/e2e/connect/input/multi-service.nomad index 2d57c13b4..4d5b8689f 100644 --- a/e2e/connect/input/multi-service.nomad +++ b/e2e/connect/input/multi-service.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "multi-service" { datacenters = ["dc1"] diff --git a/e2e/connect/input/native-demo.nomad b/e2e/connect/input/native-demo.nomad index 79c193571..5060860c5 100644 --- a/e2e/connect/input/native-demo.nomad +++ b/e2e/connect/input/native-demo.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "cn-demo" { datacenters = ["dc1"] diff --git a/e2e/connect/input/terminating-gateway.nomad b/e2e/connect/input/terminating-gateway.nomad index ea00e9ab6..ef830a5ff 100644 --- a/e2e/connect/input/terminating-gateway.nomad +++ b/e2e/connect/input/terminating-gateway.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "countdash-terminating" { datacenters = ["dc1"] diff --git a/e2e/connect/multi_service.go b/e2e/connect/multi_service.go index 139bfc9ce..3918b1035 100644 --- a/e2e/connect/multi_service.go +++ b/e2e/connect/multi_service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/e2e/consul/check_restart.go b/e2e/consul/check_restart.go index 030b27a21..365e9ffd9 100644 --- a/e2e/consul/check_restart.go +++ b/e2e/consul/check_restart.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/e2e/consul/consul.go b/e2e/consul/consul.go index 9dcf59e2d..dd69b9008 100644 --- a/e2e/consul/consul.go +++ b/e2e/consul/consul.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/e2e/consul/input/canary_tags.nomad b/e2e/consul/input/canary_tags.nomad index 1ba9bdeb7..f71368d1a 100644 --- a/e2e/consul/input/canary_tags.nomad +++ b/e2e/consul/input/canary_tags.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "consul_canary_test" { datacenters = ["dc1"] diff --git a/e2e/consul/input/checks_group.nomad b/e2e/consul/input/checks_group.nomad index fae1b9fc7..eadc46428 100644 --- a/e2e/consul/input/checks_group.nomad +++ b/e2e/consul/input/checks_group.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "group_check" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/checks_group_restart.nomad b/e2e/consul/input/checks_group_restart.nomad index 0f520cbbc..fd3293268 100644 --- a/e2e/consul/input/checks_group_restart.nomad +++ b/e2e/consul/input/checks_group_restart.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "group_check_restart" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/checks_group_update.nomad b/e2e/consul/input/checks_group_update.nomad index 9cadd1c92..add260960 100644 --- a/e2e/consul/input/checks_group_update.nomad +++ b/e2e/consul/input/checks_group_update.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "group_check" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/checks_task.nomad b/e2e/consul/input/checks_task.nomad index b7458081d..b1fae68af 100644 --- a/e2e/consul/input/checks_task.nomad +++ b/e2e/consul/input/checks_task.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "task_check" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/checks_task_restart.nomad b/e2e/consul/input/checks_task_restart.nomad index f36ed77b7..5378c854f 100644 --- a/e2e/consul/input/checks_task_restart.nomad +++ b/e2e/consul/input/checks_task_restart.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "task_check" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/checks_task_update.nomad b/e2e/consul/input/checks_task_update.nomad index 221abd2ad..5c347ec3b 100644 --- a/e2e/consul/input/checks_task_update.nomad +++ b/e2e/consul/input/checks_task_update.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "task_check" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/consul_example.nomad b/e2e/consul/input/consul_example.nomad index 9c68489b9..f7c38aa46 100644 --- a/e2e/consul/input/consul_example.nomad +++ b/e2e/consul/input/consul_example.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "consul-example" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/namespaces/connect_ingress.nomad b/e2e/consul/input/namespaces/connect_ingress.nomad index 918925dc8..33c25257d 100644 --- a/e2e/consul/input/namespaces/connect_ingress.nomad +++ b/e2e/consul/input/namespaces/connect_ingress.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "connect_ingress" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/namespaces/connect_sidecars.nomad b/e2e/consul/input/namespaces/connect_sidecars.nomad index 3dbd7a5a1..d45cca960 100644 --- a/e2e/consul/input/namespaces/connect_sidecars.nomad +++ b/e2e/consul/input/namespaces/connect_sidecars.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "connect_sidecars" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/namespaces/connect_terminating.nomad b/e2e/consul/input/namespaces/connect_terminating.nomad index 70da81292..5d9acdfe6 100644 --- a/e2e/consul/input/namespaces/connect_terminating.nomad +++ b/e2e/consul/input/namespaces/connect_terminating.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "connect_terminating" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/namespaces/script_checks_group.nomad b/e2e/consul/input/namespaces/script_checks_group.nomad index 7bfecc032..6fa5ad0af 100644 --- a/e2e/consul/input/namespaces/script_checks_group.nomad +++ b/e2e/consul/input/namespaces/script_checks_group.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "script_checks_group" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/namespaces/script_checks_task.nomad b/e2e/consul/input/namespaces/script_checks_task.nomad index 63978a97d..2aa310ca3 100644 --- a/e2e/consul/input/namespaces/script_checks_task.nomad +++ b/e2e/consul/input/namespaces/script_checks_task.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "script_checks_task" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/namespaces/services_group.nomad b/e2e/consul/input/namespaces/services_group.nomad index c25dd6fb5..bf9949091 100644 --- a/e2e/consul/input/namespaces/services_group.nomad +++ b/e2e/consul/input/namespaces/services_group.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "services_group" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/namespaces/services_task.nomad b/e2e/consul/input/namespaces/services_task.nomad index d8e8124f9..bcc18ea1b 100644 --- a/e2e/consul/input/namespaces/services_task.nomad +++ b/e2e/consul/input/namespaces/services_task.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "services_task" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/namespaces/template_kv.nomad b/e2e/consul/input/namespaces/template_kv.nomad index 62423624a..3ab8bd224 100644 --- a/e2e/consul/input/namespaces/template_kv.nomad +++ b/e2e/consul/input/namespaces/template_kv.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "template_kv" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/consul/input/on_update.nomad b/e2e/consul/input/on_update.nomad index f5a94b9a7..ea8310584 100644 --- a/e2e/consul/input/on_update.nomad +++ b/e2e/consul/input/on_update.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/on_update_2.nomad b/e2e/consul/input/on_update_2.nomad index 8643c5c50..66c1593d6 100644 --- a/e2e/consul/input/on_update_2.nomad +++ b/e2e/consul/input/on_update_2.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/on_update_check_restart.nomad b/e2e/consul/input/on_update_check_restart.nomad index cbab45c68..8b4e48b42 100644 --- a/e2e/consul/input/on_update_check_restart.nomad +++ b/e2e/consul/input/on_update_check_restart.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/service_reversion.nomad b/e2e/consul/input/service_reversion.nomad index 5032e5c6c..c26b783b1 100644 --- a/e2e/consul/input/service_reversion.nomad +++ b/e2e/consul/input/service_reversion.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "service" { type = string } diff --git a/e2e/consul/input/services_empty.nomad b/e2e/consul/input/services_empty.nomad index a96efdd5a..01d8b6d86 100644 --- a/e2e/consul/input/services_empty.nomad +++ b/e2e/consul/input/services_empty.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "consul-register-on-update" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/input/services_present.nomad b/e2e/consul/input/services_present.nomad index 06476ae91..fc3356218 100644 --- a/e2e/consul/input/services_present.nomad +++ b/e2e/consul/input/services_present.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "consul-register-on-update" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consul/namespaces.go b/e2e/consul/namespaces.go index fc8cda8ce..8770d7706 100644 --- a/e2e/consul/namespaces.go +++ b/e2e/consul/namespaces.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/e2e/consul/namespaces_oss.go b/e2e/consul/namespaces_oss.go index f0049606c..8c0ed3b8d 100644 --- a/e2e/consul/namespaces_oss.go +++ b/e2e/consul/namespaces_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/e2e/consul/on_update.go b/e2e/consul/on_update.go index 39cd34463..a7b0cb0a7 100644 --- a/e2e/consul/on_update.go +++ b/e2e/consul/on_update.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/e2e/consul/script_checks.go b/e2e/consul/script_checks.go index 733560191..6b99dc50b 100644 --- a/e2e/consul/script_checks.go +++ b/e2e/consul/script_checks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/e2e/consul/service_revert_test.go b/e2e/consul/service_revert_test.go index 2accd1a51..b6ea7f9a3 100644 --- a/e2e/consul/service_revert_test.go +++ b/e2e/consul/service_revert_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/e2e/consultemplate/consultemplate.go b/e2e/consultemplate/consultemplate.go index f2079162e..866803741 100644 --- a/e2e/consultemplate/consultemplate.go +++ b/e2e/consultemplate/consultemplate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consultemplate import ( diff --git a/e2e/consultemplate/input/bad_template_paths.nomad b/e2e/consultemplate/input/bad_template_paths.nomad index af9adde54..09e678d83 100644 --- a/e2e/consultemplate/input/bad_template_paths.nomad +++ b/e2e/consultemplate/input/bad_template_paths.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "bad-template-paths" { datacenters = ["dc1", "dc2"] diff --git a/e2e/consultemplate/input/nomad_provider_service.nomad b/e2e/consultemplate/input/nomad_provider_service.nomad index 24be3a41f..ffe507586 100644 --- a/e2e/consultemplate/input/nomad_provider_service.nomad +++ b/e2e/consultemplate/input/nomad_provider_service.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "nomad_provider_service" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consultemplate/input/nomad_provider_service_lookup.nomad b/e2e/consultemplate/input/nomad_provider_service_lookup.nomad index 72e874fe3..79d2894ec 100644 --- a/e2e/consultemplate/input/nomad_provider_service_lookup.nomad +++ b/e2e/consultemplate/input/nomad_provider_service_lookup.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "nomad_provider_service_lookup" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consultemplate/input/nomad_provider_service_ns.nomad b/e2e/consultemplate/input/nomad_provider_service_ns.nomad index d0ff26848..8b5776c91 100644 --- a/e2e/consultemplate/input/nomad_provider_service_ns.nomad +++ b/e2e/consultemplate/input/nomad_provider_service_ns.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "nomad_provider_service" { datacenters = ["dc1"] type = "service" diff --git a/e2e/consultemplate/input/template_paths.nomad b/e2e/consultemplate/input/template_paths.nomad index 7d0fe8751..7f01c1605 100644 --- a/e2e/consultemplate/input/template_paths.nomad +++ b/e2e/consultemplate/input/template_paths.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "template-paths" { datacenters = ["dc1", "dc2"] diff --git a/e2e/consultemplate/input/template_shared_alloc.nomad b/e2e/consultemplate/input/template_shared_alloc.nomad index 6da653188..73ceed1b0 100644 --- a/e2e/consultemplate/input/template_shared_alloc.nomad +++ b/e2e/consultemplate/input/template_shared_alloc.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "template-shared-alloc" { datacenters = ["dc1", "dc2"] diff --git a/e2e/consultemplate/input/templating.nomad b/e2e/consultemplate/input/templating.nomad index 39ff3d8c8..bb633fb6d 100644 --- a/e2e/consultemplate/input/templating.nomad +++ b/e2e/consultemplate/input/templating.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "templating" { datacenters = ["dc1", "dc2"] diff --git a/e2e/csi/csi.go b/e2e/csi/csi.go index cc71b062e..bd91cd7ed 100644 --- a/e2e/csi/csi.go +++ b/e2e/csi/csi.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csi import ( diff --git a/e2e/csi/ebs.go b/e2e/csi/ebs.go index 128cad5c0..9f858fc09 100644 --- a/e2e/csi/ebs.go +++ b/e2e/csi/ebs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csi import ( diff --git a/e2e/csi/efs.go b/e2e/csi/efs.go index 2caec1094..cef5da2c0 100644 --- a/e2e/csi/efs.go +++ b/e2e/csi/efs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csi import ( diff --git a/e2e/csi/input/ebs-volume0.hcl b/e2e/csi/input/ebs-volume0.hcl index b3e8fd93d..50e044a8c 100644 --- a/e2e/csi/input/ebs-volume0.hcl +++ b/e2e/csi/input/ebs-volume0.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + id = "ebs-vol[0]" name = "idempotency-token" # CSIVolumeName tag, must be idempotent type = "csi" diff --git a/e2e/csi/input/ebs-volume1.hcl b/e2e/csi/input/ebs-volume1.hcl index 57f715a78..eece86ddd 100644 --- a/e2e/csi/input/ebs-volume1.hcl +++ b/e2e/csi/input/ebs-volume1.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + id = "ebs-vol[1]" name = "idempotency-token" # CSIVolumeName tag type = "csi" diff --git a/e2e/csi/input/plugin-aws-ebs-controller.nomad b/e2e/csi/input/plugin-aws-ebs-controller.nomad index 2f022c6e0..01099b654 100644 --- a/e2e/csi/input/plugin-aws-ebs-controller.nomad +++ b/e2e/csi/input/plugin-aws-ebs-controller.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # jobspec for running CSI plugin for AWS EBS, derived from # the kubernetes manifests found at # https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/deploy/kubernetes diff --git a/e2e/csi/input/plugin-aws-ebs-nodes.nomad b/e2e/csi/input/plugin-aws-ebs-nodes.nomad index 8bb9691f6..504b77e45 100644 --- a/e2e/csi/input/plugin-aws-ebs-nodes.nomad +++ b/e2e/csi/input/plugin-aws-ebs-nodes.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # jobspec for running CSI plugin for AWS EBS, derived from # the kubernetes manifests found at # https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/deploy/kubernetes diff --git a/e2e/csi/input/plugin-aws-efs-nodes.nomad b/e2e/csi/input/plugin-aws-efs-nodes.nomad index 67601f78a..c637e6c50 100644 --- a/e2e/csi/input/plugin-aws-efs-nodes.nomad +++ b/e2e/csi/input/plugin-aws-efs-nodes.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # jobspec for running CSI plugin for AWS EFS, derived from # the kubernetes manifests found at # https://github.com/kubernetes-sigs/aws-efs-csi-driver/tree/master/deploy/kubernetes diff --git a/e2e/csi/input/use-ebs-volume.nomad b/e2e/csi/input/use-ebs-volume.nomad index 586a5f8db..50b5558c9 100644 --- a/e2e/csi/input/use-ebs-volume.nomad +++ b/e2e/csi/input/use-ebs-volume.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # a job that mounts an EBS volume and writes its job ID as a file job "use-ebs-volume" { datacenters = ["dc1", "dc2"] diff --git a/e2e/csi/input/use-efs-volume-read.nomad b/e2e/csi/input/use-efs-volume-read.nomad index a4bd78bbb..ebdef1fd1 100644 --- a/e2e/csi/input/use-efs-volume-read.nomad +++ b/e2e/csi/input/use-efs-volume-read.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # a job that mounts the EFS volume and sleeps, so that we can # read its mounted file system remotely job "use-efs-volume" { diff --git a/e2e/csi/input/use-efs-volume-write.nomad b/e2e/csi/input/use-efs-volume-write.nomad index 10df5ee91..c4d5d8495 100644 --- a/e2e/csi/input/use-efs-volume-write.nomad +++ b/e2e/csi/input/use-efs-volume-write.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # a job that mounts an EFS volume and writes its job ID as a file job "use-efs-volume" { datacenters = ["dc1"] diff --git a/e2e/deployment/deployment.go b/e2e/deployment/deployment.go index 62761a8f9..dfae91b3b 100644 --- a/e2e/deployment/deployment.go +++ b/e2e/deployment/deployment.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package deployment import ( diff --git a/e2e/deployment/input/deployment_auto0.nomad b/e2e/deployment/input/deployment_auto0.nomad index da1875ee4..3d2886fbc 100644 --- a/e2e/deployment/input/deployment_auto0.nomad +++ b/e2e/deployment/input/deployment_auto0.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "deployment_auto.nomad" { datacenters = ["dc1"] diff --git a/e2e/deployment/input/deployment_auto1.nomad b/e2e/deployment/input/deployment_auto1.nomad index a67b76f43..deffa3752 100644 --- a/e2e/deployment/input/deployment_auto1.nomad +++ b/e2e/deployment/input/deployment_auto1.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "deployment_auto.nomad" { datacenters = ["dc1"] diff --git a/e2e/disconnectedclients/disconnectedclients_test.go b/e2e/disconnectedclients/disconnectedclients_test.go index 2da43773c..3c6c5d592 100644 --- a/e2e/disconnectedclients/disconnectedclients_test.go +++ b/e2e/disconnectedclients/disconnectedclients_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package disconnectedclients import ( diff --git a/e2e/disconnectedclients/doc.go b/e2e/disconnectedclients/doc.go index 63745e70b..edfd97fc2 100644 --- a/e2e/disconnectedclients/doc.go +++ b/e2e/disconnectedclients/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package disconnectedclients // This package contains only tests, so this is a placeholder file to diff --git a/e2e/disconnectedclients/input/lost_max_disconnect.nomad b/e2e/disconnectedclients/input/lost_max_disconnect.nomad index 9816fee15..9ae265fb0 100644 --- a/e2e/disconnectedclients/input/lost_max_disconnect.nomad +++ b/e2e/disconnectedclients/input/lost_max_disconnect.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "lost_max_disconnect" { datacenters = ["dc1", "dc2"] diff --git a/e2e/disconnectedclients/input/lost_simple.nomad b/e2e/disconnectedclients/input/lost_simple.nomad index bf2517478..fe5f2f4f8 100644 --- a/e2e/disconnectedclients/input/lost_simple.nomad +++ b/e2e/disconnectedclients/input/lost_simple.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "lost_simple" { datacenters = ["dc1", "dc2"] diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index d3b808b2f..b8d62309b 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // This package exists to wrap our e2e provisioning and test framework so that it // can be run via 'go test ./e2e'. See './framework/framework.go' package e2e diff --git a/e2e/e2eutil/acl.go b/e2e/e2eutil/acl.go index 919df3277..59e49eb06 100644 --- a/e2e/e2eutil/acl.go +++ b/e2e/e2eutil/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import ( diff --git a/e2e/e2eutil/allocs.go b/e2e/e2eutil/allocs.go index e418bef7c..cbe8b205e 100644 --- a/e2e/e2eutil/allocs.go +++ b/e2e/e2eutil/allocs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import ( diff --git a/e2e/e2eutil/cli.go b/e2e/e2eutil/cli.go index 46694663b..3da39ecc7 100644 --- a/e2e/e2eutil/cli.go +++ b/e2e/e2eutil/cli.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import ( diff --git a/e2e/e2eutil/client.go b/e2e/e2eutil/client.go index 8d63c82b0..17b9d89fc 100644 --- a/e2e/e2eutil/client.go +++ b/e2e/e2eutil/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import ( diff --git a/e2e/e2eutil/consul.go b/e2e/e2eutil/consul.go index 27f8cf5ab..d8e06f63c 100644 --- a/e2e/e2eutil/consul.go +++ b/e2e/e2eutil/consul.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import ( diff --git a/e2e/e2eutil/deployments.go b/e2e/e2eutil/deployments.go index cdaad573b..7a7708765 100644 --- a/e2e/e2eutil/deployments.go +++ b/e2e/e2eutil/deployments.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import ( diff --git a/e2e/e2eutil/e2ejob.go b/e2e/e2eutil/e2ejob.go index 80ecdc1e7..681b66948 100644 --- a/e2e/e2eutil/e2ejob.go +++ b/e2e/e2eutil/e2ejob.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import ( diff --git a/e2e/e2eutil/input/disconnect-node.nomad b/e2e/e2eutil/input/disconnect-node.nomad index ce8334fb2..216cfccb6 100644 --- a/e2e/e2eutil/input/disconnect-node.nomad +++ b/e2e/e2eutil/input/disconnect-node.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "nodeID" { type = string } diff --git a/e2e/e2eutil/input/restart-node.nomad b/e2e/e2eutil/input/restart-node.nomad index f85aad705..868eb33ed 100644 --- a/e2e/e2eutil/input/restart-node.nomad +++ b/e2e/e2eutil/input/restart-node.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "nodeID" { type = string } diff --git a/e2e/e2eutil/job.go b/e2e/e2eutil/job.go index 7be13bc51..70eacc8f4 100644 --- a/e2e/e2eutil/job.go +++ b/e2e/e2eutil/job.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import ( diff --git a/e2e/e2eutil/node.go b/e2e/e2eutil/node.go index bf0754c5f..de3c5f533 100644 --- a/e2e/e2eutil/node.go +++ b/e2e/e2eutil/node.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import ( diff --git a/e2e/e2eutil/utils.go b/e2e/e2eutil/utils.go index aefb587c5..54ae46675 100644 --- a/e2e/e2eutil/utils.go +++ b/e2e/e2eutil/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import ( diff --git a/e2e/e2eutil/wait.go b/e2e/e2eutil/wait.go index 20a29133b..097b2d30a 100644 --- a/e2e/e2eutil/wait.go +++ b/e2e/e2eutil/wait.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package e2eutil import "time" diff --git a/e2e/eval_priority/eval_priority.go b/e2e/eval_priority/eval_priority.go index 73d208463..ed61921da 100644 --- a/e2e/eval_priority/eval_priority.go +++ b/e2e/eval_priority/eval_priority.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package eval_priority import ( diff --git a/e2e/eval_priority/inputs/thirteen_job_priority.nomad b/e2e/eval_priority/inputs/thirteen_job_priority.nomad index c21d6fedc..af0522eb7 100644 --- a/e2e/eval_priority/inputs/thirteen_job_priority.nomad +++ b/e2e/eval_priority/inputs/thirteen_job_priority.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "image" { default = "busybox:1" } job "networking" { diff --git a/e2e/events/events.go b/e2e/events/events.go index 66a18e223..824cfe05d 100644 --- a/e2e/events/events.go +++ b/e2e/events/events.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package events import ( diff --git a/e2e/events/input/deploy.nomad b/e2e/events/input/deploy.nomad index b1bc46642..88bba39b4 100644 --- a/e2e/events/input/deploy.nomad +++ b/e2e/events/input/deploy.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "deployment_auto.nomad" { datacenters = ["dc1", "dc2"] diff --git a/e2e/events/input/initial.nomad b/e2e/events/input/initial.nomad index 487c41de3..145dbec63 100644 --- a/e2e/events/input/initial.nomad +++ b/e2e/events/input/initial.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "deployment_auto.nomad" { datacenters = ["dc1", "dc2"] diff --git a/e2e/events/input/large-job.nomad b/e2e/events/input/large-job.nomad index 2b15e6059..146ae6d70 100644 --- a/e2e/events/input/large-job.nomad +++ b/e2e/events/input/large-job.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "events" { datacenters = ["dc1"] diff --git a/e2e/example/doc.go b/e2e/example/doc.go index cff57c89a..9fbb1e277 100644 --- a/e2e/example/doc.go +++ b/e2e/example/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package example // This package contains only tests, so this is a placeholder file to diff --git a/e2e/example/example_test.go b/e2e/example/example_test.go index 903cd90fb..0fe0a102d 100644 --- a/e2e/example/example_test.go +++ b/e2e/example/example_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package example import ( diff --git a/e2e/execagent/execagent.go b/e2e/execagent/execagent.go index 517f960dc..4491dbe60 100644 --- a/e2e/execagent/execagent.go +++ b/e2e/execagent/execagent.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package execagent import ( diff --git a/e2e/framework/case.go b/e2e/framework/case.go index 0437fe5a4..513ad86ae 100644 --- a/e2e/framework/case.go +++ b/e2e/framework/case.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package framework import ( diff --git a/e2e/framework/context.go b/e2e/framework/context.go index 750b2a34e..6a54d4fb4 100644 --- a/e2e/framework/context.go +++ b/e2e/framework/context.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package framework import ( diff --git a/e2e/framework/doc.go b/e2e/framework/doc.go index 36765854a..75e9c7e26 100644 --- a/e2e/framework/doc.go +++ b/e2e/framework/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + /* Package framework implements a model for developing end-to-end test suites. The model includes a top level Framework which TestSuites can be added to. TestSuites diff --git a/e2e/framework/framework.go b/e2e/framework/framework.go index 8d59e7c12..040348058 100644 --- a/e2e/framework/framework.go +++ b/e2e/framework/framework.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package framework import ( diff --git a/e2e/framework/interfaces.go b/e2e/framework/interfaces.go index a7e7457dd..3c03adbe2 100644 --- a/e2e/framework/interfaces.go +++ b/e2e/framework/interfaces.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package framework // TestCase is the interface which an E2E test case implements. diff --git a/e2e/framework/provisioner.go b/e2e/framework/provisioner.go index 9629fc4c2..8e5902d06 100644 --- a/e2e/framework/provisioner.go +++ b/e2e/framework/provisioner.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package framework import ( diff --git a/e2e/isolation/chroot_test.go b/e2e/isolation/chroot_test.go index db399770d..be4275a08 100644 --- a/e2e/isolation/chroot_test.go +++ b/e2e/isolation/chroot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package isolation import ( diff --git a/e2e/isolation/input/alloc_exec.nomad b/e2e/isolation/input/alloc_exec.nomad index 2135d05eb..e6ea63b63 100644 --- a/e2e/isolation/input/alloc_exec.nomad +++ b/e2e/isolation/input/alloc_exec.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "alloc_exec" { datacenters = ["dc1"] type = "service" diff --git a/e2e/isolation/input/alloc_exec_java.nomad b/e2e/isolation/input/alloc_exec_java.nomad index c8284669c..12f89c79d 100644 --- a/e2e/isolation/input/alloc_exec_java.nomad +++ b/e2e/isolation/input/alloc_exec_java.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "java_sleep" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/isolation/input/chroot_dl_exec.nomad b/e2e/isolation/input/chroot_dl_exec.nomad index 043b26ae6..d2fc1de87 100644 --- a/e2e/isolation/input/chroot_dl_exec.nomad +++ b/e2e/isolation/input/chroot_dl_exec.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "chroot_dl_exec" { type = "batch" diff --git a/e2e/isolation/input/chroot_docker.nomad b/e2e/isolation/input/chroot_docker.nomad index dd69744a7..e2c28acff 100644 --- a/e2e/isolation/input/chroot_docker.nomad +++ b/e2e/isolation/input/chroot_docker.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "chroot_docker" { type = "batch" diff --git a/e2e/isolation/input/chroot_exec.nomad b/e2e/isolation/input/chroot_exec.nomad index 31ef7f323..eddda57d7 100644 --- a/e2e/isolation/input/chroot_exec.nomad +++ b/e2e/isolation/input/chroot_exec.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "chroot_exec" { type = "batch" diff --git a/e2e/isolation/input/exec.nomad b/e2e/isolation/input/exec.nomad index 67989c1c5..9fa208447 100644 --- a/e2e/isolation/input/exec.nomad +++ b/e2e/isolation/input/exec.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "exec" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/isolation/input/exec_host.nomad b/e2e/isolation/input/exec_host.nomad index 984f31671..702229a88 100644 --- a/e2e/isolation/input/exec_host.nomad +++ b/e2e/isolation/input/exec_host.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "exec" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/isolation/input/java.nomad b/e2e/isolation/input/java.nomad index dd575086d..bb2a77962 100644 --- a/e2e/isolation/input/java.nomad +++ b/e2e/isolation/input/java.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "java_pid" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/isolation/input/java_host.nomad b/e2e/isolation/input/java_host.nomad index 37f938438..6e2e8d5f2 100644 --- a/e2e/isolation/input/java_host.nomad +++ b/e2e/isolation/input/java_host.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "java_pid" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/isolation/input/raw_exec.nomad b/e2e/isolation/input/raw_exec.nomad index f14604132..22b500464 100644 --- a/e2e/isolation/input/raw_exec.nomad +++ b/e2e/isolation/input/raw_exec.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "raw_exec" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/isolation/pids.go b/e2e/isolation/pids.go index d283cb270..4c06901b0 100644 --- a/e2e/isolation/pids.go +++ b/e2e/isolation/pids.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package isolation import ( diff --git a/e2e/lifecycle/inputs/batch.nomad b/e2e/lifecycle/inputs/batch.nomad index 05ad1abb4..17b5bf7af 100644 --- a/e2e/lifecycle/inputs/batch.nomad +++ b/e2e/lifecycle/inputs/batch.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # lifecycle hook test job for batch jobs. touches, removes, and tests # for the existence of files to assert the order of running tasks. # all tasks should exit 0 and the alloc dir should contain the following diff --git a/e2e/lifecycle/inputs/service.nomad b/e2e/lifecycle/inputs/service.nomad index 7b762cba4..4c153b05d 100644 --- a/e2e/lifecycle/inputs/service.nomad +++ b/e2e/lifecycle/inputs/service.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # lifecycle hook test job for service jobs. touches, removes, and tests # for the existence of files to assert the order of running tasks. # after stopping, the alloc dir should contain the following files: diff --git a/e2e/lifecycle/lifecycle.go b/e2e/lifecycle/lifecycle.go index f083030dc..d1a8070bc 100644 --- a/e2e/lifecycle/lifecycle.go +++ b/e2e/lifecycle/lifecycle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lifecycle import ( diff --git a/e2e/metrics/input/cpustress.nomad b/e2e/metrics/input/cpustress.nomad index 175dcfe88..625f26b52 100644 --- a/e2e/metrics/input/cpustress.nomad +++ b/e2e/metrics/input/cpustress.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "cpustress" { datacenters = ["dc1", "dc2"] type = "batch" diff --git a/e2e/metrics/input/diskstress.nomad b/e2e/metrics/input/diskstress.nomad index b790daf16..08f8f5e21 100644 --- a/e2e/metrics/input/diskstress.nomad +++ b/e2e/metrics/input/diskstress.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "diskstress" { datacenters = ["dc1", "dc2"] type = "batch" diff --git a/e2e/metrics/input/fabio.nomad b/e2e/metrics/input/fabio.nomad index fcb2bfe28..13af60bb5 100644 --- a/e2e/metrics/input/fabio.nomad +++ b/e2e/metrics/input/fabio.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "fabio" { datacenters = ["dc1", "dc2"] type = "system" diff --git a/e2e/metrics/input/factorial_windows.nomad b/e2e/metrics/input/factorial_windows.nomad index 0ac2690fb..eee015af8 100644 --- a/e2e/metrics/input/factorial_windows.nomad +++ b/e2e/metrics/input/factorial_windows.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "factorial_windows" { datacenters = ["dc1"] type = "service" diff --git a/e2e/metrics/input/helloworld.nomad b/e2e/metrics/input/helloworld.nomad index 0f8ece580..ded29110d 100644 --- a/e2e/metrics/input/helloworld.nomad +++ b/e2e/metrics/input/helloworld.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "helloworld" { datacenters = ["dc1"] diff --git a/e2e/metrics/input/mem_windows.nomad b/e2e/metrics/input/mem_windows.nomad index bf9e8c636..66558d1a3 100644 --- a/e2e/metrics/input/mem_windows.nomad +++ b/e2e/metrics/input/mem_windows.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "mem_windows" { datacenters = ["dc1"] type = "service" diff --git a/e2e/metrics/input/memstress.nomad b/e2e/metrics/input/memstress.nomad index 5fab7c9dc..50ba8245c 100644 --- a/e2e/metrics/input/memstress.nomad +++ b/e2e/metrics/input/memstress.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "memstress" { datacenters = ["dc1", "dc2"] type = "batch" diff --git a/e2e/metrics/input/prometheus.nomad b/e2e/metrics/input/prometheus.nomad index e54d5d42b..fef2e2025 100644 --- a/e2e/metrics/input/prometheus.nomad +++ b/e2e/metrics/input/prometheus.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "prometheus" { datacenters = ["dc1", "dc2"] type = "service" diff --git a/e2e/metrics/input/simpleweb.nomad b/e2e/metrics/input/simpleweb.nomad index 522526428..1b78984ea 100644 --- a/e2e/metrics/input/simpleweb.nomad +++ b/e2e/metrics/input/simpleweb.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "simpleweb" { datacenters = ["dc1"] type = "system" diff --git a/e2e/metrics/metrics.go b/e2e/metrics/metrics.go index 62fe39846..a63deca48 100644 --- a/e2e/metrics/metrics.go +++ b/e2e/metrics/metrics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package metrics import ( diff --git a/e2e/metrics/prometheus.go b/e2e/metrics/prometheus.go index 84dd70486..e852b4555 100644 --- a/e2e/metrics/prometheus.go +++ b/e2e/metrics/prometheus.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package metrics import ( diff --git a/e2e/namespaces/doc.go b/e2e/namespaces/doc.go index 627b54298..5d357dce9 100644 --- a/e2e/namespaces/doc.go +++ b/e2e/namespaces/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package namespaces // This package contains only tests, so this is a placeholder file to diff --git a/e2e/namespaces/input/namespace_a.nomad b/e2e/namespaces/input/namespace_a.nomad index 336400cb1..db515bd48 100644 --- a/e2e/namespaces/input/namespace_a.nomad +++ b/e2e/namespaces/input/namespace_a.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "namespace_a" { namespace = "NamespaceA" diff --git a/e2e/namespaces/input/namespace_b.nomad b/e2e/namespaces/input/namespace_b.nomad index 97de66e78..9a0343373 100644 --- a/e2e/namespaces/input/namespace_b.nomad +++ b/e2e/namespaces/input/namespace_b.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "namespace_b" { namespace = "NamespaceB" diff --git a/e2e/namespaces/input/namespace_default.nomad b/e2e/namespaces/input/namespace_default.nomad index a81cd4942..43dbd885c 100644 --- a/e2e/namespaces/input/namespace_default.nomad +++ b/e2e/namespaces/input/namespace_default.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "namespace_default" { datacenters = ["dc1", "dc2"] diff --git a/e2e/namespaces/namespaces_test.go b/e2e/namespaces/namespaces_test.go index 4f13e66f5..47cbbecf6 100644 --- a/e2e/namespaces/namespaces_test.go +++ b/e2e/namespaces/namespaces_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package namespaces import ( diff --git a/e2e/networking/inputs/basic.nomad b/e2e/networking/inputs/basic.nomad index 5f6650026..ff2d50804 100644 --- a/e2e/networking/inputs/basic.nomad +++ b/e2e/networking/inputs/basic.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + //e2e:service script=validate.sh job "networking" { datacenters = ["dc1", "dc2"] diff --git a/e2e/networking/inputs/docker_bridged_hostname.nomad b/e2e/networking/inputs/docker_bridged_hostname.nomad index bac6fa808..261965869 100644 --- a/e2e/networking/inputs/docker_bridged_hostname.nomad +++ b/e2e/networking/inputs/docker_bridged_hostname.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "networking" { datacenters = ["dc1", "dc2"] diff --git a/e2e/networking/inputs/docker_bridged_hostname_interpolation.nomad b/e2e/networking/inputs/docker_bridged_hostname_interpolation.nomad index 2d09ed6ec..4a1bba73d 100644 --- a/e2e/networking/inputs/docker_bridged_hostname_interpolation.nomad +++ b/e2e/networking/inputs/docker_bridged_hostname_interpolation.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "networking" { datacenters = ["dc1", "dc2"] diff --git a/e2e/networking/inputs/validate.sh b/e2e/networking/inputs/validate.sh index 45bbf1cfb..e0fceb19e 100755 --- a/e2e/networking/inputs/validate.sh +++ b/e2e/networking/inputs/validate.sh @@ -1,3 +1,6 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + nomad operator api "/v1/allocation/${NOMAD_ALLOC_ID}" | jq '.NetworkStatus.Address | length' diff --git a/e2e/networking/networking.go b/e2e/networking/networking.go index a1d410dd1..b027ae268 100644 --- a/e2e/networking/networking.go +++ b/e2e/networking/networking.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package networking import ( diff --git a/e2e/nodedrain/doc.go b/e2e/nodedrain/doc.go index 770914558..adb870c1e 100644 --- a/e2e/nodedrain/doc.go +++ b/e2e/nodedrain/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nodedrain // This package contains only tests, so this is a placeholder file to diff --git a/e2e/nodedrain/input/drain_deadline.nomad b/e2e/nodedrain/input/drain_deadline.nomad index d86923448..b04aba70c 100644 --- a/e2e/nodedrain/input/drain_deadline.nomad +++ b/e2e/nodedrain/input/drain_deadline.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "drain_deadline" { datacenters = ["dc1", "dc2"] diff --git a/e2e/nodedrain/input/drain_ignore_system.nomad b/e2e/nodedrain/input/drain_ignore_system.nomad index f960da8ad..955d930a9 100644 --- a/e2e/nodedrain/input/drain_ignore_system.nomad +++ b/e2e/nodedrain/input/drain_ignore_system.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "drain_ignore_system_service" { type = "system" diff --git a/e2e/nodedrain/input/drain_migrate.nomad b/e2e/nodedrain/input/drain_migrate.nomad index 27949026d..2bd8faced 100644 --- a/e2e/nodedrain/input/drain_migrate.nomad +++ b/e2e/nodedrain/input/drain_migrate.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "drain_migrate" { constraint { diff --git a/e2e/nodedrain/input/drain_simple.nomad b/e2e/nodedrain/input/drain_simple.nomad index 0ce14efe5..cb6b3d030 100644 --- a/e2e/nodedrain/input/drain_simple.nomad +++ b/e2e/nodedrain/input/drain_simple.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "drain_simple" { constraint { diff --git a/e2e/nodedrain/node_drain_test.go b/e2e/nodedrain/node_drain_test.go index 7ee3a274b..fbbc1f6a9 100644 --- a/e2e/nodedrain/node_drain_test.go +++ b/e2e/nodedrain/node_drain_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nodedrain import ( diff --git a/e2e/nodedrain/nodedrain.go b/e2e/nodedrain/nodedrain.go index 75d9697e1..d7c01d867 100644 --- a/e2e/nodedrain/nodedrain.go +++ b/e2e/nodedrain/nodedrain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nodedrain import ( diff --git a/e2e/nomadexec/exec.go b/e2e/nomadexec/exec.go index e54995a8f..ed6623d7a 100644 --- a/e2e/nomadexec/exec.go +++ b/e2e/nomadexec/exec.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomadexec import ( diff --git a/e2e/nomadexec/testdata/docker.nomad b/e2e/nomadexec/testdata/docker.nomad index 7a0fd6ae6..72f12d005 100644 --- a/e2e/nomadexec/testdata/docker.nomad +++ b/e2e/nomadexec/testdata/docker.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "nomadexec-docker" { datacenters = ["dc1"] diff --git a/e2e/operator_scheduler/doc.go b/e2e/operator_scheduler/doc.go index b8f238c8d..c64fc2319 100644 --- a/e2e/operator_scheduler/doc.go +++ b/e2e/operator_scheduler/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package operator_scheduler provides end-to-end tests for the Nomad operator // scheduler functionality and configuration options. // diff --git a/e2e/operator_scheduler/input/basic.nomad b/e2e/operator_scheduler/input/basic.nomad index b3059c879..7081006c7 100644 --- a/e2e/operator_scheduler/input/basic.nomad +++ b/e2e/operator_scheduler/input/basic.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "operator_scheduler" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/operator_scheduler/operator_scheduler_test.go b/e2e/operator_scheduler/operator_scheduler_test.go index 1872a31d8..62a656eea 100644 --- a/e2e/operator_scheduler/operator_scheduler_test.go +++ b/e2e/operator_scheduler/operator_scheduler_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package operator_scheduler import ( diff --git a/e2e/overlap/overlap_test.go b/e2e/overlap/overlap_test.go index 2ed5dfd0e..aec7d2ac8 100644 --- a/e2e/overlap/overlap_test.go +++ b/e2e/overlap/overlap_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package overlap import ( diff --git a/e2e/overlap/testdata/overlap.nomad b/e2e/overlap/testdata/overlap.nomad index d9d11982c..beb25649c 100644 --- a/e2e/overlap/testdata/overlap.nomad +++ b/e2e/overlap/testdata/overlap.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "overlap" { datacenters = ["dc1", "dc2"] type = "service" diff --git a/e2e/oversubscription/oversubscription.go b/e2e/oversubscription/oversubscription.go index 3118134f9..a09c5eea1 100644 --- a/e2e/oversubscription/oversubscription.go +++ b/e2e/oversubscription/oversubscription.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package oversubscription import ( diff --git a/e2e/oversubscription/testdata/docker.nomad b/e2e/oversubscription/testdata/docker.nomad index 109fad23b..b162dd094 100644 --- a/e2e/oversubscription/testdata/docker.nomad +++ b/e2e/oversubscription/testdata/docker.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "oversubscription-docker" { datacenters = ["dc1"] diff --git a/e2e/oversubscription/testdata/exec.nomad b/e2e/oversubscription/testdata/exec.nomad index 99aae6c9b..2e10a42fd 100644 --- a/e2e/oversubscription/testdata/exec.nomad +++ b/e2e/oversubscription/testdata/exec.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "oversubscription-exec" { datacenters = ["dc1"] diff --git a/e2e/parameterized/input/simple.nomad b/e2e/parameterized/input/simple.nomad index 868095a57..4ea9c71aa 100644 --- a/e2e/parameterized/input/simple.nomad +++ b/e2e/parameterized/input/simple.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "periodic" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/parameterized/parameterized.go b/e2e/parameterized/parameterized.go index 33df7cf73..54e479e5b 100644 --- a/e2e/parameterized/parameterized.go +++ b/e2e/parameterized/parameterized.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package parameterized import ( diff --git a/e2e/periodic/input/simple.nomad b/e2e/periodic/input/simple.nomad index ca315c23c..adec1896c 100644 --- a/e2e/periodic/input/simple.nomad +++ b/e2e/periodic/input/simple.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "periodic" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/periodic/periodic.go b/e2e/periodic/periodic.go index cef0d11f6..15c87ca09 100644 --- a/e2e/periodic/periodic.go +++ b/e2e/periodic/periodic.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package periodic import ( diff --git a/e2e/podman/input/redis.nomad b/e2e/podman/input/redis.nomad index afa1c9b6f..e63b51aad 100644 --- a/e2e/podman/input/redis.nomad +++ b/e2e/podman/input/redis.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "podman-redis" { datacenters = ["dc1"] type = "service" diff --git a/e2e/podman/podman.go b/e2e/podman/podman.go index 1a633f700..c4d629075 100644 --- a/e2e/podman/podman.go +++ b/e2e/podman/podman.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package podman import ( diff --git a/e2e/quotas/quotas_oss.go b/e2e/quotas/quotas_oss.go index 44a0f3a4b..ad5ae546d 100644 --- a/e2e/quotas/quotas_oss.go +++ b/e2e/quotas/quotas_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/e2e/remotetasks/input/ecs.nomad b/e2e/remotetasks/input/ecs.nomad index d2a766ca6..5bb95e6a9 100644 --- a/e2e/remotetasks/input/ecs.nomad +++ b/e2e/remotetasks/input/ecs.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "subnets" { type = list(string) description = "Subnet IDs task will run in." diff --git a/e2e/remotetasks/remotetasks.go b/e2e/remotetasks/remotetasks.go index 2a53334f1..bd6c6025d 100644 --- a/e2e/remotetasks/remotetasks.go +++ b/e2e/remotetasks/remotetasks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package remotetasks import ( diff --git a/e2e/rescheduling/input/norescheduling.nomad b/e2e/rescheduling/input/norescheduling.nomad index 3cf6a397f..463775f0c 100644 --- a/e2e/rescheduling/input/norescheduling.nomad +++ b/e2e/rescheduling/input/norescheduling.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test1" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_canary.nomad b/e2e/rescheduling/input/rescheduling_canary.nomad index 74011421d..06a7e14b5 100644 --- a/e2e/rescheduling/input/rescheduling_canary.nomad +++ b/e2e/rescheduling/input/rescheduling_canary.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test5" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_canary_autorevert.nomad b/e2e/rescheduling/input/rescheduling_canary_autorevert.nomad index 0622cabbd..6b9b42e74 100644 --- a/e2e/rescheduling/input/rescheduling_canary_autorevert.nomad +++ b/e2e/rescheduling/input/rescheduling_canary_autorevert.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_default.nomad b/e2e/rescheduling/input/rescheduling_default.nomad index c878abc3b..f44301191 100644 --- a/e2e/rescheduling/input/rescheduling_default.nomad +++ b/e2e/rescheduling/input/rescheduling_default.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_fail.nomad b/e2e/rescheduling/input/rescheduling_fail.nomad index 88a515abe..ff7aad8b3 100644 --- a/e2e/rescheduling/input/rescheduling_fail.nomad +++ b/e2e/rescheduling/input/rescheduling_fail.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test2" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_maxp.nomad b/e2e/rescheduling/input/rescheduling_maxp.nomad index d94ebee1d..e38eff0a2 100644 --- a/e2e/rescheduling/input/rescheduling_maxp.nomad +++ b/e2e/rescheduling/input/rescheduling_maxp.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "demo2" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_maxp_autorevert.nomad b/e2e/rescheduling/input/rescheduling_maxp_autorevert.nomad index 3381e3f47..7e3c3d5f1 100644 --- a/e2e/rescheduling/input/rescheduling_maxp_autorevert.nomad +++ b/e2e/rescheduling/input/rescheduling_maxp_autorevert.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "demo3" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_progressdeadline.nomad b/e2e/rescheduling/input/rescheduling_progressdeadline.nomad index 1cc52a375..8cb098b70 100644 --- a/e2e/rescheduling/input/rescheduling_progressdeadline.nomad +++ b/e2e/rescheduling/input/rescheduling_progressdeadline.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "demo2" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_progressdeadline_fail.nomad b/e2e/rescheduling/input/rescheduling_progressdeadline_fail.nomad index e9fa54410..65ff943c9 100644 --- a/e2e/rescheduling/input/rescheduling_progressdeadline_fail.nomad +++ b/e2e/rescheduling/input/rescheduling_progressdeadline_fail.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "demo2" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_success.nomad b/e2e/rescheduling/input/rescheduling_success.nomad index ca0fb1ceb..dc8cde2ac 100644 --- a/e2e/rescheduling/input/rescheduling_success.nomad +++ b/e2e/rescheduling/input/rescheduling_success.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test3" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_system.nomad b/e2e/rescheduling/input/rescheduling_system.nomad index f8953d7ec..3c6bd49b0 100644 --- a/e2e/rescheduling/input/rescheduling_system.nomad +++ b/e2e/rescheduling/input/rescheduling_system.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/input/rescheduling_update.nomad b/e2e/rescheduling/input/rescheduling_update.nomad index ec99eb8f8..b1a6c0516 100644 --- a/e2e/rescheduling/input/rescheduling_update.nomad +++ b/e2e/rescheduling/input/rescheduling_update.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "test4" { datacenters = ["dc1", "dc2"] diff --git a/e2e/rescheduling/rescheduling.go b/e2e/rescheduling/rescheduling.go index ce9a5f342..b315505c9 100644 --- a/e2e/rescheduling/rescheduling.go +++ b/e2e/rescheduling/rescheduling.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package rescheduling import ( diff --git a/e2e/scaling/input/namespace_a_1.nomad b/e2e/scaling/input/namespace_a_1.nomad index cfb7d9bfa..fea9a6a40 100644 --- a/e2e/scaling/input/namespace_a_1.nomad +++ b/e2e/scaling/input/namespace_a_1.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "horizontally_scalable" { datacenters = ["dc1"] type = "service" diff --git a/e2e/scaling/input/namespace_default_1.nomad b/e2e/scaling/input/namespace_default_1.nomad index 8e1a2fcea..6ccf29ddb 100644 --- a/e2e/scaling/input/namespace_default_1.nomad +++ b/e2e/scaling/input/namespace_default_1.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "horizontally_scalable" { datacenters = ["dc1"] type = "service" diff --git a/e2e/scaling/input/namespace_default_2.nomad b/e2e/scaling/input/namespace_default_2.nomad index 3d5de5b05..2df6a9411 100644 --- a/e2e/scaling/input/namespace_default_2.nomad +++ b/e2e/scaling/input/namespace_default_2.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "horizontally_scalable" { datacenters = ["dc1"] type = "service" diff --git a/e2e/scaling/input/namespace_default_3.nomad b/e2e/scaling/input/namespace_default_3.nomad index 5c486029a..c8b04a7aa 100644 --- a/e2e/scaling/input/namespace_default_3.nomad +++ b/e2e/scaling/input/namespace_default_3.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "horizontally_scalable" { datacenters = ["dc1"] type = "service" diff --git a/e2e/scaling/scaling.go b/e2e/scaling/scaling.go index cb231bed6..b269d514d 100644 --- a/e2e/scaling/scaling.go +++ b/e2e/scaling/scaling.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scaling import ( diff --git a/e2e/scalingpolicies/input/namespace_a_1.nomad b/e2e/scalingpolicies/input/namespace_a_1.nomad index 6cfb8be85..d2d773f78 100644 --- a/e2e/scalingpolicies/input/namespace_a_1.nomad +++ b/e2e/scalingpolicies/input/namespace_a_1.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "horizontally_scalable" { datacenters = ["dc1"] type = "service" diff --git a/e2e/scalingpolicies/input/namespace_default_1.nomad b/e2e/scalingpolicies/input/namespace_default_1.nomad index fec404f84..32ed3f08c 100644 --- a/e2e/scalingpolicies/input/namespace_default_1.nomad +++ b/e2e/scalingpolicies/input/namespace_default_1.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "horizontally_scalable" { datacenters = ["dc1"] type = "service" diff --git a/e2e/scalingpolicies/input/namespace_default_2.nomad b/e2e/scalingpolicies/input/namespace_default_2.nomad index 28d0f0ee3..c44ff8d3a 100644 --- a/e2e/scalingpolicies/input/namespace_default_2.nomad +++ b/e2e/scalingpolicies/input/namespace_default_2.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "horizontally_scalable" { datacenters = ["dc1"] type = "service" diff --git a/e2e/scalingpolicies/scalingpolicies.go b/e2e/scalingpolicies/scalingpolicies.go index b011bf4fb..2acfc0c9d 100644 --- a/e2e/scalingpolicies/scalingpolicies.go +++ b/e2e/scalingpolicies/scalingpolicies.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scalingpolicies import ( diff --git a/e2e/scheduler_sysbatch/input/sysbatch_dispatch.nomad b/e2e/scheduler_sysbatch/input/sysbatch_dispatch.nomad index dbbf6d74a..5549436d6 100644 --- a/e2e/scheduler_sysbatch/input/sysbatch_dispatch.nomad +++ b/e2e/scheduler_sysbatch/input/sysbatch_dispatch.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "sysbatchjob" { datacenters = ["dc1", "dc2"] diff --git a/e2e/scheduler_sysbatch/input/sysbatch_job_fast.nomad b/e2e/scheduler_sysbatch/input/sysbatch_job_fast.nomad index a831cf14b..15c6afdb1 100644 --- a/e2e/scheduler_sysbatch/input/sysbatch_job_fast.nomad +++ b/e2e/scheduler_sysbatch/input/sysbatch_job_fast.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "sysbatchjob" { datacenters = ["dc1", "dc2"] diff --git a/e2e/scheduler_sysbatch/input/sysbatch_job_slow.nomad b/e2e/scheduler_sysbatch/input/sysbatch_job_slow.nomad index 408cb9c9b..a2a52597b 100644 --- a/e2e/scheduler_sysbatch/input/sysbatch_job_slow.nomad +++ b/e2e/scheduler_sysbatch/input/sysbatch_job_slow.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "sysbatchjob" { datacenters = ["dc1", "dc2"] diff --git a/e2e/scheduler_sysbatch/input/sysbatch_periodic.nomad b/e2e/scheduler_sysbatch/input/sysbatch_periodic.nomad index e1130d5b4..4e73a5da9 100644 --- a/e2e/scheduler_sysbatch/input/sysbatch_periodic.nomad +++ b/e2e/scheduler_sysbatch/input/sysbatch_periodic.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "sysbatchjob" { datacenters = ["dc1", "dc2"] diff --git a/e2e/scheduler_sysbatch/sysbatch.go b/e2e/scheduler_sysbatch/sysbatch.go index 4ba63f46c..791dba485 100644 --- a/e2e/scheduler_sysbatch/sysbatch.go +++ b/e2e/scheduler_sysbatch/sysbatch.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler_sysbatch import ( diff --git a/e2e/scheduler_system/input/system_job0.nomad b/e2e/scheduler_system/input/system_job0.nomad index 6a33ba124..f902782e3 100644 --- a/e2e/scheduler_system/input/system_job0.nomad +++ b/e2e/scheduler_system/input/system_job0.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "system_job" { datacenters = ["dc1", "dc2"] diff --git a/e2e/scheduler_system/input/system_job1.nomad b/e2e/scheduler_system/input/system_job1.nomad index 4e37a3c7b..8f241a497 100644 --- a/e2e/scheduler_system/input/system_job1.nomad +++ b/e2e/scheduler_system/input/system_job1.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "system_job" { datacenters = ["dc1", "dc2"] diff --git a/e2e/scheduler_system/systemsched.go b/e2e/scheduler_system/systemsched.go index 736ee6d6f..0433ec7ab 100644 --- a/e2e/scheduler_system/systemsched.go +++ b/e2e/scheduler_system/systemsched.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler_system import ( diff --git a/e2e/servicediscovery/doc.go b/e2e/servicediscovery/doc.go index 4fae7ec46..61adf16e2 100644 --- a/e2e/servicediscovery/doc.go +++ b/e2e/servicediscovery/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package servicediscovery provides end-to-end tests for Nomads service // discovery feature. It tests all supported discovery providers and ensures // Nomad can handle operator changes to services with the desired effects. diff --git a/e2e/servicediscovery/input/checks_happy.nomad b/e2e/servicediscovery/input/checks_happy.nomad index de902e4cb..40d68b343 100644 --- a/e2e/servicediscovery/input/checks_happy.nomad +++ b/e2e/servicediscovery/input/checks_happy.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "checks_happy" { datacenters = ["dc1"] type = "service" diff --git a/e2e/servicediscovery/input/checks_sad.nomad b/e2e/servicediscovery/input/checks_sad.nomad index 81a2a5a43..20a609479 100644 --- a/e2e/servicediscovery/input/checks_sad.nomad +++ b/e2e/servicediscovery/input/checks_sad.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "checks_sad" { datacenters = ["dc1"] type = "service" diff --git a/e2e/servicediscovery/input/checks_task_restart_helper.nomad b/e2e/servicediscovery/input/checks_task_restart_helper.nomad index 83539d2e1..d87aeecc9 100644 --- a/e2e/servicediscovery/input/checks_task_restart_helper.nomad +++ b/e2e/servicediscovery/input/checks_task_restart_helper.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "nodeID" { type = string } diff --git a/e2e/servicediscovery/input/checks_task_restart_main.nomad b/e2e/servicediscovery/input/checks_task_restart_main.nomad index 580c41401..76d39b973 100644 --- a/e2e/servicediscovery/input/checks_task_restart_main.nomad +++ b/e2e/servicediscovery/input/checks_task_restart_main.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "checks_task_restart" { datacenters = ["dc1"] type = "service" diff --git a/e2e/servicediscovery/input/consul_provider.nomad b/e2e/servicediscovery/input/consul_provider.nomad index 2ac34f510..af033d7e3 100644 --- a/e2e/servicediscovery/input/consul_provider.nomad +++ b/e2e/servicediscovery/input/consul_provider.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "service_discovery" { datacenters = ["dc1"] type = "service" diff --git a/e2e/servicediscovery/input/multi_provider.nomad b/e2e/servicediscovery/input/multi_provider.nomad index 437e3f317..8a0395f9b 100644 --- a/e2e/servicediscovery/input/multi_provider.nomad +++ b/e2e/servicediscovery/input/multi_provider.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "service_discovery" { datacenters = ["dc1"] type = "service" diff --git a/e2e/servicediscovery/input/nomad_provider.nomad b/e2e/servicediscovery/input/nomad_provider.nomad index d30153949..83a701242 100644 --- a/e2e/servicediscovery/input/nomad_provider.nomad +++ b/e2e/servicediscovery/input/nomad_provider.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "service_discovery" { datacenters = ["dc1"] type = "service" diff --git a/e2e/servicediscovery/input/simple_lb_clients.nomad b/e2e/servicediscovery/input/simple_lb_clients.nomad index 875db2393..8697430d6 100644 --- a/e2e/servicediscovery/input/simple_lb_clients.nomad +++ b/e2e/servicediscovery/input/simple_lb_clients.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "simple_lb_clients" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/servicediscovery/input/simple_lb_replicas.nomad b/e2e/servicediscovery/input/simple_lb_replicas.nomad index 9b25f61b2..a2b326d96 100644 --- a/e2e/servicediscovery/input/simple_lb_replicas.nomad +++ b/e2e/servicediscovery/input/simple_lb_replicas.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "simple_lb_replicas" { datacenters = ["dc1"] type = "service" diff --git a/e2e/servicediscovery/nomad_checks_test.go b/e2e/servicediscovery/nomad_checks_test.go index 3be9a6f20..8f348b4a5 100644 --- a/e2e/servicediscovery/nomad_checks_test.go +++ b/e2e/servicediscovery/nomad_checks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package servicediscovery import ( diff --git a/e2e/servicediscovery/service_discovery_test.go b/e2e/servicediscovery/service_discovery_test.go index 0fd863562..0c68b9c48 100644 --- a/e2e/servicediscovery/service_discovery_test.go +++ b/e2e/servicediscovery/service_discovery_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package servicediscovery import ( diff --git a/e2e/servicediscovery/simple_lb_test.go b/e2e/servicediscovery/simple_lb_test.go index d438b06a0..a998e09b2 100644 --- a/e2e/servicediscovery/simple_lb_test.go +++ b/e2e/servicediscovery/simple_lb_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package servicediscovery import ( diff --git a/e2e/spread/doc.go b/e2e/spread/doc.go index ff4925cda..7b9ef4fb4 100644 --- a/e2e/spread/doc.go +++ b/e2e/spread/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package spread provides end-to-end tests for Nomads spread job specification // attribute. This does NOT test Nomads spread scheduler. // diff --git a/e2e/spread/input/even_spread.nomad b/e2e/spread/input/even_spread.nomad index eb3304b43..a379d47ac 100644 --- a/e2e/spread/input/even_spread.nomad +++ b/e2e/spread/input/even_spread.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "r1" { datacenters = ["dc1", "dc2"] type = "service" diff --git a/e2e/spread/input/multiple_spread.nomad b/e2e/spread/input/multiple_spread.nomad index f96047ed7..3a59822f8 100644 --- a/e2e/spread/input/multiple_spread.nomad +++ b/e2e/spread/input/multiple_spread.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "r1" { datacenters = ["dc1", "dc2"] type = "service" diff --git a/e2e/spread/spread_test.go b/e2e/spread/spread_test.go index c2c915cf2..6e03e21be 100644 --- a/e2e/spread/spread_test.go +++ b/e2e/spread/spread_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package spread import ( diff --git a/e2e/taskevents/input/completed_leader.nomad b/e2e/taskevents/input/completed_leader.nomad index c4409bc29..df04d764e 100644 --- a/e2e/taskevents/input/completed_leader.nomad +++ b/e2e/taskevents/input/completed_leader.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "completed_leader" { type = "batch" datacenters = ["dc1"] diff --git a/e2e/taskevents/input/failed_batch.nomad b/e2e/taskevents/input/failed_batch.nomad index 6cb46dbe3..151fd90df 100644 --- a/e2e/taskevents/input/failed_batch.nomad +++ b/e2e/taskevents/input/failed_batch.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "failed_batch" { type = "batch" datacenters = ["dc1"] diff --git a/e2e/taskevents/input/failed_sibling.nomad b/e2e/taskevents/input/failed_sibling.nomad index d58f4d9dd..23e74cc3a 100644 --- a/e2e/taskevents/input/failed_sibling.nomad +++ b/e2e/taskevents/input/failed_sibling.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "failed_sibling" { type = "service" datacenters = ["dc1"] diff --git a/e2e/taskevents/input/simple_batch.nomad b/e2e/taskevents/input/simple_batch.nomad index 744d43df1..ea1c74abe 100644 --- a/e2e/taskevents/input/simple_batch.nomad +++ b/e2e/taskevents/input/simple_batch.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "simple_batch" { type = "batch" datacenters = ["dc1"] diff --git a/e2e/taskevents/taskevents.go b/e2e/taskevents/taskevents.go index 26751c052..1974119e1 100644 --- a/e2e/taskevents/taskevents.go +++ b/e2e/taskevents/taskevents.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package taskevents import ( diff --git a/e2e/terraform/compute.tf b/e2e/terraform/compute.tf index 835c3eeaa..e6b586c87 100644 --- a/e2e/terraform/compute.tf +++ b/e2e/terraform/compute.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + locals { ami_prefix = "nomad-e2e-v3" } diff --git a/e2e/terraform/ecs.tf b/e2e/terraform/ecs.tf index 20d764c89..2f7d837dd 100644 --- a/e2e/terraform/ecs.tf +++ b/e2e/terraform/ecs.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Nomad ECS Remote Task Driver E2E resource "aws_ecs_cluster" "nomad_rtd_e2e" { name = "nomad-rtd-e2e" diff --git a/e2e/terraform/etc/acls/consul/consul-agent-policy.hcl b/e2e/terraform/etc/acls/consul/consul-agent-policy.hcl index 1eda9d2ae..27a8cfef5 100644 --- a/e2e/terraform/etc/acls/consul/consul-agent-policy.hcl +++ b/e2e/terraform/etc/acls/consul/consul-agent-policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # TODO: because Nomad should own most of these interactions, I think # it might be possible to reduce this to: # diff --git a/e2e/terraform/etc/acls/consul/nomad-client-policy.hcl b/e2e/terraform/etc/acls/consul/nomad-client-policy.hcl index 3125fb59f..a7c13823c 100644 --- a/e2e/terraform/etc/acls/consul/nomad-client-policy.hcl +++ b/e2e/terraform/etc/acls/consul/nomad-client-policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + // The Nomad Client will be registering things into its buddy Consul Client. // Note: because we also test the use of Consul namespaces, this token must be // able to register services, read the keystore, and read node data for any diff --git a/e2e/terraform/etc/acls/consul/nomad-server-policy.hcl b/e2e/terraform/etc/acls/consul/nomad-server-policy.hcl index 3c40cfb0d..034ad685d 100644 --- a/e2e/terraform/etc/acls/consul/nomad-server-policy.hcl +++ b/e2e/terraform/etc/acls/consul/nomad-server-policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + // The operator=write permission is required for creating config entries for // connect ingress gateways. operator ACLs are not namespaced, though the // config entries they can generate are. diff --git a/e2e/terraform/etc/acls/vault/nomad-policy.hcl b/e2e/terraform/etc/acls/vault/nomad-policy.hcl index 5da5f2200..b9bfde696 100644 --- a/e2e/terraform/etc/acls/vault/nomad-policy.hcl +++ b/e2e/terraform/etc/acls/vault/nomad-policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Allow creating tokens under "nomad-cluster" role. The role name should be # updated if "nomad-tasks" is not used. path "auth/token/create/nomad-tasks" { diff --git a/e2e/terraform/etc/nomad.d/base.hcl b/e2e/terraform/etc/nomad.d/base.hcl index e3c523145..5bdffae59 100644 --- a/e2e/terraform/etc/nomad.d/base.hcl +++ b/e2e/terraform/etc/nomad.d/base.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + bind_addr = "0.0.0.0" data_dir = "${data_dir}" enable_debug = true diff --git a/e2e/terraform/etc/nomad.d/client-linux-0.hcl b/e2e/terraform/etc/nomad.d/client-linux-0.hcl index f0f9ff2fb..eb0236a00 100644 --- a/e2e/terraform/etc/nomad.d/client-linux-0.hcl +++ b/e2e/terraform/etc/nomad.d/client-linux-0.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { meta { "rack" = "r1" diff --git a/e2e/terraform/etc/nomad.d/client-linux-1.hcl b/e2e/terraform/etc/nomad.d/client-linux-1.hcl index 78f1be395..59dd06a25 100644 --- a/e2e/terraform/etc/nomad.d/client-linux-1.hcl +++ b/e2e/terraform/etc/nomad.d/client-linux-1.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + client { meta { "rack" = "r2" diff --git a/e2e/terraform/etc/nomad.d/client-linux-2.hcl b/e2e/terraform/etc/nomad.d/client-linux-2.hcl index 772ee825f..436d7b8fa 100644 --- a/e2e/terraform/etc/nomad.d/client-linux-2.hcl +++ b/e2e/terraform/etc/nomad.d/client-linux-2.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + datacenter = "dc2" client { diff --git a/e2e/terraform/etc/nomad.d/client-linux-3.hcl b/e2e/terraform/etc/nomad.d/client-linux-3.hcl index 51ff5ad6c..f396d5cae 100644 --- a/e2e/terraform/etc/nomad.d/client-linux-3.hcl +++ b/e2e/terraform/etc/nomad.d/client-linux-3.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + datacenter = "dc2" client { diff --git a/e2e/terraform/etc/nomad.d/client-linux.hcl b/e2e/terraform/etc/nomad.d/client-linux.hcl index c77792b37..a28057814 100644 --- a/e2e/terraform/etc/nomad.d/client-linux.hcl +++ b/e2e/terraform/etc/nomad.d/client-linux.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + plugin_dir = "/opt/nomad/plugins" client { diff --git a/e2e/terraform/etc/nomad.d/client-windows.hcl b/e2e/terraform/etc/nomad.d/client-windows.hcl index 9ab2f87c5..684a9831f 100644 --- a/e2e/terraform/etc/nomad.d/client-windows.hcl +++ b/e2e/terraform/etc/nomad.d/client-windows.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + log_file = "C:\\opt\\nomad\\nomad.log" plugin_dir = "C:\\opt\\nomad\\plugins" diff --git a/e2e/terraform/etc/nomad.d/consul.hcl b/e2e/terraform/etc/nomad.d/consul.hcl index cff8dbb99..e9902ede8 100644 --- a/e2e/terraform/etc/nomad.d/consul.hcl +++ b/e2e/terraform/etc/nomad.d/consul.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + consul { address = "127.0.0.1:8500" token = "${token}" diff --git a/e2e/terraform/etc/nomad.d/index.hcl b/e2e/terraform/etc/nomad.d/index.hcl index 76ff8e9e6..c611d164f 100644 --- a/e2e/terraform/etc/nomad.d/index.hcl +++ b/e2e/terraform/etc/nomad.d/index.hcl @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # This is an empty placeholder for indexed configuration diff --git a/e2e/terraform/etc/nomad.d/server-linux.hcl b/e2e/terraform/etc/nomad.d/server-linux.hcl index 385e208f1..8c39ce95b 100644 --- a/e2e/terraform/etc/nomad.d/server-linux.hcl +++ b/e2e/terraform/etc/nomad.d/server-linux.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + server { enabled = true bootstrap_expect = 3 diff --git a/e2e/terraform/etc/nomad.d/tls.hcl b/e2e/terraform/etc/nomad.d/tls.hcl index 4c51801a9..6cc2d624f 100644 --- a/e2e/terraform/etc/nomad.d/tls.hcl +++ b/e2e/terraform/etc/nomad.d/tls.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + tls { http = true rpc = true diff --git a/e2e/terraform/etc/nomad.d/vault.hcl b/e2e/terraform/etc/nomad.d/vault.hcl index bb8a4a495..c2358fba7 100644 --- a/e2e/terraform/etc/nomad.d/vault.hcl +++ b/e2e/terraform/etc/nomad.d/vault.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + vault { enabled = true address = "${url}" diff --git a/e2e/terraform/hcp-vault-auth/main.tf b/e2e/terraform/hcp-vault-auth/main.tf index eb8569b75..267cb5f91 100644 --- a/e2e/terraform/hcp-vault-auth/main.tf +++ b/e2e/terraform/hcp-vault-auth/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Vault cluster admin tokens expire after 6 hours, so we need to # generate them fresh for test runs. But we can't generate the token # and then use that token with the vault provider in the same diff --git a/e2e/terraform/hcp_consul.tf b/e2e/terraform/hcp_consul.tf index 48bc8515a..ae3b5ca16 100644 --- a/e2e/terraform/hcp_consul.tf +++ b/e2e/terraform/hcp_consul.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Note: the test environment must have the following values set: # export HCP_CLIENT_ID= # export HCP_CLIENT_SECRET= diff --git a/e2e/terraform/hcp_vault.tf b/e2e/terraform/hcp_vault.tf index 42f8bf1f2..1fa77b0d9 100644 --- a/e2e/terraform/hcp_vault.tf +++ b/e2e/terraform/hcp_vault.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Note: the test environment must have the following values set: # export HCP_CLIENT_ID= # export HCP_CLIENT_SECRET= diff --git a/e2e/terraform/iam.tf b/e2e/terraform/iam.tf index b2ebcafa0..d4b092d48 100644 --- a/e2e/terraform/iam.tf +++ b/e2e/terraform/iam.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # note: the creation of this instance profile is in a HashiCorp private repo data "aws_iam_instance_profile" "nomad_e2e_cluster" { name = "nomad_e2e_cluster" diff --git a/e2e/terraform/main.tf b/e2e/terraform/main.tf index 1882f6d59..e1cf85563 100644 --- a/e2e/terraform/main.tf +++ b/e2e/terraform/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + provider "aws" { region = var.region } diff --git a/e2e/terraform/network.tf b/e2e/terraform/network.tf index 26b62023b..63fe0a4c5 100644 --- a/e2e/terraform/network.tf +++ b/e2e/terraform/network.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + data "aws_vpc" "default" { default = true } diff --git a/e2e/terraform/nomad-acls.tf b/e2e/terraform/nomad-acls.tf index 522c5b693..2cc4b7533 100644 --- a/e2e/terraform/nomad-acls.tf +++ b/e2e/terraform/nomad-acls.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Bootstrapping Nomad ACLs: # We can't both bootstrap the ACLs and use the Nomad TF provider's # resource.nomad_acl_token in the same Terraform run, because there's no way diff --git a/e2e/terraform/nomad.tf b/e2e/terraform/nomad.tf index e166ca656..b7e2dfcac 100644 --- a/e2e/terraform/nomad.tf +++ b/e2e/terraform/nomad.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + module "nomad_server" { source = "./provision-nomad" depends_on = [aws_instance.server] diff --git a/e2e/terraform/outputs.tf b/e2e/terraform/outputs.tf index b432744ef..a3e882b96 100644 --- a/e2e/terraform/outputs.tf +++ b/e2e/terraform/outputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + output "servers" { value = aws_instance.server.*.public_ip } diff --git a/e2e/terraform/packer/ubuntu-bionic-amd64.pkr.hcl b/e2e/terraform/packer/ubuntu-bionic-amd64.pkr.hcl index b5b1c34c1..83c8922f2 100644 --- a/e2e/terraform/packer/ubuntu-bionic-amd64.pkr.hcl +++ b/e2e/terraform/packer/ubuntu-bionic-amd64.pkr.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "build_sha" { type = string description = "the revision of the packer scripts building this image" diff --git a/e2e/terraform/packer/ubuntu-bionic-amd64/dnsconfig.sh b/e2e/terraform/packer/ubuntu-bionic-amd64/dnsconfig.sh index d4f476bfd..9f784c1de 100644 --- a/e2e/terraform/packer/ubuntu-bionic-amd64/dnsconfig.sh +++ b/e2e/terraform/packer/ubuntu-bionic-amd64/dnsconfig.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e # These tasks can't be executed during AMI builds because they rely on diff --git a/e2e/terraform/packer/ubuntu-bionic-amd64/setup.sh b/e2e/terraform/packer/ubuntu-bionic-amd64/setup.sh index aeb4166d1..750114310 100755 --- a/e2e/terraform/packer/ubuntu-bionic-amd64/setup.sh +++ b/e2e/terraform/packer/ubuntu-bionic-amd64/setup.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # setup script for Ubuntu Linux 18.04. Assumes that Packer has placed # build-time config files at /tmp/linux diff --git a/e2e/terraform/packer/ubuntu-jammy-amd64.pkr.hcl b/e2e/terraform/packer/ubuntu-jammy-amd64.pkr.hcl index 3dacc507e..629155d70 100644 --- a/e2e/terraform/packer/ubuntu-jammy-amd64.pkr.hcl +++ b/e2e/terraform/packer/ubuntu-jammy-amd64.pkr.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "build_sha" { type = string description = "the revision of the packer scripts building this image" diff --git a/e2e/terraform/packer/ubuntu-jammy-amd64/dnsconfig.sh b/e2e/terraform/packer/ubuntu-jammy-amd64/dnsconfig.sh index d4f476bfd..9f784c1de 100644 --- a/e2e/terraform/packer/ubuntu-jammy-amd64/dnsconfig.sh +++ b/e2e/terraform/packer/ubuntu-jammy-amd64/dnsconfig.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e # These tasks can't be executed during AMI builds because they rely on diff --git a/e2e/terraform/packer/ubuntu-jammy-amd64/setup.sh b/e2e/terraform/packer/ubuntu-jammy-amd64/setup.sh index b20f3c615..9569bc1cb 100755 --- a/e2e/terraform/packer/ubuntu-jammy-amd64/setup.sh +++ b/e2e/terraform/packer/ubuntu-jammy-amd64/setup.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # setup script for Ubuntu Linux 22.04. Assumes that Packer has placed # build-time config files at /tmp/linux diff --git a/e2e/terraform/packer/windows-2016-amd64.pkr.hcl b/e2e/terraform/packer/windows-2016-amd64.pkr.hcl index af6cdad99..ba04dfea4 100644 --- a/e2e/terraform/packer/windows-2016-amd64.pkr.hcl +++ b/e2e/terraform/packer/windows-2016-amd64.pkr.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "build_sha" { type = string description = "the revision of the packer scripts building this image" diff --git a/e2e/terraform/packer/windows-2016-amd64/disable-windows-updates.ps1 b/e2e/terraform/packer/windows-2016-amd64/disable-windows-updates.ps1 index 1b9f80660..d87853865 100755 --- a/e2e/terraform/packer/windows-2016-amd64/disable-windows-updates.ps1 +++ b/e2e/terraform/packer/windows-2016-amd64/disable-windows-updates.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + $RunningAsAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") if (!$RunningAsAdmin) { Write-Error "Must be executed in Administrator level shell." diff --git a/e2e/terraform/packer/windows-2016-amd64/fix-tls.ps1 b/e2e/terraform/packer/windows-2016-amd64/fix-tls.ps1 index f17a6aea5..5b54b27f9 100755 --- a/e2e/terraform/packer/windows-2016-amd64/fix-tls.ps1 +++ b/e2e/terraform/packer/windows-2016-amd64/fix-tls.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # This script hardens TLS configuration by disabling weak and broken protocols # and enabling useful protocols like TLS 1.1 and 1.2. diff --git a/e2e/terraform/packer/windows-2016-amd64/install-consul.ps1 b/e2e/terraform/packer/windows-2016-amd64/install-consul.ps1 index 5d567d1f4..102c8bff9 100755 --- a/e2e/terraform/packer/windows-2016-amd64/install-consul.ps1 +++ b/e2e/terraform/packer/windows-2016-amd64/install-consul.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + Set-StrictMode -Version latest $ErrorActionPreference = "Stop" diff --git a/e2e/terraform/packer/windows-2016-amd64/install-docker.ps1 b/e2e/terraform/packer/windows-2016-amd64/install-docker.ps1 index 0a9ccfa3f..2c604b31c 100755 --- a/e2e/terraform/packer/windows-2016-amd64/install-docker.ps1 +++ b/e2e/terraform/packer/windows-2016-amd64/install-docker.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + Set-StrictMode -Version latest $ErrorActionPreference = "Stop" diff --git a/e2e/terraform/packer/windows-2016-amd64/install-nomad.ps1 b/e2e/terraform/packer/windows-2016-amd64/install-nomad.ps1 index 7fe3e3d26..331674023 100755 --- a/e2e/terraform/packer/windows-2016-amd64/install-nomad.ps1 +++ b/e2e/terraform/packer/windows-2016-amd64/install-nomad.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + Set-StrictMode -Version latest $ErrorActionPreference = "Stop" diff --git a/e2e/terraform/packer/windows-2016-amd64/install-nuget.ps1 b/e2e/terraform/packer/windows-2016-amd64/install-nuget.ps1 index b00a26405..1f56a84a0 100755 --- a/e2e/terraform/packer/windows-2016-amd64/install-nuget.ps1 +++ b/e2e/terraform/packer/windows-2016-amd64/install-nuget.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + Set-StrictMode -Version latest $ErrorActionPreference = "Stop" diff --git a/e2e/terraform/packer/windows-2016-amd64/userdata.ps1 b/e2e/terraform/packer/windows-2016-amd64/userdata.ps1 index 2cf500c87..7e27953d3 100755 --- a/e2e/terraform/packer/windows-2016-amd64/userdata.ps1 +++ b/e2e/terraform/packer/windows-2016-amd64/userdata.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + Set-StrictMode -Version latest diff --git a/e2e/terraform/provision-nomad/install-linux.tf b/e2e/terraform/provision-nomad/install-linux.tf index 90dbdb4f7..1b4589ac3 100644 --- a/e2e/terraform/provision-nomad/install-linux.tf +++ b/e2e/terraform/provision-nomad/install-linux.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + resource "local_sensitive_file" "nomad_systemd_unit_file" { content = templatefile("etc/nomad.d/nomad-${var.role}.service", {}) filename = "${local.upload_dir}/nomad.d/nomad.service" diff --git a/e2e/terraform/provision-nomad/install-windows.tf b/e2e/terraform/provision-nomad/install-windows.tf index 035b96eee..b1661c199 100644 --- a/e2e/terraform/provision-nomad/install-windows.tf +++ b/e2e/terraform/provision-nomad/install-windows.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + resource "null_resource" "install_nomad_binary_windows" { count = var.platform == "windows" ? 1 : 0 triggers = { nomad_binary_sha = filemd5(var.nomad_local_binary) } diff --git a/e2e/terraform/provision-nomad/main.tf b/e2e/terraform/provision-nomad/main.tf index f51d97719..701176e54 100644 --- a/e2e/terraform/provision-nomad/main.tf +++ b/e2e/terraform/provision-nomad/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + locals { upload_dir = "uploads/${var.instance.public_ip}" diff --git a/e2e/terraform/provision-nomad/tls.tf b/e2e/terraform/provision-nomad/tls.tf index fc276c036..125521804 100644 --- a/e2e/terraform/provision-nomad/tls.tf +++ b/e2e/terraform/provision-nomad/tls.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + resource "tls_private_key" "nomad" { algorithm = "ECDSA" ecdsa_curve = "P384" diff --git a/e2e/terraform/provision-nomad/variables.tf b/e2e/terraform/provision-nomad/variables.tf index 093711f26..40959422a 100644 --- a/e2e/terraform/provision-nomad/variables.tf +++ b/e2e/terraform/provision-nomad/variables.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "nomad_local_binary" { type = string description = "Path to local Nomad build (ex. \"/home/me/bin/nomad\")" diff --git a/e2e/terraform/scripts/anonymous.nomad_policy.hcl b/e2e/terraform/scripts/anonymous.nomad_policy.hcl index 7c5f4dda8..045491bd0 100644 --- a/e2e/terraform/scripts/anonymous.nomad_policy.hcl +++ b/e2e/terraform/scripts/anonymous.nomad_policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + agent { policy = "read" } diff --git a/e2e/terraform/scripts/bootstrap-nomad.sh b/e2e/terraform/scripts/bootstrap-nomad.sh index f3d0ba361..c6b7b2398 100755 --- a/e2e/terraform/scripts/bootstrap-nomad.sh +++ b/e2e/terraform/scripts/bootstrap-nomad.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" diff --git a/e2e/terraform/terraform.tfvars b/e2e/terraform/terraform.tfvars index 374ed0d60..b4568f467 100644 --- a/e2e/terraform/terraform.tfvars +++ b/e2e/terraform/terraform.tfvars @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + region = "us-east-1" instance_type = "t3a.medium" server_count = "3" diff --git a/e2e/terraform/tls_ca.tf b/e2e/terraform/tls_ca.tf index f6fbde463..25f158106 100644 --- a/e2e/terraform/tls_ca.tf +++ b/e2e/terraform/tls_ca.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # tls_ca.tf defines the certificate authority we use for mTLS resource "tls_private_key" "ca" { diff --git a/e2e/terraform/tls_client.tf b/e2e/terraform/tls_client.tf index 98ed74ab3..b49c89654 100644 --- a/e2e/terraform/tls_client.tf +++ b/e2e/terraform/tls_client.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # tls_client.tf defines the mTLS certs that'll be used by the E2E test # runner diff --git a/e2e/terraform/userdata/windows-2016.ps1 b/e2e/terraform/userdata/windows-2016.ps1 index a188483e3..98ba3f88c 100755 --- a/e2e/terraform/userdata/windows-2016.ps1 +++ b/e2e/terraform/userdata/windows-2016.ps1 @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Bring ebs volume online with read-write access diff --git a/e2e/terraform/variables.tf b/e2e/terraform/variables.tf index 7aed56b3c..1f2473a3f 100644 --- a/e2e/terraform/variables.tf +++ b/e2e/terraform/variables.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "name" { description = "Used to name various infrastructure components" default = "nomad-e2e" diff --git a/e2e/terraform/versions.tf b/e2e/terraform/versions.tf index ac97c6ac8..83878d7b5 100644 --- a/e2e/terraform/versions.tf +++ b/e2e/terraform/versions.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + terraform { required_version = ">= 0.12" diff --git a/e2e/terraform/volumes.tf b/e2e/terraform/volumes.tf index 519765c2f..487b201eb 100644 --- a/e2e/terraform/volumes.tf +++ b/e2e/terraform/volumes.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + resource "aws_efs_file_system" "csi" { count = var.volumes ? 1 : 0 creation_token = "${local.random_name}-CSI" diff --git a/e2e/ui/global-setup.js b/e2e/ui/global-setup.js index 6f2517667..334ca6e38 100644 --- a/e2e/ui/global-setup.js +++ b/e2e/ui/global-setup.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const { chromium } = require('@playwright/test'); module.exports = async config => { diff --git a/e2e/ui/input/proxy.nomad b/e2e/ui/input/proxy.nomad index 8ad9dd01c..3ba3a5a04 100644 --- a/e2e/ui/input/proxy.nomad +++ b/e2e/ui/input/proxy.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "nomad-proxy" { datacenters = ["dc1", "dc2"] namespace = "proxy" diff --git a/e2e/ui/playwright.config.js b/e2e/ui/playwright.config.js index 45bf120af..e3743c2ed 100644 --- a/e2e/ui/playwright.config.js +++ b/e2e/ui/playwright.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // playwright.config.js // @ts-check const { devices } = require('@playwright/test'); diff --git a/e2e/ui/run.sh b/e2e/ui/run.sh index 849c89849..4afc5a78b 100755 --- a/e2e/ui/run.sh +++ b/e2e/ui/run.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e help() { diff --git a/e2e/ui/script.sh b/e2e/ui/script.sh index 493d59f0a..2a158a6e1 100644 --- a/e2e/ui/script.sh +++ b/e2e/ui/script.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # we can't simply run 'npm playwright test' because of a bug in either # NPM or playwright where we get either an interactive prompt or (with # --yes) a permission denied error when trying to invoke diff --git a/e2e/ui/tests/example.spec.js b/e2e/ui/tests/example.spec.js index 00a2b2f7d..f3496acdb 100644 --- a/e2e/ui/tests/example.spec.js +++ b/e2e/ui/tests/example.spec.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const { test, expect } = require('@playwright/test'); test('authenticated users can see their policies', async ({ page }) => { diff --git a/e2e/upgrades/client1.hcl b/e2e/upgrades/client1.hcl index 5908c72ba..aadea0954 100644 --- a/e2e/upgrades/client1.hcl +++ b/e2e/upgrades/client1.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/e2e/upgrades/client2.hcl b/e2e/upgrades/client2.hcl index f6249fbb9..d48b9a742 100644 --- a/e2e/upgrades/client2.hcl +++ b/e2e/upgrades/client2.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/e2e/upgrades/client3.hcl b/e2e/upgrades/client3.hcl index 93db926b7..77f589f5e 100644 --- a/e2e/upgrades/client3.hcl +++ b/e2e/upgrades/client3.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/e2e/upgrades/kill_node.sh b/e2e/upgrades/kill_node.sh index b4ac36b0c..f1421ecb3 100755 --- a/e2e/upgrades/kill_node.sh +++ b/e2e/upgrades/kill_node.sh @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + #/bin/bash # This script takes the config file of the node being killed # usage ./_kill_node.sh client1 diff --git a/e2e/upgrades/run_cluster.sh b/e2e/upgrades/run_cluster.sh index 78cfe39f5..9afe6a92f 100755 --- a/e2e/upgrades/run_cluster.sh +++ b/e2e/upgrades/run_cluster.sh @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + #/bin/bash # This script takes path to a binary and runs a 3 server, two node cluster if [ "$#" -ne 1 ]; then diff --git a/e2e/upgrades/run_node.sh b/e2e/upgrades/run_node.sh index 9a68cf857..b1b9086eb 100755 --- a/e2e/upgrades/run_node.sh +++ b/e2e/upgrades/run_node.sh @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + #/bin/bash # this script runs a nomad node (client/server) # first arg is the binary and second arg is of the format (). diff --git a/e2e/upgrades/run_upgrade_safe.sh b/e2e/upgrades/run_upgrade_safe.sh index 69fc98088..a92434316 100644 --- a/e2e/upgrades/run_upgrade_safe.sh +++ b/e2e/upgrades/run_upgrade_safe.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + if [ $# -lt 2 ]; then echo "usage: $0 path-nomad-v1 path-nomad-v2" 1>&2 exit 1 diff --git a/e2e/upgrades/run_upgrade_unsafe.sh b/e2e/upgrades/run_upgrade_unsafe.sh index 50b6c985c..e63138f19 100644 --- a/e2e/upgrades/run_upgrade_unsafe.sh +++ b/e2e/upgrades/run_upgrade_unsafe.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + if [ $# -lt 2 ]; then echo "usage: $0 path-nomad-v1 path-nomad-v2" 1>&2 exit 1 diff --git a/e2e/upgrades/server1.hcl b/e2e/upgrades/server1.hcl index 62b2c792a..64b158e39 100644 --- a/e2e/upgrades/server1.hcl +++ b/e2e/upgrades/server1.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/e2e/upgrades/server2.hcl b/e2e/upgrades/server2.hcl index eedf8a390..27e5b0b27 100644 --- a/e2e/upgrades/server2.hcl +++ b/e2e/upgrades/server2.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/e2e/upgrades/server3.hcl b/e2e/upgrades/server3.hcl index f017a00bf..939fe9c9b 100644 --- a/e2e/upgrades/server3.hcl +++ b/e2e/upgrades/server3.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Increase log verbosity log_level = "DEBUG" diff --git a/e2e/vaultcompat/consts_test.go b/e2e/vaultcompat/consts_test.go index 12e2558c6..e29d5e254 100644 --- a/e2e/vaultcompat/consts_test.go +++ b/e2e/vaultcompat/consts_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package vaultcompat import ( diff --git a/e2e/vaultcompat/vault_test.go b/e2e/vaultcompat/vault_test.go index 89414ba36..429cd90f1 100644 --- a/e2e/vaultcompat/vault_test.go +++ b/e2e/vaultcompat/vault_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package vaultcompat import ( diff --git a/e2e/vaultsecrets/input/policy-bad.hcl b/e2e/vaultsecrets/input/policy-bad.hcl index aa17bb8b3..8f8a49853 100644 --- a/e2e/vaultsecrets/input/policy-bad.hcl +++ b/e2e/vaultsecrets/input/policy-bad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + path "secret-nonsense" { capabilities = ["read"] } diff --git a/e2e/vaultsecrets/input/policy-good.hcl b/e2e/vaultsecrets/input/policy-good.hcl index 663165ff3..fa2aebb22 100644 --- a/e2e/vaultsecrets/input/policy-good.hcl +++ b/e2e/vaultsecrets/input/policy-good.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + path "secrets-TESTID/data/myapp" { capabilities = ["read"] } diff --git a/e2e/vaultsecrets/input/secrets.nomad b/e2e/vaultsecrets/input/secrets.nomad index 0fa2b63e3..ee93715af 100644 --- a/e2e/vaultsecrets/input/secrets.nomad +++ b/e2e/vaultsecrets/input/secrets.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "secrets" { datacenters = ["dc1", "dc2"] diff --git a/e2e/vaultsecrets/vaultsecrets.go b/e2e/vaultsecrets/vaultsecrets.go index c07a6b8d0..6f2d47df1 100644 --- a/e2e/vaultsecrets/vaultsecrets.go +++ b/e2e/vaultsecrets/vaultsecrets.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package vaultsecrets import ( diff --git a/e2e/volumes/doc.go b/e2e/volumes/doc.go index be5561ab3..292beaa45 100644 --- a/e2e/volumes/doc.go +++ b/e2e/volumes/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package volumes // This package contains only tests, so this is a placeholder file to diff --git a/e2e/volumes/input/volumes.nomad b/e2e/volumes/input/volumes.nomad index 95f304f8c..541ef5b32 100644 --- a/e2e/volumes/input/volumes.nomad +++ b/e2e/volumes/input/volumes.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "volumes" { datacenters = ["dc1", "dc2"] diff --git a/e2e/volumes/volumes_test.go b/e2e/volumes/volumes_test.go index 742f56825..aa6013dd2 100644 --- a/e2e/volumes/volumes_test.go +++ b/e2e/volumes/volumes_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package volumes import ( diff --git a/e2e/workload_id/input/api-auth.nomad.hcl b/e2e/workload_id/input/api-auth.nomad.hcl index 9f414f2ca..397e0669b 100644 --- a/e2e/workload_id/input/api-auth.nomad.hcl +++ b/e2e/workload_id/input/api-auth.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "api-auth" { type = "batch" diff --git a/e2e/workload_id/input/api-win.nomad.hcl b/e2e/workload_id/input/api-win.nomad.hcl index 8224887f4..0af3a4ae7 100644 --- a/e2e/workload_id/input/api-win.nomad.hcl +++ b/e2e/workload_id/input/api-win.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "api-win" { type = "batch" diff --git a/e2e/workload_id/input/identity.nomad b/e2e/workload_id/input/identity.nomad index 08d91e50c..83701f9dd 100644 --- a/e2e/workload_id/input/identity.nomad +++ b/e2e/workload_id/input/identity.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "identity" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/workload_id/input/nobody.nomad b/e2e/workload_id/input/nobody.nomad index 04b212647..7824f1deb 100644 --- a/e2e/workload_id/input/nobody.nomad +++ b/e2e/workload_id/input/nobody.nomad @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "nobodyid" { datacenters = ["dc1"] type = "batch" diff --git a/e2e/workload_id/input/node-meta.nomad.hcl b/e2e/workload_id/input/node-meta.nomad.hcl index 0d274d149..d1f978383 100644 --- a/e2e/workload_id/input/node-meta.nomad.hcl +++ b/e2e/workload_id/input/node-meta.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "foo_key" { type = string } diff --git a/e2e/workload_id/nodemeta_test.go b/e2e/workload_id/nodemeta_test.go index 9e7a2159b..c134556c5 100644 --- a/e2e/workload_id/nodemeta_test.go +++ b/e2e/workload_id/nodemeta_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package workload_id import ( diff --git a/e2e/workload_id/taskapi_test.go b/e2e/workload_id/taskapi_test.go index daad675f5..82c6c018f 100644 --- a/e2e/workload_id/taskapi_test.go +++ b/e2e/workload_id/taskapi_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package workload_id import ( diff --git a/e2e/workload_id/workload_id_test.go b/e2e/workload_id/workload_id_test.go index eea88f4cc..997885c2d 100644 --- a/e2e/workload_id/workload_id_test.go +++ b/e2e/workload_id/workload_id_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package workload_id import ( diff --git a/helper/args/args.go b/helper/args/args.go index fd78c3770..a8e76984f 100644 --- a/helper/args/args.go +++ b/helper/args/args.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package args import "regexp" diff --git a/helper/args/args_test.go b/helper/args/args_test.go index 5b8d91b82..03803fb91 100644 --- a/helper/args/args_test.go +++ b/helper/args/args_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package args import ( diff --git a/helper/boltdd/boltdd.go b/helper/boltdd/boltdd.go index 5b492e097..c968bfde9 100644 --- a/helper/boltdd/boltdd.go +++ b/helper/boltdd/boltdd.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package boltdd contains a wrapper around BBoltDB to deduplicate writes and encode // values using mgspack. (dd stands for de-duplicate) package boltdd diff --git a/helper/boltdd/boltdd_test.go b/helper/boltdd/boltdd_test.go index 18b057f70..e8cbfcf0e 100644 --- a/helper/boltdd/boltdd_test.go +++ b/helper/boltdd/boltdd_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package boltdd import ( diff --git a/helper/broker/notify.go b/helper/broker/notify.go index 24320dce4..e84c85258 100644 --- a/helper/broker/notify.go +++ b/helper/broker/notify.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package broker import ( diff --git a/helper/broker/notify_test.go b/helper/broker/notify_test.go index 51943987e..a721d37d0 100644 --- a/helper/broker/notify_test.go +++ b/helper/broker/notify_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package broker import ( diff --git a/helper/bufconndialer/bufconndialer.go b/helper/bufconndialer/bufconndialer.go index 3985d1de9..ea5fe40f7 100644 --- a/helper/bufconndialer/bufconndialer.go +++ b/helper/bufconndialer/bufconndialer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // BufConnWrapper implements consul-template's TransportDialer using a // bufconn listener, to provide a way to Dial the in-memory listener // diff --git a/helper/bufconndialer/bufconndialer_test.go b/helper/bufconndialer/bufconndialer_test.go index f0f9b1a90..ce9722ac1 100644 --- a/helper/bufconndialer/bufconndialer_test.go +++ b/helper/bufconndialer/bufconndialer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package bufconndialer import ( diff --git a/helper/cluster.go b/helper/cluster.go index 1abca1481..77fa59bd6 100644 --- a/helper/cluster.go +++ b/helper/cluster.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package helper import ( diff --git a/helper/cluster_test.go b/helper/cluster_test.go index 4c337628a..4229c9203 100644 --- a/helper/cluster_test.go +++ b/helper/cluster_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package helper import ( diff --git a/helper/codec/inmem.go b/helper/codec/inmem.go index ca52be3b7..8a79379e3 100644 --- a/helper/codec/inmem.go +++ b/helper/codec/inmem.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package codec import ( diff --git a/helper/constraints/semver/constraints.go b/helper/constraints/semver/constraints.go index f61d3d624..1c3afb0ca 100644 --- a/helper/constraints/semver/constraints.go +++ b/helper/constraints/semver/constraints.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // semver is a Semver Constraints package copied from // github.com/hashicorp/go-version @ 2046c9d0f0b03c779670f5186a2a4b2c85493a71 // diff --git a/helper/constraints/semver/constraints_test.go b/helper/constraints/semver/constraints_test.go index 5c50d49d6..625c8dd54 100644 --- a/helper/constraints/semver/constraints_test.go +++ b/helper/constraints/semver/constraints_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package semver import ( diff --git a/helper/crypto/crypto.go b/helper/crypto/crypto.go index 03af45928..1fa107ac6 100644 --- a/helper/crypto/crypto.go +++ b/helper/crypto/crypto.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package crypto import ( diff --git a/helper/discover/discover.go b/helper/discover/discover.go index 8adbd8d21..02459e155 100644 --- a/helper/discover/discover.go +++ b/helper/discover/discover.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discover import ( diff --git a/helper/envoy/envoy.go b/helper/envoy/envoy.go index e07e1ccc4..5c99623a7 100644 --- a/helper/envoy/envoy.go +++ b/helper/envoy/envoy.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package envoy provides a high level view of the variables that go into // selecting an envoy version. package envoy diff --git a/helper/envoy/envoy_test.go b/helper/envoy/envoy_test.go index 90baa2d88..a6f05a368 100644 --- a/helper/envoy/envoy_test.go +++ b/helper/envoy/envoy_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package envoy import ( diff --git a/helper/eof.go b/helper/eof.go index 5152fbdb3..4349a9f55 100644 --- a/helper/eof.go +++ b/helper/eof.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // These functions are coming from consul/lib/eof.go package helper diff --git a/helper/escapingfs/escapes.go b/helper/escapingfs/escapes.go index d8eff9467..f223500ba 100644 --- a/helper/escapingfs/escapes.go +++ b/helper/escapingfs/escapes.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package escapingfs import ( diff --git a/helper/escapingfs/escapes_test.go b/helper/escapingfs/escapes_test.go index f737e87a4..f54576be9 100644 --- a/helper/escapingfs/escapes_test.go +++ b/helper/escapingfs/escapes_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package escapingfs import ( diff --git a/helper/escapingio/reader.go b/helper/escapingio/reader.go index e1cdb7553..6fa8c9f7f 100644 --- a/helper/escapingio/reader.go +++ b/helper/escapingio/reader.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package escapingio import ( diff --git a/helper/escapingio/reader_test.go b/helper/escapingio/reader_test.go index 594f485a5..fc3532857 100644 --- a/helper/escapingio/reader_test.go +++ b/helper/escapingio/reader_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package escapingio import ( diff --git a/helper/fields/data.go b/helper/fields/data.go index 8423fb67f..cabb79ba2 100644 --- a/helper/fields/data.go +++ b/helper/fields/data.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fields import ( diff --git a/helper/fields/data_test.go b/helper/fields/data_test.go index 01285ec2e..4e88fe448 100644 --- a/helper/fields/data_test.go +++ b/helper/fields/data_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fields import ( diff --git a/helper/fields/schema.go b/helper/fields/schema.go index f57a97685..521885d97 100644 --- a/helper/fields/schema.go +++ b/helper/fields/schema.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fields // FieldSchema is a basic schema to describe the format of a configuration field diff --git a/helper/fields/schema_test.go b/helper/fields/schema_test.go index ee59e6234..d852a8d91 100644 --- a/helper/fields/schema_test.go +++ b/helper/fields/schema_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fields import "testing" diff --git a/helper/fields/type.go b/helper/fields/type.go index dced1b186..d6e8681f8 100644 --- a/helper/fields/type.go +++ b/helper/fields/type.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fields // FieldType is the enum of types that a field can be. diff --git a/helper/fields/type_test.go b/helper/fields/type_test.go index 3912e3198..03156f8f6 100644 --- a/helper/fields/type_test.go +++ b/helper/fields/type_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fields import "testing" diff --git a/helper/flags/autopilot_flags.go b/helper/flags/autopilot_flags.go index d0a984a72..346489bc9 100644 --- a/helper/flags/autopilot_flags.go +++ b/helper/flags/autopilot_flags.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package flags // These flag type implementations are provided to maintain autopilot command diff --git a/helper/flags/autopilot_flags_test.go b/helper/flags/autopilot_flags_test.go index 8d44e7219..82f37a7e5 100644 --- a/helper/flags/autopilot_flags_test.go +++ b/helper/flags/autopilot_flags_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package flags import ( diff --git a/helper/flags/flag.go b/helper/flags/flag.go index 62859f004..01d73ca7d 100644 --- a/helper/flags/flag.go +++ b/helper/flags/flag.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package flags import ( diff --git a/helper/flags/flag_test.go b/helper/flags/flag_test.go index 9f94c601d..a18153024 100644 --- a/helper/flags/flag_test.go +++ b/helper/flags/flag_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package flags import ( diff --git a/helper/flatmap/flatmap.go b/helper/flatmap/flatmap.go index 8cac4dde1..b1e354f21 100644 --- a/helper/flatmap/flatmap.go +++ b/helper/flatmap/flatmap.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package flatmap import ( diff --git a/helper/flatmap/flatmap_test.go b/helper/flatmap/flatmap_test.go index 821060ff8..43a3459d1 100644 --- a/helper/flatmap/flatmap_test.go +++ b/helper/flatmap/flatmap_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package flatmap import ( diff --git a/helper/funcs.go b/helper/funcs.go index 612dfa7a4..2e6d8529f 100644 --- a/helper/funcs.go +++ b/helper/funcs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package helper import ( diff --git a/helper/funcs_test.go b/helper/funcs_test.go index 5e366aeeb..78937b0a1 100644 --- a/helper/funcs_test.go +++ b/helper/funcs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package helper import ( diff --git a/helper/gated-writer/writer.go b/helper/gated-writer/writer.go index 077652468..0c4a241a0 100644 --- a/helper/gated-writer/writer.go +++ b/helper/gated-writer/writer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package gatedwriter import ( diff --git a/helper/gated-writer/writer_test.go b/helper/gated-writer/writer_test.go index 3d924b273..5f7843d4f 100644 --- a/helper/gated-writer/writer_test.go +++ b/helper/gated-writer/writer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package gatedwriter import ( diff --git a/helper/grpc-middleware/logging/client_interceptors.go b/helper/grpc-middleware/logging/client_interceptors.go index 78416d755..599378350 100644 --- a/helper/grpc-middleware/logging/client_interceptors.go +++ b/helper/grpc-middleware/logging/client_interceptors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logging import ( diff --git a/helper/grpc-middleware/logging/options.go b/helper/grpc-middleware/logging/options.go index 03e63b5d3..c5f46898e 100644 --- a/helper/grpc-middleware/logging/options.go +++ b/helper/grpc-middleware/logging/options.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logging import ( diff --git a/helper/ipaddr/ipaddr.go b/helper/ipaddr/ipaddr.go index e42d41c0b..f5af897e5 100644 --- a/helper/ipaddr/ipaddr.go +++ b/helper/ipaddr/ipaddr.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ipaddr // IsAny checks if the given IP address is an IPv4 or IPv6 ANY address. diff --git a/helper/ipaddr/ipaddr_test.go b/helper/ipaddr/ipaddr_test.go index ad64003a0..ad246102c 100644 --- a/helper/ipaddr/ipaddr_test.go +++ b/helper/ipaddr/ipaddr_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ipaddr import ( diff --git a/helper/logging/logging.go b/helper/logging/logging.go index c85659ff0..b1cb235cf 100644 --- a/helper/logging/logging.go +++ b/helper/logging/logging.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logging import ( diff --git a/helper/mount/mount.go b/helper/mount/mount.go index cd3e5f362..b98c0fe9b 100644 --- a/helper/mount/mount.go +++ b/helper/mount/mount.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mount // Mounter defines the set of methods to allow for mount operations on a system. diff --git a/helper/mount/mount_linux.go b/helper/mount/mount_linux.go index 5139f8efd..d7f987213 100644 --- a/helper/mount/mount_linux.go +++ b/helper/mount/mount_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux // +build linux diff --git a/helper/mount/mount_unsupported.go b/helper/mount/mount_unsupported.go index 5522faea2..e0e661a20 100644 --- a/helper/mount/mount_unsupported.go +++ b/helper/mount/mount_unsupported.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux // +build !linux diff --git a/helper/noxssrw/noxssrw.go b/helper/noxssrw/noxssrw.go index a5b1cd28a..8403883a2 100644 --- a/helper/noxssrw/noxssrw.go +++ b/helper/noxssrw/noxssrw.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package noxssrw (No XSS ResponseWriter) behaves like the Go standard // library's ResponseWriter by detecting the Content-Type of a response if it // has not been explicitly set. However, unlike the standard library's diff --git a/helper/opaque.go b/helper/opaque.go index 0dbe172f0..fe3d90764 100644 --- a/helper/opaque.go +++ b/helper/opaque.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package helper import ( diff --git a/helper/opaque_test.go b/helper/opaque_test.go index 52913c7b7..9a7562bf7 100644 --- a/helper/opaque_test.go +++ b/helper/opaque_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package helper import ( diff --git a/helper/pluginutils/catalog/catalog.go b/helper/pluginutils/catalog/catalog.go index 6d12de4a3..98852cfdb 100644 --- a/helper/pluginutils/catalog/catalog.go +++ b/helper/pluginutils/catalog/catalog.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package catalog is used to register internal plugins such that they can be // loaded. package catalog diff --git a/helper/pluginutils/catalog/register.go b/helper/pluginutils/catalog/register.go index bd238e88f..effacdd38 100644 --- a/helper/pluginutils/catalog/register.go +++ b/helper/pluginutils/catalog/register.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package catalog import ( diff --git a/helper/pluginutils/catalog/register_testing.go b/helper/pluginutils/catalog/register_testing.go index f1e0914ba..101780dd3 100644 --- a/helper/pluginutils/catalog/register_testing.go +++ b/helper/pluginutils/catalog/register_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !release // +build !release diff --git a/helper/pluginutils/catalog/testing.go b/helper/pluginutils/catalog/testing.go index 741664ca4..4483443ad 100644 --- a/helper/pluginutils/catalog/testing.go +++ b/helper/pluginutils/catalog/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package catalog import ( diff --git a/helper/pluginutils/grpcutils/utils.go b/helper/pluginutils/grpcutils/utils.go index 001cf4ad3..ff6d67d50 100644 --- a/helper/pluginutils/grpcutils/utils.go +++ b/helper/pluginutils/grpcutils/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package grpcutils import ( diff --git a/helper/pluginutils/hclspecutils/dec.go b/helper/pluginutils/hclspecutils/dec.go index a6282434b..7cf0e0dc9 100644 --- a/helper/pluginutils/hclspecutils/dec.go +++ b/helper/pluginutils/hclspecutils/dec.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclspecutils import ( diff --git a/helper/pluginutils/hclspecutils/dec_test.go b/helper/pluginutils/hclspecutils/dec_test.go index 82dcd4ee8..248dc7423 100644 --- a/helper/pluginutils/hclspecutils/dec_test.go +++ b/helper/pluginutils/hclspecutils/dec_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclspecutils import ( diff --git a/helper/pluginutils/hclspecutils/spec_funcs.go b/helper/pluginutils/hclspecutils/spec_funcs.go index c5ab39cb5..bed0d3a58 100644 --- a/helper/pluginutils/hclspecutils/spec_funcs.go +++ b/helper/pluginutils/hclspecutils/spec_funcs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclspecutils import ( diff --git a/helper/pluginutils/hclspecutils/type_expr.go b/helper/pluginutils/hclspecutils/type_expr.go index f2813c5ff..ad516daf3 100644 --- a/helper/pluginutils/hclspecutils/type_expr.go +++ b/helper/pluginutils/hclspecutils/type_expr.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclspecutils import ( diff --git a/helper/pluginutils/hclutils/testing.go b/helper/pluginutils/hclutils/testing.go index 49211f010..558bdb34d 100644 --- a/helper/pluginutils/hclutils/testing.go +++ b/helper/pluginutils/hclutils/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclutils import ( diff --git a/helper/pluginutils/hclutils/types.go b/helper/pluginutils/hclutils/types.go index 22593fe46..35146624f 100644 --- a/helper/pluginutils/hclutils/types.go +++ b/helper/pluginutils/hclutils/types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclutils import ( diff --git a/helper/pluginutils/hclutils/types_test.go b/helper/pluginutils/hclutils/types_test.go index 26a762962..60524f707 100644 --- a/helper/pluginutils/hclutils/types_test.go +++ b/helper/pluginutils/hclutils/types_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclutils_test import ( diff --git a/helper/pluginutils/hclutils/util.go b/helper/pluginutils/hclutils/util.go index 7cb0ee3e0..ffe71ad8f 100644 --- a/helper/pluginutils/hclutils/util.go +++ b/helper/pluginutils/hclutils/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclutils import ( diff --git a/helper/pluginutils/hclutils/util_test.go b/helper/pluginutils/hclutils/util_test.go index 1e09d76b9..23092f32c 100644 --- a/helper/pluginutils/hclutils/util_test.go +++ b/helper/pluginutils/hclutils/util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclutils_test import ( diff --git a/helper/pluginutils/loader/api_versions.go b/helper/pluginutils/loader/api_versions.go index c35db68ab..5cebd90a3 100644 --- a/helper/pluginutils/loader/api_versions.go +++ b/helper/pluginutils/loader/api_versions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package loader import ( diff --git a/helper/pluginutils/loader/filter_unix.go b/helper/pluginutils/loader/filter_unix.go index 5ef821404..ff459e891 100644 --- a/helper/pluginutils/loader/filter_unix.go +++ b/helper/pluginutils/loader/filter_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/helper/pluginutils/loader/filter_windows.go b/helper/pluginutils/loader/filter_windows.go index 021e1cc24..4852d094d 100644 --- a/helper/pluginutils/loader/filter_windows.go +++ b/helper/pluginutils/loader/filter_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows // +build windows diff --git a/helper/pluginutils/loader/init.go b/helper/pluginutils/loader/init.go index 1cda5b151..415971a36 100644 --- a/helper/pluginutils/loader/init.go +++ b/helper/pluginutils/loader/init.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package loader import ( diff --git a/helper/pluginutils/loader/instance.go b/helper/pluginutils/loader/instance.go index e396eb45a..1cd63803c 100644 --- a/helper/pluginutils/loader/instance.go +++ b/helper/pluginutils/loader/instance.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package loader import plugin "github.com/hashicorp/go-plugin" diff --git a/helper/pluginutils/loader/loader.go b/helper/pluginutils/loader/loader.go index 01644cb12..3bf226a14 100644 --- a/helper/pluginutils/loader/loader.go +++ b/helper/pluginutils/loader/loader.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package loader import ( diff --git a/helper/pluginutils/loader/loader_test.go b/helper/pluginutils/loader/loader_test.go index 72232aae5..cdb844fa0 100644 --- a/helper/pluginutils/loader/loader_test.go +++ b/helper/pluginutils/loader/loader_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package loader import ( diff --git a/helper/pluginutils/loader/plugin_test.go b/helper/pluginutils/loader/plugin_test.go index 69bd9fc85..0ba250873 100644 --- a/helper/pluginutils/loader/plugin_test.go +++ b/helper/pluginutils/loader/plugin_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package loader import ( diff --git a/helper/pluginutils/loader/testing.go b/helper/pluginutils/loader/testing.go index 75d2432fe..af2765f9a 100644 --- a/helper/pluginutils/loader/testing.go +++ b/helper/pluginutils/loader/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package loader import ( diff --git a/helper/pluginutils/loader/util.go b/helper/pluginutils/loader/util.go index 6409b95de..6126c1c85 100644 --- a/helper/pluginutils/loader/util.go +++ b/helper/pluginutils/loader/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package loader import ( diff --git a/helper/pluginutils/singleton/future.go b/helper/pluginutils/singleton/future.go index 6869f2763..398716b3a 100644 --- a/helper/pluginutils/singleton/future.go +++ b/helper/pluginutils/singleton/future.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package singleton import ( diff --git a/helper/pluginutils/singleton/singleton.go b/helper/pluginutils/singleton/singleton.go index 2b90f549c..3b076a13e 100644 --- a/helper/pluginutils/singleton/singleton.go +++ b/helper/pluginutils/singleton/singleton.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package singleton import ( diff --git a/helper/pluginutils/singleton/singleton_test.go b/helper/pluginutils/singleton/singleton_test.go index 6252ec0e0..1e5b2825c 100644 --- a/helper/pluginutils/singleton/singleton_test.go +++ b/helper/pluginutils/singleton/singleton_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package singleton import ( diff --git a/helper/pointer/pointer.go b/helper/pointer/pointer.go index 981c78839..f9f1a3da2 100644 --- a/helper/pointer/pointer.go +++ b/helper/pointer/pointer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package pointer provides helper functions related to Go pointers. package pointer diff --git a/helper/pointer/pointer_test.go b/helper/pointer/pointer_test.go index 4cef8b5d5..15192b4f5 100644 --- a/helper/pointer/pointer_test.go +++ b/helper/pointer/pointer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pointer import ( diff --git a/helper/pool/conn.go b/helper/pool/conn.go index d5dcc5703..e0b92d018 100644 --- a/helper/pool/conn.go +++ b/helper/pool/conn.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pool type RPCType byte diff --git a/helper/pool/pool.go b/helper/pool/pool.go index 8f111b92d..3c6599b74 100644 --- a/helper/pool/pool.go +++ b/helper/pool/pool.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pool import ( diff --git a/helper/pool/pool_test.go b/helper/pool/pool_test.go index 8274b3bb3..04e3c6c4e 100644 --- a/helper/pool/pool_test.go +++ b/helper/pool/pool_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pool import ( diff --git a/helper/raftutil/fsm.go b/helper/raftutil/fsm.go index edebad0f3..3e56d5356 100644 --- a/helper/raftutil/fsm.go +++ b/helper/raftutil/fsm.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package raftutil import ( diff --git a/helper/raftutil/fsm_oss.go b/helper/raftutil/fsm_oss.go index 0ac4e7cde..253d53917 100644 --- a/helper/raftutil/fsm_oss.go +++ b/helper/raftutil/fsm_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/helper/raftutil/generate.go b/helper/raftutil/generate.go index 25b194961..109ffcd17 100644 --- a/helper/raftutil/generate.go +++ b/helper/raftutil/generate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package raftutil //go:generate ./generate_msgtypes.sh diff --git a/helper/raftutil/msgpack.go b/helper/raftutil/msgpack.go index f5663dd87..f8f5b9ad1 100644 --- a/helper/raftutil/msgpack.go +++ b/helper/raftutil/msgpack.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package raftutil import ( diff --git a/helper/raftutil/msgpack_test.go b/helper/raftutil/msgpack_test.go index 111e08146..96acb2329 100644 --- a/helper/raftutil/msgpack_test.go +++ b/helper/raftutil/msgpack_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package raftutil import ( diff --git a/helper/raftutil/sample_test.go b/helper/raftutil/sample_test.go index 1bebaebd0..cac3ed0a4 100644 --- a/helper/raftutil/sample_test.go +++ b/helper/raftutil/sample_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package raftutil import ( diff --git a/helper/raftutil/snapshot.go b/helper/raftutil/snapshot.go index a9c7377a9..0dab59594 100644 --- a/helper/raftutil/snapshot.go +++ b/helper/raftutil/snapshot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package raftutil import ( diff --git a/helper/raftutil/state.go b/helper/raftutil/state.go index 4ed6381b3..144d6880e 100644 --- a/helper/raftutil/state.go +++ b/helper/raftutil/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package raftutil import ( diff --git a/helper/raftutil/state_test.go b/helper/raftutil/state_test.go index d4384c8ab..ebcad5d32 100644 --- a/helper/raftutil/state_test.go +++ b/helper/raftutil/state_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package raftutil import ( diff --git a/helper/snapshot/archive.go b/helper/snapshot/archive.go index b0e9ca521..3560e0ac2 100644 --- a/helper/snapshot/archive.go +++ b/helper/snapshot/archive.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // The archive utilities manage the internal format of a snapshot, which is a // tar file with the following contents: // diff --git a/helper/snapshot/archive_test.go b/helper/snapshot/archive_test.go index 7c24bc161..fd388079c 100644 --- a/helper/snapshot/archive_test.go +++ b/helper/snapshot/archive_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package snapshot import ( diff --git a/helper/snapshot/snapshot.go b/helper/snapshot/snapshot.go index 683af2860..00b1b32b7 100644 --- a/helper/snapshot/snapshot.go +++ b/helper/snapshot/snapshot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // snapshot manages the interactions between Nomad and Raft in order to take // and restore snapshots for disaster recovery. The internal format of a // snapshot is simply a tar file, as described in archive.go. diff --git a/helper/snapshot/snapshot_test.go b/helper/snapshot/snapshot_test.go index 98dc6c14a..80c062956 100644 --- a/helper/snapshot/snapshot_test.go +++ b/helper/snapshot/snapshot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package snapshot import ( diff --git a/helper/stats/cpu.go b/helper/stats/cpu.go index d2754204e..4ddb6f517 100644 --- a/helper/stats/cpu.go +++ b/helper/stats/cpu.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stats import ( diff --git a/helper/stats/cpu_darwin_test.go b/helper/stats/cpu_darwin_test.go index 34a99a65e..dd88f9429 100644 --- a/helper/stats/cpu_darwin_test.go +++ b/helper/stats/cpu_darwin_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin && arm64 && cgo package stats diff --git a/helper/stats/runtime.go b/helper/stats/runtime.go index 6aa9ee66e..704da63f2 100644 --- a/helper/stats/runtime.go +++ b/helper/stats/runtime.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stats import ( diff --git a/helper/subproc/doc.go b/helper/subproc/doc.go index b6344c2af..f4333ab45 100644 --- a/helper/subproc/doc.go +++ b/helper/subproc/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package subproc provides helper utilities for executing the Nomad binary as // a child process of the Nomad agent. // diff --git a/helper/subproc/self.go b/helper/subproc/self.go index 3f9442c99..ec488429e 100644 --- a/helper/subproc/self.go +++ b/helper/subproc/self.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package subproc import ( diff --git a/helper/subproc/subproc.go b/helper/subproc/subproc.go index ad32c8109..2b69f236e 100644 --- a/helper/subproc/subproc.go +++ b/helper/subproc/subproc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package subproc import ( diff --git a/helper/testlog/testlog.go b/helper/testlog/testlog.go index fa8dda157..043c275d4 100644 --- a/helper/testlog/testlog.go +++ b/helper/testlog/testlog.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package testlog creates a *log.Logger backed by *testing.T to ease logging // in tests. This allows logs from components being tested to only be printed // if the test fails (or the verbose flag is specified). diff --git a/helper/testtask/testtask.go b/helper/testtask/testtask.go index 0c83c9bab..cffd0abe5 100644 --- a/helper/testtask/testtask.go +++ b/helper/testtask/testtask.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package testtask implements a portable set of commands useful as stand-ins // for user tasks. package testtask diff --git a/helper/testtask/testtask_unix.go b/helper/testtask/testtask_unix.go index cac2fb0d4..50282521b 100644 --- a/helper/testtask/testtask_unix.go +++ b/helper/testtask/testtask_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris diff --git a/helper/testtask/testtask_windows.go b/helper/testtask/testtask_windows.go index 282730389..160996d2f 100644 --- a/helper/testtask/testtask_windows.go +++ b/helper/testtask/testtask_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows // +build windows diff --git a/helper/tlsutil/config.go b/helper/tlsutil/config.go index bac61a4b9..320ad91f5 100644 --- a/helper/tlsutil/config.go +++ b/helper/tlsutil/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package tlsutil import ( diff --git a/helper/tlsutil/config_test.go b/helper/tlsutil/config_test.go index cd0d69d83..b40882b6c 100644 --- a/helper/tlsutil/config_test.go +++ b/helper/tlsutil/config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package tlsutil import ( diff --git a/helper/tlsutil/generate.go b/helper/tlsutil/generate.go index cf584cf1e..75a1a68ad 100644 --- a/helper/tlsutil/generate.go +++ b/helper/tlsutil/generate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package tlsutil import ( diff --git a/helper/tlsutil/generate_test.go b/helper/tlsutil/generate_test.go index 436da4e30..31671558c 100644 --- a/helper/tlsutil/generate_test.go +++ b/helper/tlsutil/generate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package tlsutil import ( diff --git a/helper/useragent/useragent.go b/helper/useragent/useragent.go index bd9c1f980..7827ba706 100644 --- a/helper/useragent/useragent.go +++ b/helper/useragent/useragent.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package useragent import ( diff --git a/helper/useragent/useragent_test.go b/helper/useragent/useragent_test.go index 7a83a0873..2dc36523e 100644 --- a/helper/useragent/useragent_test.go +++ b/helper/useragent/useragent_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package useragent import ( diff --git a/helper/users/cache.go b/helper/users/cache.go index 0e45154a8..9a491c5d2 100644 --- a/helper/users/cache.go +++ b/helper/users/cache.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package users import ( diff --git a/helper/users/cache_test.go b/helper/users/cache_test.go index 4d651f68e..8715be2d8 100644 --- a/helper/users/cache_test.go +++ b/helper/users/cache_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build unix package users diff --git a/helper/users/lookup.go b/helper/users/lookup.go index 86b52f85a..2739fa6ad 100644 --- a/helper/users/lookup.go +++ b/helper/users/lookup.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package users import ( diff --git a/helper/users/lookup_linux_test.go b/helper/users/lookup_linux_test.go index 0855949b7..a8fb9fefe 100644 --- a/helper/users/lookup_linux_test.go +++ b/helper/users/lookup_linux_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux package users diff --git a/helper/users/lookup_unix.go b/helper/users/lookup_unix.go index 026d5a66b..efe506e42 100644 --- a/helper/users/lookup_unix.go +++ b/helper/users/lookup_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build unix package users diff --git a/helper/users/lookup_windows_test.go b/helper/users/lookup_windows_test.go index 4a5345793..2d24c8739 100644 --- a/helper/users/lookup_windows_test.go +++ b/helper/users/lookup_windows_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows package users diff --git a/helper/uuid/uuid.go b/helper/uuid/uuid.go index 7a2226ee0..80daa655a 100644 --- a/helper/uuid/uuid.go +++ b/helper/uuid/uuid.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package uuid import ( diff --git a/helper/uuid/uuid_test.go b/helper/uuid/uuid_test.go index 6d6fe77c3..9effd9c1f 100644 --- a/helper/uuid/uuid_test.go +++ b/helper/uuid/uuid_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package uuid import ( diff --git a/helper/warning.go b/helper/warning.go index b5733794b..11c5173af 100644 --- a/helper/warning.go +++ b/helper/warning.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package helper import ( diff --git a/helper/warning_test.go b/helper/warning_test.go index 703ede350..943c6a622 100644 --- a/helper/warning_test.go +++ b/helper/warning_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package helper import ( diff --git a/helper/winsvc/service.go b/helper/winsvc/service.go index c8d21f5c7..edd234e0c 100644 --- a/helper/winsvc/service.go +++ b/helper/winsvc/service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package winsvc var chanGraceExit = make(chan int) diff --git a/helper/winsvc/service_windows.go b/helper/winsvc/service_windows.go index 84c043d15..8674d8f38 100644 --- a/helper/winsvc/service_windows.go +++ b/helper/winsvc/service_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows // +build windows diff --git a/integrations/prometheus/prometheus.yml b/integrations/prometheus/prometheus.yml index 0e644c5f2..bdf4abbfa 100644 --- a/integrations/prometheus/prometheus.yml +++ b/integrations/prometheus/prometheus.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + scrape_configs: - job_name: 'nomad_metrics' diff --git a/internal/testing/apitests/acl_test.go b/internal/testing/apitests/acl_test.go index a35fa41c5..3b6075085 100644 --- a/internal/testing/apitests/acl_test.go +++ b/internal/testing/apitests/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package apitests import ( diff --git a/internal/testing/apitests/api_test.go b/internal/testing/apitests/api_test.go index dcac8a63f..19f965d39 100644 --- a/internal/testing/apitests/api_test.go +++ b/internal/testing/apitests/api_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package apitests import ( diff --git a/internal/testing/apitests/jobs_test.go b/internal/testing/apitests/jobs_test.go index 7c373ae4c..9feec1d6e 100644 --- a/internal/testing/apitests/jobs_test.go +++ b/internal/testing/apitests/jobs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package apitests import ( diff --git a/internal/testing/apitests/nodes_test.go b/internal/testing/apitests/nodes_test.go index becba2f2d..9cc8fe612 100644 --- a/internal/testing/apitests/nodes_test.go +++ b/internal/testing/apitests/nodes_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package apitests import ( diff --git a/internal/testing/apitests/operator_autopilot_test.go b/internal/testing/apitests/operator_autopilot_test.go index e194d6f07..599471b41 100644 --- a/internal/testing/apitests/operator_autopilot_test.go +++ b/internal/testing/apitests/operator_autopilot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package apitests import ( diff --git a/internal/testing/apitests/operator_test.go b/internal/testing/apitests/operator_test.go index 203713f30..0cdad531a 100644 --- a/internal/testing/apitests/operator_test.go +++ b/internal/testing/apitests/operator_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package apitests import ( diff --git a/internal/testing/apitests/streamingsync_test.go b/internal/testing/apitests/streamingsync_test.go index edf110594..9beb9fa4d 100644 --- a/internal/testing/apitests/streamingsync_test.go +++ b/internal/testing/apitests/streamingsync_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package apitests import ( diff --git a/internal/testing/apitests/structsync_test.go b/internal/testing/apitests/structsync_test.go index a40c2c718..417379d88 100644 --- a/internal/testing/apitests/structsync_test.go +++ b/internal/testing/apitests/structsync_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package apitests import ( diff --git a/internal/testing/apitests/tasks_test.go b/internal/testing/apitests/tasks_test.go index 847fb4cd5..ba7114d03 100644 --- a/internal/testing/apitests/tasks_test.go +++ b/internal/testing/apitests/tasks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package apitests import ( diff --git a/internal/testing/apitests/util_test.go b/internal/testing/apitests/util_test.go index d6046a2e6..0e7f1dfdb 100644 --- a/internal/testing/apitests/util_test.go +++ b/internal/testing/apitests/util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package apitests import ( diff --git a/jobspec/helper.go b/jobspec/helper.go index 99bf80f83..f83408abc 100644 --- a/jobspec/helper.go +++ b/jobspec/helper.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec // These functions are copied from helper/funcs.go diff --git a/jobspec/helper_test.go b/jobspec/helper_test.go index 4f52f4de5..0cbe0f862 100644 --- a/jobspec/helper_test.go +++ b/jobspec/helper_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec // These functions are copied from helper/funcs.go diff --git a/jobspec/parse.go b/jobspec/parse.go index b6943d78d..b840a247f 100644 --- a/jobspec/parse.go +++ b/jobspec/parse.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec import ( diff --git a/jobspec/parse_group.go b/jobspec/parse_group.go index e138d44e2..7a4fdf746 100644 --- a/jobspec/parse_group.go +++ b/jobspec/parse_group.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec import ( diff --git a/jobspec/parse_job.go b/jobspec/parse_job.go index eb98bc2dc..b51b25666 100644 --- a/jobspec/parse_job.go +++ b/jobspec/parse_job.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec import ( diff --git a/jobspec/parse_multiregion.go b/jobspec/parse_multiregion.go index 76bed28b1..fb7154a31 100644 --- a/jobspec/parse_multiregion.go +++ b/jobspec/parse_multiregion.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec import ( diff --git a/jobspec/parse_network.go b/jobspec/parse_network.go index 2d27b63ac..bd583661c 100644 --- a/jobspec/parse_network.go +++ b/jobspec/parse_network.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec import ( diff --git a/jobspec/parse_service.go b/jobspec/parse_service.go index 360382185..463ca8a97 100644 --- a/jobspec/parse_service.go +++ b/jobspec/parse_service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec import ( diff --git a/jobspec/parse_task.go b/jobspec/parse_task.go index b7315be74..06d2328a7 100644 --- a/jobspec/parse_task.go +++ b/jobspec/parse_task.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec import ( diff --git a/jobspec/parse_test.go b/jobspec/parse_test.go index 173b338ca..aa801cf05 100644 --- a/jobspec/parse_test.go +++ b/jobspec/parse_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec import ( diff --git a/jobspec/test-fixtures/artifacts.hcl b/jobspec/test-fixtures/artifacts.hcl index 2da722850..191e1fc37 100644 --- a/jobspec/test-fixtures/artifacts.hcl +++ b/jobspec/test-fixtures/artifacts.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { group "binsl" { task "binstore" { diff --git a/jobspec/test-fixtures/bad-artifact.hcl b/jobspec/test-fixtures/bad-artifact.hcl index 50f061c8c..f62520120 100644 --- a/jobspec/test-fixtures/bad-artifact.hcl +++ b/jobspec/test-fixtures/bad-artifact.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { group "binsl" { count = 5 diff --git a/jobspec/test-fixtures/bad-ports.hcl b/jobspec/test-fixtures/bad-ports.hcl index ab580ae00..9dfe1e30a 100644 --- a/jobspec/test-fixtures/bad-ports.hcl +++ b/jobspec/test-fixtures/bad-ports.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { region = "global" type = "service" diff --git a/jobspec/test-fixtures/basic.hcl b/jobspec/test-fixtures/basic.hcl index e2d86843e..238b185c4 100644 --- a/jobspec/test-fixtures/basic.hcl +++ b/jobspec/test-fixtures/basic.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { region = "fooregion" namespace = "foonamespace" diff --git a/jobspec/test-fixtures/basic_wrong_key.hcl b/jobspec/test-fixtures/basic_wrong_key.hcl index dc42c399a..6150cfde2 100644 --- a/jobspec/test-fixtures/basic_wrong_key.hcl +++ b/jobspec/test-fixtures/basic_wrong_key.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { region = "global" type = "service" diff --git a/jobspec/test-fixtures/consul-namespace.hcl b/jobspec/test-fixtures/consul-namespace.hcl index 7e808527c..4d8a166bd 100644 --- a/jobspec/test-fixtures/consul-namespace.hcl +++ b/jobspec/test-fixtures/consul-namespace.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "consul-namespace" { group "group" { consul { diff --git a/jobspec/test-fixtures/csi-plugin.hcl b/jobspec/test-fixtures/csi-plugin.hcl index 3e4106719..9daf3d096 100644 --- a/jobspec/test-fixtures/csi-plugin.hcl +++ b/jobspec/test-fixtures/csi-plugin.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { group "binsl" { task "binstore" { diff --git a/jobspec/test-fixtures/default-job.hcl b/jobspec/test-fixtures/default-job.hcl index 314138973..379f4c34c 100644 --- a/jobspec/test-fixtures/default-job.hcl +++ b/jobspec/test-fixtures/default-job.hcl @@ -1 +1,4 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" {} diff --git a/jobspec/test-fixtures/distinctHosts-constraint.hcl b/jobspec/test-fixtures/distinctHosts-constraint.hcl index 94e7c6226..69cc051cc 100644 --- a/jobspec/test-fixtures/distinctHosts-constraint.hcl +++ b/jobspec/test-fixtures/distinctHosts-constraint.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { constraint { distinct_hosts = "true" diff --git a/jobspec/test-fixtures/distinctProperty-constraint.hcl b/jobspec/test-fixtures/distinctProperty-constraint.hcl index fd40808a1..e7851e1e2 100644 --- a/jobspec/test-fixtures/distinctProperty-constraint.hcl +++ b/jobspec/test-fixtures/distinctProperty-constraint.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { constraint { distinct_property = "${meta.rack}" diff --git a/jobspec/test-fixtures/incorrect-service-def.hcl b/jobspec/test-fixtures/incorrect-service-def.hcl index 5570f11b5..3c8177ad6 100644 --- a/jobspec/test-fixtures/incorrect-service-def.hcl +++ b/jobspec/test-fixtures/incorrect-service-def.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { region = "global" type = "service" diff --git a/jobspec/test-fixtures/job-with-kill-signal.hcl b/jobspec/test-fixtures/job-with-kill-signal.hcl index 6bc3b72d8..2e35dd3ab 100644 --- a/jobspec/test-fixtures/job-with-kill-signal.hcl +++ b/jobspec/test-fixtures/job-with-kill-signal.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { task "bar" { driver = "docker" diff --git a/jobspec/test-fixtures/migrate-job.hcl b/jobspec/test-fixtures/migrate-job.hcl index 3a7343222..dd423e2bd 100644 --- a/jobspec/test-fixtures/migrate-job.hcl +++ b/jobspec/test-fixtures/migrate-job.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { datacenters = ["dc1"] type = "batch" diff --git a/jobspec/test-fixtures/multi-network.hcl b/jobspec/test-fixtures/multi-network.hcl index 87e18a6de..7c8dca7a9 100644 --- a/jobspec/test-fixtures/multi-network.hcl +++ b/jobspec/test-fixtures/multi-network.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { group "binsl" { count = 5 diff --git a/jobspec/test-fixtures/multi-resource.hcl b/jobspec/test-fixtures/multi-resource.hcl index dd20646a7..7938c6b22 100644 --- a/jobspec/test-fixtures/multi-resource.hcl +++ b/jobspec/test-fixtures/multi-resource.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { group "binsl" { ephemeral_disk { diff --git a/jobspec/test-fixtures/multi-vault.hcl b/jobspec/test-fixtures/multi-vault.hcl index 2745fdbab..18d0842c1 100644 --- a/jobspec/test-fixtures/multi-vault.hcl +++ b/jobspec/test-fixtures/multi-vault.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { datacenters = ["us2", "eu1"] diff --git a/jobspec/test-fixtures/multiregion.hcl b/jobspec/test-fixtures/multiregion.hcl index 8b808dec0..a610cb8d0 100644 --- a/jobspec/test-fixtures/multiregion.hcl +++ b/jobspec/test-fixtures/multiregion.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "multiregion_job" { multiregion { diff --git a/jobspec/test-fixtures/overlapping-ports.hcl b/jobspec/test-fixtures/overlapping-ports.hcl index 62f5d503e..192bbda41 100644 --- a/jobspec/test-fixtures/overlapping-ports.hcl +++ b/jobspec/test-fixtures/overlapping-ports.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "binstore-storagelocker" { region = "global" type = "service" diff --git a/jobspec/test-fixtures/parameterized_job.hcl b/jobspec/test-fixtures/parameterized_job.hcl index 87eeb3d4f..1a5b911ea 100644 --- a/jobspec/test-fixtures/parameterized_job.hcl +++ b/jobspec/test-fixtures/parameterized_job.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "parameterized_job" { parameterized { payload = "required" diff --git a/jobspec/test-fixtures/parse-ports.hcl b/jobspec/test-fixtures/parse-ports.hcl index e87bafbd7..3879c27e8 100644 --- a/jobspec/test-fixtures/parse-ports.hcl +++ b/jobspec/test-fixtures/parse-ports.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "parse-ports" { group "group" { network { diff --git a/jobspec/test-fixtures/periodic-cron.hcl b/jobspec/test-fixtures/periodic-cron.hcl index dc6eddf55..af789e238 100644 --- a/jobspec/test-fixtures/periodic-cron.hcl +++ b/jobspec/test-fixtures/periodic-cron.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { periodic { cron = "*/5 * * *" diff --git a/jobspec/test-fixtures/regexp-constraint.hcl b/jobspec/test-fixtures/regexp-constraint.hcl index 057311aa4..8f76db365 100644 --- a/jobspec/test-fixtures/regexp-constraint.hcl +++ b/jobspec/test-fixtures/regexp-constraint.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { constraint { attribute = "$attr.kernel.version" diff --git a/jobspec/test-fixtures/reschedule-job-unlimited.hcl b/jobspec/test-fixtures/reschedule-job-unlimited.hcl index 038cccb49..eaaf736fc 100644 --- a/jobspec/test-fixtures/reschedule-job-unlimited.hcl +++ b/jobspec/test-fixtures/reschedule-job-unlimited.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { datacenters = ["dc1"] type = "batch" diff --git a/jobspec/test-fixtures/reschedule-job.hcl b/jobspec/test-fixtures/reschedule-job.hcl index 3182851d4..5b15f638b 100644 --- a/jobspec/test-fixtures/reschedule-job.hcl +++ b/jobspec/test-fixtures/reschedule-job.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { datacenters = ["dc1"] type = "batch" diff --git a/jobspec/test-fixtures/resources-cores.hcl b/jobspec/test-fixtures/resources-cores.hcl index f3e11e93e..71bf13b55 100644 --- a/jobspec/test-fixtures/resources-cores.hcl +++ b/jobspec/test-fixtures/resources-cores.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "cores-test" { group "group" { count = 5 diff --git a/jobspec/test-fixtures/service-check-bad-header-2.hcl b/jobspec/test-fixtures/service-check-bad-header-2.hcl index ba7c75e8a..e81a94b5b 100644 --- a/jobspec/test-fixtures/service-check-bad-header-2.hcl +++ b/jobspec/test-fixtures/service-check-bad-header-2.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "check_bad_header" { type = "service" diff --git a/jobspec/test-fixtures/service-check-bad-header.hcl b/jobspec/test-fixtures/service-check-bad-header.hcl index 2bdd01446..3e97a2674 100644 --- a/jobspec/test-fixtures/service-check-bad-header.hcl +++ b/jobspec/test-fixtures/service-check-bad-header.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "check_bad_header" { type = "service" diff --git a/jobspec/test-fixtures/service-check-driver-address.hcl b/jobspec/test-fixtures/service-check-driver-address.hcl index 8a3d20f43..877af770b 100644 --- a/jobspec/test-fixtures/service-check-driver-address.hcl +++ b/jobspec/test-fixtures/service-check-driver-address.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "address_mode_driver" { type = "service" diff --git a/jobspec/test-fixtures/service-check-initial-status.hcl b/jobspec/test-fixtures/service-check-initial-status.hcl index 84a7eb0d1..07f02c422 100644 --- a/jobspec/test-fixtures/service-check-initial-status.hcl +++ b/jobspec/test-fixtures/service-check-initial-status.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "check_initial_status" { type = "service" diff --git a/jobspec/test-fixtures/service-check-pass-fail.hcl b/jobspec/test-fixtures/service-check-pass-fail.hcl index d1b701212..7232c880e 100644 --- a/jobspec/test-fixtures/service-check-pass-fail.hcl +++ b/jobspec/test-fixtures/service-check-pass-fail.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "check_pass_fail" { type = "service" diff --git a/jobspec/test-fixtures/service-check-restart.hcl b/jobspec/test-fixtures/service-check-restart.hcl index 985726d34..79c088ad7 100644 --- a/jobspec/test-fixtures/service-check-restart.hcl +++ b/jobspec/test-fixtures/service-check-restart.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "service_check_restart" { type = "service" diff --git a/jobspec/test-fixtures/service-enable-tag-override.hcl b/jobspec/test-fixtures/service-enable-tag-override.hcl index 78dde6168..7e2492a5d 100644 --- a/jobspec/test-fixtures/service-enable-tag-override.hcl +++ b/jobspec/test-fixtures/service-enable-tag-override.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "service_eto" { type = "service" diff --git a/jobspec/test-fixtures/service-meta.hcl b/jobspec/test-fixtures/service-meta.hcl index 8595ad76f..2bcb15b1b 100644 --- a/jobspec/test-fixtures/service-meta.hcl +++ b/jobspec/test-fixtures/service-meta.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "service_meta" { type = "service" diff --git a/jobspec/test-fixtures/service-provider.hcl b/jobspec/test-fixtures/service-provider.hcl index 6a31599d1..81b11c47c 100644 --- a/jobspec/test-fixtures/service-provider.hcl +++ b/jobspec/test-fixtures/service-provider.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "service-provider" { group "group" { count = 5 diff --git a/jobspec/test-fixtures/service-tagged-address.hcl b/jobspec/test-fixtures/service-tagged-address.hcl index 0cdb47659..764021562 100644 --- a/jobspec/test-fixtures/service-tagged-address.hcl +++ b/jobspec/test-fixtures/service-tagged-address.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "service_tagged_address" { type = "service" diff --git a/jobspec/test-fixtures/set-contains-constraint.hcl b/jobspec/test-fixtures/set-contains-constraint.hcl index cbb8e3dcc..ce08bd83b 100644 --- a/jobspec/test-fixtures/set-contains-constraint.hcl +++ b/jobspec/test-fixtures/set-contains-constraint.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { constraint { attribute = "$meta.data" diff --git a/jobspec/test-fixtures/specify-job.hcl b/jobspec/test-fixtures/specify-job.hcl index 2b4620693..998aa374a 100644 --- a/jobspec/test-fixtures/specify-job.hcl +++ b/jobspec/test-fixtures/specify-job.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "default" { id = "job1" name = "My Job" diff --git a/jobspec/test-fixtures/task-nested-config.hcl b/jobspec/test-fixtures/task-nested-config.hcl index 0257c5462..441a5d5a3 100644 --- a/jobspec/test-fixtures/task-nested-config.hcl +++ b/jobspec/test-fixtures/task-nested-config.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { task "bar" { driver = "docker" diff --git a/jobspec/test-fixtures/task-scaling-policy-invalid-resource.hcl b/jobspec/test-fixtures/task-scaling-policy-invalid-resource.hcl index 4f2bd9647..30955d804 100644 --- a/jobspec/test-fixtures/task-scaling-policy-invalid-resource.hcl +++ b/jobspec/test-fixtures/task-scaling-policy-invalid-resource.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { task "bar" { driver = "docker" diff --git a/jobspec/test-fixtures/task-scaling-policy-invalid-type.hcl b/jobspec/test-fixtures/task-scaling-policy-invalid-type.hcl index e8313ab61..6a8265ae2 100644 --- a/jobspec/test-fixtures/task-scaling-policy-invalid-type.hcl +++ b/jobspec/test-fixtures/task-scaling-policy-invalid-type.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { task "bar" { driver = "docker" diff --git a/jobspec/test-fixtures/task-scaling-policy-missing-name.hcl b/jobspec/test-fixtures/task-scaling-policy-missing-name.hcl index 03c31f77d..e35494047 100644 --- a/jobspec/test-fixtures/task-scaling-policy-missing-name.hcl +++ b/jobspec/test-fixtures/task-scaling-policy-missing-name.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { task "bar" { driver = "docker" diff --git a/jobspec/test-fixtures/task-scaling-policy-multi-cpu.hcl b/jobspec/test-fixtures/task-scaling-policy-multi-cpu.hcl index dc8ead75b..ca5ff4a1b 100644 --- a/jobspec/test-fixtures/task-scaling-policy-multi-cpu.hcl +++ b/jobspec/test-fixtures/task-scaling-policy-multi-cpu.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { task "bar" { driver = "docker" diff --git a/jobspec/test-fixtures/task-scaling-policy-multi-name.hcl b/jobspec/test-fixtures/task-scaling-policy-multi-name.hcl index fd3fbc993..bcbb84d58 100644 --- a/jobspec/test-fixtures/task-scaling-policy-multi-name.hcl +++ b/jobspec/test-fixtures/task-scaling-policy-multi-name.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { task "bar" { driver = "docker" diff --git a/jobspec/test-fixtures/task-scaling-policy.hcl b/jobspec/test-fixtures/task-scaling-policy.hcl index 408dd7ca6..f8f70d4d5 100644 --- a/jobspec/test-fixtures/task-scaling-policy.hcl +++ b/jobspec/test-fixtures/task-scaling-policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { task "bar" { driver = "docker" diff --git a/jobspec/test-fixtures/tg-network-with-hostname.hcl b/jobspec/test-fixtures/tg-network-with-hostname.hcl index 0f84ab016..3951dd795 100644 --- a/jobspec/test-fixtures/tg-network-with-hostname.hcl +++ b/jobspec/test-fixtures/tg-network-with-hostname.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { datacenters = ["dc1"] diff --git a/jobspec/test-fixtures/tg-network.hcl b/jobspec/test-fixtures/tg-network.hcl index 50e1a9356..dcc84647f 100644 --- a/jobspec/test-fixtures/tg-network.hcl +++ b/jobspec/test-fixtures/tg-network.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { datacenters = ["dc1"] diff --git a/jobspec/test-fixtures/tg-scaling-policy-invalid-type.hcl b/jobspec/test-fixtures/tg-scaling-policy-invalid-type.hcl index b5d605b4a..b8e0257c3 100644 --- a/jobspec/test-fixtures/tg-scaling-policy-invalid-type.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy-invalid-type.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "elastic" { group "group" { scaling { diff --git a/jobspec/test-fixtures/tg-scaling-policy-minimal.hcl b/jobspec/test-fixtures/tg-scaling-policy-minimal.hcl index f145506c8..8e4386709 100644 --- a/jobspec/test-fixtures/tg-scaling-policy-minimal.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy-minimal.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "elastic" { group "group" { scaling { diff --git a/jobspec/test-fixtures/tg-scaling-policy-missing-max.hcl b/jobspec/test-fixtures/tg-scaling-policy-missing-max.hcl index 1d60684fd..9760983c5 100644 --- a/jobspec/test-fixtures/tg-scaling-policy-missing-max.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy-missing-max.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "elastic" { group "group" { scaling { diff --git a/jobspec/test-fixtures/tg-scaling-policy-multi-policy.hcl b/jobspec/test-fixtures/tg-scaling-policy-multi-policy.hcl index 2a7097562..69c1a75e5 100644 --- a/jobspec/test-fixtures/tg-scaling-policy-multi-policy.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy-multi-policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "elastic" { group "group" { scaling { diff --git a/jobspec/test-fixtures/tg-scaling-policy-with-label.hcl b/jobspec/test-fixtures/tg-scaling-policy-with-label.hcl index 8f25ef090..db9a05117 100644 --- a/jobspec/test-fixtures/tg-scaling-policy-with-label.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy-with-label.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "elastic" { group "group" { scaling "no-label-allowed" { diff --git a/jobspec/test-fixtures/tg-scaling-policy.hcl b/jobspec/test-fixtures/tg-scaling-policy.hcl index ae157ae65..ada22c1db 100644 --- a/jobspec/test-fixtures/tg-scaling-policy.hcl +++ b/jobspec/test-fixtures/tg-scaling-policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "elastic" { group "group" { scaling { diff --git a/jobspec/test-fixtures/tg-service-check-expose.hcl b/jobspec/test-fixtures/tg-service-check-expose.hcl index 8e8ec6123..3183bb30a 100644 --- a/jobspec/test-fixtures/tg-service-check-expose.hcl +++ b/jobspec/test-fixtures/tg-service-check-expose.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "group_service_proxy_expose" { group "group" { service { diff --git a/jobspec/test-fixtures/tg-service-check.hcl b/jobspec/test-fixtures/tg-service-check.hcl index 77934bb31..6e183ac3e 100644 --- a/jobspec/test-fixtures/tg-service-check.hcl +++ b/jobspec/test-fixtures/tg-service-check.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "group_service_check_script" { group "group" { count = 1 diff --git a/jobspec/test-fixtures/tg-service-connect-gateway-ingress.hcl b/jobspec/test-fixtures/tg-service-connect-gateway-ingress.hcl index 2474a0fcd..a3e371144 100644 --- a/jobspec/test-fixtures/tg-service-connect-gateway-ingress.hcl +++ b/jobspec/test-fixtures/tg-service-connect-gateway-ingress.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "connect_gateway_ingress" { group "group" { service { diff --git a/jobspec/test-fixtures/tg-service-connect-gateway-mesh.hcl b/jobspec/test-fixtures/tg-service-connect-gateway-mesh.hcl index ef0ebc18a..81741142f 100644 --- a/jobspec/test-fixtures/tg-service-connect-gateway-mesh.hcl +++ b/jobspec/test-fixtures/tg-service-connect-gateway-mesh.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "connect_gateway_mesh" { group "group" { service { diff --git a/jobspec/test-fixtures/tg-service-connect-gateway-terminating.hcl b/jobspec/test-fixtures/tg-service-connect-gateway-terminating.hcl index 24e0f8aec..671fb9815 100644 --- a/jobspec/test-fixtures/tg-service-connect-gateway-terminating.hcl +++ b/jobspec/test-fixtures/tg-service-connect-gateway-terminating.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "connect_gateway_terminating" { group "group" { service { diff --git a/jobspec/test-fixtures/tg-service-connect-local-service.hcl b/jobspec/test-fixtures/tg-service-connect-local-service.hcl index 89b31d53e..be9fc402c 100644 --- a/jobspec/test-fixtures/tg-service-connect-local-service.hcl +++ b/jobspec/test-fixtures/tg-service-connect-local-service.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "connect-proxy-local-service" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-connect-native.hcl b/jobspec/test-fixtures/tg-service-connect-native.hcl index a484674bf..2eaa157c9 100644 --- a/jobspec/test-fixtures/tg-service-connect-native.hcl +++ b/jobspec/test-fixtures/tg-service-connect-native.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "connect_native_service" { group "group" { service { diff --git a/jobspec/test-fixtures/tg-service-connect-proxy.hcl b/jobspec/test-fixtures/tg-service-connect-proxy.hcl index f36b2d26a..138d58943 100644 --- a/jobspec/test-fixtures/tg-service-connect-proxy.hcl +++ b/jobspec/test-fixtures/tg-service-connect-proxy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "service-connect-proxy" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-connect-resources.hcl b/jobspec/test-fixtures/tg-service-connect-resources.hcl index 166c17fb9..59306404d 100644 --- a/jobspec/test-fixtures/tg-service-connect-resources.hcl +++ b/jobspec/test-fixtures/tg-service-connect-resources.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "sidecar_task_resources" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-connect-sidecar_disablecheck.hcl b/jobspec/test-fixtures/tg-service-connect-sidecar_disablecheck.hcl index 4ca55907f..99f4780d6 100644 --- a/jobspec/test-fixtures/tg-service-connect-sidecar_disablecheck.hcl +++ b/jobspec/test-fixtures/tg-service-connect-sidecar_disablecheck.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "sidecar_disablecheck" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-connect-sidecar_meta.hcl b/jobspec/test-fixtures/tg-service-connect-sidecar_meta.hcl index e12a7769f..bb8164d8d 100644 --- a/jobspec/test-fixtures/tg-service-connect-sidecar_meta.hcl +++ b/jobspec/test-fixtures/tg-service-connect-sidecar_meta.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "sidecar_meta" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-connect-sidecar_task-name.hcl b/jobspec/test-fixtures/tg-service-connect-sidecar_task-name.hcl index 6fd400b65..f103536f7 100644 --- a/jobspec/test-fixtures/tg-service-connect-sidecar_task-name.hcl +++ b/jobspec/test-fixtures/tg-service-connect-sidecar_task-name.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "sidecar_task_name" { type = "service" diff --git a/jobspec/test-fixtures/tg-service-enable-tag-override.hcl b/jobspec/test-fixtures/tg-service-enable-tag-override.hcl index 451233d1f..ddef2f98b 100644 --- a/jobspec/test-fixtures/tg-service-enable-tag-override.hcl +++ b/jobspec/test-fixtures/tg-service-enable-tag-override.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "group_service_eto" { group "group" { service { diff --git a/jobspec/test-fixtures/tg-service-proxy-expose.hcl b/jobspec/test-fixtures/tg-service-proxy-expose.hcl index cd4494f40..05b182aa5 100644 --- a/jobspec/test-fixtures/tg-service-proxy-expose.hcl +++ b/jobspec/test-fixtures/tg-service-proxy-expose.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "group_service_proxy_expose" { group "group" { service { diff --git a/jobspec/test-fixtures/vault_inheritance.hcl b/jobspec/test-fixtures/vault_inheritance.hcl index 18d83d9f5..c844f8d1b 100644 --- a/jobspec/test-fixtures/vault_inheritance.hcl +++ b/jobspec/test-fixtures/vault_inheritance.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "example" { vault { policies = ["job"] diff --git a/jobspec/test-fixtures/version-constraint.hcl b/jobspec/test-fixtures/version-constraint.hcl index 71cc75755..e26184bd3 100644 --- a/jobspec/test-fixtures/version-constraint.hcl +++ b/jobspec/test-fixtures/version-constraint.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "foo" { constraint { attribute = "$attr.kernel.version" diff --git a/jobspec/utils.go b/jobspec/utils.go index 62de57aff..c35cf3b5e 100644 --- a/jobspec/utils.go +++ b/jobspec/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec // flattenMapSlice flattens any occurrences of []map[string]interface{} into diff --git a/jobspec/utils_test.go b/jobspec/utils_test.go index 810f6d0cc..bd345c19e 100644 --- a/jobspec/utils_test.go +++ b/jobspec/utils_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec import ( diff --git a/jobspec2/addrs/doc.go b/jobspec2/addrs/doc.go index 13c300030..9768f453d 100644 --- a/jobspec2/addrs/doc.go +++ b/jobspec2/addrs/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package addrs contains types that represent "addresses", which are // references to specific objects within a Packer configuration. // diff --git a/jobspec2/addrs/input_variable.go b/jobspec2/addrs/input_variable.go index ad4370bb8..e2821e7e5 100644 --- a/jobspec2/addrs/input_variable.go +++ b/jobspec2/addrs/input_variable.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package addrs // InputVariable is the address of an input variable. diff --git a/jobspec2/addrs/parse_ref.go b/jobspec2/addrs/parse_ref.go index ee3f238ef..866ced8f4 100644 --- a/jobspec2/addrs/parse_ref.go +++ b/jobspec2/addrs/parse_ref.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package addrs import ( diff --git a/jobspec2/addrs/referenceable.go b/jobspec2/addrs/referenceable.go index 8caec1241..9b54c5bac 100644 --- a/jobspec2/addrs/referenceable.go +++ b/jobspec2/addrs/referenceable.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package addrs // Referenceable is an interface implemented by all address types that can diff --git a/jobspec2/functions.go b/jobspec2/functions.go index 4e9130a3a..4350cde78 100644 --- a/jobspec2/functions.go +++ b/jobspec2/functions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec2 import ( diff --git a/jobspec2/hcl_conversions.go b/jobspec2/hcl_conversions.go index 2afd71ed2..4e4286a6e 100644 --- a/jobspec2/hcl_conversions.go +++ b/jobspec2/hcl_conversions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec2 import ( diff --git a/jobspec2/hclutil/blockattrs.go b/jobspec2/hclutil/blockattrs.go index 6a70ae195..e1953b128 100644 --- a/jobspec2/hclutil/blockattrs.go +++ b/jobspec2/hclutil/blockattrs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclutil import ( diff --git a/jobspec2/helper_test.go b/jobspec2/helper_test.go index 57a6cd360..a317d8661 100644 --- a/jobspec2/helper_test.go +++ b/jobspec2/helper_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec2 func intToPtr(v int) *int { diff --git a/jobspec2/parse.go b/jobspec2/parse.go index 97f9994af..0a098608a 100644 --- a/jobspec2/parse.go +++ b/jobspec2/parse.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec2 import ( diff --git a/jobspec2/parse_job.go b/jobspec2/parse_job.go index b3300a636..e1cd81cb4 100644 --- a/jobspec2/parse_job.go +++ b/jobspec2/parse_job.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec2 import ( diff --git a/jobspec2/parse_map.go b/jobspec2/parse_map.go index db9b8a34c..fcaabdfcd 100644 --- a/jobspec2/parse_map.go +++ b/jobspec2/parse_map.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec2 import ( diff --git a/jobspec2/parse_test.go b/jobspec2/parse_test.go index 60be178b0..a69eed747 100644 --- a/jobspec2/parse_test.go +++ b/jobspec2/parse_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec2 import ( diff --git a/jobspec2/test-fixtures/config-compatibility.hcl b/jobspec2/test-fixtures/config-compatibility.hcl index c082b718b..13dade371 100644 --- a/jobspec2/test-fixtures/config-compatibility.hcl +++ b/jobspec2/test-fixtures/config-compatibility.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "example" { group "group" { task "task" { diff --git a/jobspec2/test-fixtures/connect-example.hcl b/jobspec2/test-fixtures/connect-example.hcl index 525fafb0f..eca86d361 100644 --- a/jobspec2/test-fixtures/connect-example.hcl +++ b/jobspec2/test-fixtures/connect-example.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "web" { datacenters = ["dc1"] group "web" { diff --git a/jobspec2/test-fixtures/template-err-missing-key.hcl b/jobspec2/test-fixtures/template-err-missing-key.hcl index 60df303a1..3077a1884 100644 --- a/jobspec2/test-fixtures/template-err-missing-key.hcl +++ b/jobspec2/test-fixtures/template-err-missing-key.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "example" { group "group" { task "task" { diff --git a/jobspec2/test-fixtures/template-wait-config.hcl b/jobspec2/test-fixtures/template-wait-config.hcl index e410248fb..d332db446 100644 --- a/jobspec2/test-fixtures/template-wait-config.hcl +++ b/jobspec2/test-fixtures/template-wait-config.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "example" { group "group" { task "task" { diff --git a/jobspec2/types.config.go b/jobspec2/types.config.go index 28e059172..f183be970 100644 --- a/jobspec2/types.config.go +++ b/jobspec2/types.config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec2 import ( diff --git a/jobspec2/types.variables.go b/jobspec2/types.variables.go index 26af20eb6..facd34ca6 100644 --- a/jobspec2/types.variables.go +++ b/jobspec2/types.variables.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobspec2 // This file is copied verbatim from Packer: https://github.com/hashicorp/packer/blob/7a1680df97e028c4a75622effe08f6610d0ee5b4/hcl2template/types.variables.go diff --git a/lib/auth/binder.go b/lib/auth/binder.go index 0a7a470e2..fc836eabb 100644 --- a/lib/auth/binder.go +++ b/lib/auth/binder.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/lib/auth/binder_test.go b/lib/auth/binder_test.go index 6c6b885bb..954cb328a 100644 --- a/lib/auth/binder_test.go +++ b/lib/auth/binder_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/lib/auth/claims.go b/lib/auth/claims.go index 50f69ddd8..0e4f70945 100644 --- a/lib/auth/claims.go +++ b/lib/auth/claims.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/lib/auth/claims_test.go b/lib/auth/claims_test.go index c41341e70..85a74ddf7 100644 --- a/lib/auth/claims_test.go +++ b/lib/auth/claims_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/lib/auth/identity.go b/lib/auth/identity.go index da1412f11..cc6050bc5 100644 --- a/lib/auth/identity.go +++ b/lib/auth/identity.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/lib/auth/identity_test.go b/lib/auth/identity_test.go index d67020646..39c22d398 100644 --- a/lib/auth/identity_test.go +++ b/lib/auth/identity_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/lib/auth/jwt/validator.go b/lib/auth/jwt/validator.go index acadeb693..210f369dd 100644 --- a/lib/auth/jwt/validator.go +++ b/lib/auth/jwt/validator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jwt import ( diff --git a/lib/auth/jwt/validator_test.go b/lib/auth/jwt/validator_test.go index d1dfeca9b..137e2fcc0 100644 --- a/lib/auth/jwt/validator_test.go +++ b/lib/auth/jwt/validator_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jwt import ( diff --git a/lib/auth/oidc/provider.go b/lib/auth/oidc/provider.go index 7a086af1a..096d698c7 100644 --- a/lib/auth/oidc/provider.go +++ b/lib/auth/oidc/provider.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package oidc import ( diff --git a/lib/auth/oidc/provider_test.go b/lib/auth/oidc/provider_test.go index 2d8c90820..195e4847b 100644 --- a/lib/auth/oidc/provider_test.go +++ b/lib/auth/oidc/provider_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package oidc import ( diff --git a/lib/auth/oidc/server.go b/lib/auth/oidc/server.go index 2f6b9e075..7cd2cc4ca 100644 --- a/lib/auth/oidc/server.go +++ b/lib/auth/oidc/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package oidc import ( diff --git a/lib/auth/oidc/server_test.go b/lib/auth/oidc/server_test.go index d11707704..dfb2209fd 100644 --- a/lib/auth/oidc/server_test.go +++ b/lib/auth/oidc/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package oidc import ( diff --git a/lib/cpuset/cpuset.go b/lib/cpuset/cpuset.go index acfde50d7..e5c68bf25 100644 --- a/lib/cpuset/cpuset.go +++ b/lib/cpuset/cpuset.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cpuset import ( diff --git a/lib/cpuset/cpuset_test.go b/lib/cpuset/cpuset_test.go index 4c24baa14..ddc06e0ab 100644 --- a/lib/cpuset/cpuset_test.go +++ b/lib/cpuset/cpuset_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cpuset import ( diff --git a/lib/delayheap/delay_heap.go b/lib/delayheap/delay_heap.go index 3878b0783..7e39cad33 100644 --- a/lib/delayheap/delay_heap.go +++ b/lib/delayheap/delay_heap.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package delayheap import ( diff --git a/lib/delayheap/delay_heap_test.go b/lib/delayheap/delay_heap_test.go index 08ce83350..9f4f2ad3f 100644 --- a/lib/delayheap/delay_heap_test.go +++ b/lib/delayheap/delay_heap_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package delayheap import ( diff --git a/lib/file/atomic.go b/lib/file/atomic.go index fbc76e779..f95d2fb14 100644 --- a/lib/file/atomic.go +++ b/lib/file/atomic.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package file import ( diff --git a/lib/kheap/score_heap.go b/lib/kheap/score_heap.go index e75f73d16..56398d3ea 100644 --- a/lib/kheap/score_heap.go +++ b/lib/kheap/score_heap.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package kheap import ( diff --git a/lib/kheap/score_heap_test.go b/lib/kheap/score_heap_test.go index ca500bc86..993d24fdc 100644 --- a/lib/kheap/score_heap_test.go +++ b/lib/kheap/score_heap_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package kheap import ( diff --git a/lib/lang/doc.go b/lib/lang/doc.go index 04b5f7c88..f164051f2 100644 --- a/lib/lang/doc.go +++ b/lib/lang/doc.go @@ -1,2 +1,5 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package lang provides some features that really 'ought to be part of the Go language package lang diff --git a/lib/lang/pair.go b/lib/lang/pair.go index 2b1e6b58a..7cd54106a 100644 --- a/lib/lang/pair.go +++ b/lib/lang/pair.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lang // Pair associates two arbitrary types together. diff --git a/main.go b/main.go index d244fe88b..eeb795627 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/main_test.go b/main_test.go index 6cadb734c..5dffdda0d 100644 --- a/main_test.go +++ b/main_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main // This file is intentionally empty to force early versions of Go diff --git a/nomad/acl.go b/nomad/acl.go index 4748f4ba3..7cd1264db 100644 --- a/nomad/acl.go +++ b/nomad/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/acl_endpoint.go b/nomad/acl_endpoint.go index 4276a0670..fa124a9c2 100644 --- a/nomad/acl_endpoint.go +++ b/nomad/acl_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/acl_endpoint_test.go b/nomad/acl_endpoint_test.go index b806c6192..27cdc8ab9 100644 --- a/nomad/acl_endpoint_test.go +++ b/nomad/acl_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/acl_test.go b/nomad/acl_test.go index a350bc2bd..d0124ff57 100644 --- a/nomad/acl_test.go +++ b/nomad/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/alloc_endpoint.go b/nomad/alloc_endpoint.go index 07b339395..8aab0c490 100644 --- a/nomad/alloc_endpoint.go +++ b/nomad/alloc_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/alloc_endpoint_test.go b/nomad/alloc_endpoint_test.go index 2b48c06b3..1d3ad5d3c 100644 --- a/nomad/alloc_endpoint_test.go +++ b/nomad/alloc_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/autopilot.go b/nomad/autopilot.go index 52a303e50..1f00c0226 100644 --- a/nomad/autopilot.go +++ b/nomad/autopilot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/autopilot_oss.go b/nomad/autopilot_oss.go index f18781aed..f4ef8ab21 100644 --- a/nomad/autopilot_oss.go +++ b/nomad/autopilot_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/autopilot_test.go b/nomad/autopilot_test.go index 4b417d3db..36946db2f 100644 --- a/nomad/autopilot_test.go +++ b/nomad/autopilot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/blocked_evals.go b/nomad/blocked_evals.go index bcc1271df..2289dd1c3 100644 --- a/nomad/blocked_evals.go +++ b/nomad/blocked_evals.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/blocked_evals_stats.go b/nomad/blocked_evals_stats.go index cf90fb543..c29e0ddfc 100644 --- a/nomad/blocked_evals_stats.go +++ b/nomad/blocked_evals_stats.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/blocked_evals_stats_test.go b/nomad/blocked_evals_stats_test.go index ce3fee6c6..3349ed265 100644 --- a/nomad/blocked_evals_stats_test.go +++ b/nomad/blocked_evals_stats_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/blocked_evals_system.go b/nomad/blocked_evals_system.go index 5fae44595..48a906138 100644 --- a/nomad/blocked_evals_system.go +++ b/nomad/blocked_evals_system.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import "github.com/hashicorp/nomad/nomad/structs" diff --git a/nomad/blocked_evals_test.go b/nomad/blocked_evals_test.go index cb96a6f89..09a906e71 100644 --- a/nomad/blocked_evals_test.go +++ b/nomad/blocked_evals_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_agent_endpoint.go b/nomad/client_agent_endpoint.go index 5fb0201e8..a3cc070bf 100644 --- a/nomad/client_agent_endpoint.go +++ b/nomad/client_agent_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_agent_endpoint_test.go b/nomad/client_agent_endpoint_test.go index 1a7eb75de..256529d25 100644 --- a/nomad/client_agent_endpoint_test.go +++ b/nomad/client_agent_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_alloc_endpoint.go b/nomad/client_alloc_endpoint.go index 1dbeefe3a..83ba5fb7e 100644 --- a/nomad/client_alloc_endpoint.go +++ b/nomad/client_alloc_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_alloc_endpoint_test.go b/nomad/client_alloc_endpoint_test.go index 5bd2e2a40..b4053ab9d 100644 --- a/nomad/client_alloc_endpoint_test.go +++ b/nomad/client_alloc_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_csi_endpoint.go b/nomad/client_csi_endpoint.go index d33250300..f0091435a 100644 --- a/nomad/client_csi_endpoint.go +++ b/nomad/client_csi_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_csi_endpoint_test.go b/nomad/client_csi_endpoint_test.go index 81e8d4e0a..2de42e422 100644 --- a/nomad/client_csi_endpoint_test.go +++ b/nomad/client_csi_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_fs_endpoint.go b/nomad/client_fs_endpoint.go index 30f8a5e72..eefa26d4a 100644 --- a/nomad/client_fs_endpoint.go +++ b/nomad/client_fs_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_fs_endpoint_test.go b/nomad/client_fs_endpoint_test.go index 709e0d77b..981ae7ebd 100644 --- a/nomad/client_fs_endpoint_test.go +++ b/nomad/client_fs_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_meta_endpoint.go b/nomad/client_meta_endpoint.go index 1795a6aba..8bc4fc7ec 100644 --- a/nomad/client_meta_endpoint.go +++ b/nomad/client_meta_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_meta_endpoint_test.go b/nomad/client_meta_endpoint_test.go index 64e56c269..ad7f0c616 100644 --- a/nomad/client_meta_endpoint_test.go +++ b/nomad/client_meta_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_rpc.go b/nomad/client_rpc.go index 7c80f801b..457127334 100644 --- a/nomad/client_rpc.go +++ b/nomad/client_rpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_rpc_test.go b/nomad/client_rpc_test.go index efb3ce658..d3a9a19c4 100644 --- a/nomad/client_rpc_test.go +++ b/nomad/client_rpc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_stats_endpoint.go b/nomad/client_stats_endpoint.go index b2ef19144..3f8640a1a 100644 --- a/nomad/client_stats_endpoint.go +++ b/nomad/client_stats_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/client_stats_endpoint_test.go b/nomad/client_stats_endpoint_test.go index de6da4bec..bf63aa03f 100644 --- a/nomad/client_stats_endpoint_test.go +++ b/nomad/client_stats_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/config.go b/nomad/config.go index 191dd72af..adbca4bb9 100644 --- a/nomad/config.go +++ b/nomad/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/consul.go b/nomad/consul.go index a20074ab1..737e46bdb 100644 --- a/nomad/consul.go +++ b/nomad/consul.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/consul_oss_test.go b/nomad/consul_oss_test.go index 6e0c266b8..c8c1323fd 100644 --- a/nomad/consul_oss_test.go +++ b/nomad/consul_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/consul_policy.go b/nomad/consul_policy.go index d99f320f9..9adc318e0 100644 --- a/nomad/consul_policy.go +++ b/nomad/consul_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/consul_policy_oss_test.go b/nomad/consul_policy_oss_test.go index fcd149ad2..8b368712d 100644 --- a/nomad/consul_policy_oss_test.go +++ b/nomad/consul_policy_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent package nomad diff --git a/nomad/consul_policy_test.go b/nomad/consul_policy_test.go index fd9884ae7..a899f1e61 100644 --- a/nomad/consul_policy_test.go +++ b/nomad/consul_policy_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/consul_test.go b/nomad/consul_test.go index 5c6b5a834..11b39a609 100644 --- a/nomad/consul_test.go +++ b/nomad/consul_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/core_sched.go b/nomad/core_sched.go index 9d7ecc1fa..e4f2cdf9b 100644 --- a/nomad/core_sched.go +++ b/nomad/core_sched.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/core_sched_test.go b/nomad/core_sched_test.go index 6eb499df0..a574ea5d4 100644 --- a/nomad/core_sched_test.go +++ b/nomad/core_sched_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/csi_endpoint.go b/nomad/csi_endpoint.go index 22b588553..a7a48dd9b 100644 --- a/nomad/csi_endpoint.go +++ b/nomad/csi_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/csi_endpoint_test.go b/nomad/csi_endpoint_test.go index 60b7368a0..f2482b608 100644 --- a/nomad/csi_endpoint_test.go +++ b/nomad/csi_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/deployment_endpoint.go b/nomad/deployment_endpoint.go index a6820c778..0924d05a8 100644 --- a/nomad/deployment_endpoint.go +++ b/nomad/deployment_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/deployment_endpoint_test.go b/nomad/deployment_endpoint_test.go index 17d4b9980..b4736a928 100644 --- a/nomad/deployment_endpoint_test.go +++ b/nomad/deployment_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/deployment_watcher_shims.go b/nomad/deployment_watcher_shims.go index a7fb7da71..ba4b5356b 100644 --- a/nomad/deployment_watcher_shims.go +++ b/nomad/deployment_watcher_shims.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/deploymentwatcher/batcher.go b/nomad/deploymentwatcher/batcher.go index c3b6fcfc6..41fdf2899 100644 --- a/nomad/deploymentwatcher/batcher.go +++ b/nomad/deploymentwatcher/batcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package deploymentwatcher import ( diff --git a/nomad/deploymentwatcher/deployment_watcher.go b/nomad/deploymentwatcher/deployment_watcher.go index cbd5c09a5..a76148174 100644 --- a/nomad/deploymentwatcher/deployment_watcher.go +++ b/nomad/deploymentwatcher/deployment_watcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package deploymentwatcher import ( diff --git a/nomad/deploymentwatcher/deployments_watcher.go b/nomad/deploymentwatcher/deployments_watcher.go index 46db7a73c..395a46403 100644 --- a/nomad/deploymentwatcher/deployments_watcher.go +++ b/nomad/deploymentwatcher/deployments_watcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package deploymentwatcher import ( diff --git a/nomad/deploymentwatcher/deployments_watcher_test.go b/nomad/deploymentwatcher/deployments_watcher_test.go index 73277ac27..f4bf19106 100644 --- a/nomad/deploymentwatcher/deployments_watcher_test.go +++ b/nomad/deploymentwatcher/deployments_watcher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package deploymentwatcher import ( diff --git a/nomad/deploymentwatcher/doc.go b/nomad/deploymentwatcher/doc.go index e1f366b3c..24953b8fb 100644 --- a/nomad/deploymentwatcher/doc.go +++ b/nomad/deploymentwatcher/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // deploymentwatcher creates and tracks Deployments, which hold meta data describing the // process of upgrading a running job to a new set of Allocations. This encompasses settings // for canary deployments and blue/green rollouts. diff --git a/nomad/deploymentwatcher/multiregion_oss.go b/nomad/deploymentwatcher/multiregion_oss.go index 98b363ad4..6a96a2e8e 100644 --- a/nomad/deploymentwatcher/multiregion_oss.go +++ b/nomad/deploymentwatcher/multiregion_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/deploymentwatcher/testutil_test.go b/nomad/deploymentwatcher/testutil_test.go index d81db3103..f38f18c7b 100644 --- a/nomad/deploymentwatcher/testutil_test.go +++ b/nomad/deploymentwatcher/testutil_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package deploymentwatcher import ( diff --git a/nomad/drainer/drain_heap.go b/nomad/drainer/drain_heap.go index e4d418839..0069b0a67 100644 --- a/nomad/drainer/drain_heap.go +++ b/nomad/drainer/drain_heap.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/drain_heap_test.go b/nomad/drainer/drain_heap_test.go index 22ed77d96..8191b3c1d 100644 --- a/nomad/drainer/drain_heap_test.go +++ b/nomad/drainer/drain_heap_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/drain_testing.go b/nomad/drainer/drain_testing.go index 13543f0b8..99b631e85 100644 --- a/nomad/drainer/drain_testing.go +++ b/nomad/drainer/drain_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/drainer.go b/nomad/drainer/drainer.go index f610a0bce..011495569 100644 --- a/nomad/drainer/drainer.go +++ b/nomad/drainer/drainer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/drainer_util.go b/nomad/drainer/drainer_util.go index eb27048cb..2c2d20f10 100644 --- a/nomad/drainer/drainer_util.go +++ b/nomad/drainer/drainer_util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/drainer_util_test.go b/nomad/drainer/drainer_util_test.go index 75fc531ff..97a1d720d 100644 --- a/nomad/drainer/drainer_util_test.go +++ b/nomad/drainer/drainer_util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/draining_node.go b/nomad/drainer/draining_node.go index 3e3e5c2b1..6092e999a 100644 --- a/nomad/drainer/draining_node.go +++ b/nomad/drainer/draining_node.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/draining_node_test.go b/nomad/drainer/draining_node_test.go index 59f258f23..f33cc79ff 100644 --- a/nomad/drainer/draining_node_test.go +++ b/nomad/drainer/draining_node_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/watch_jobs.go b/nomad/drainer/watch_jobs.go index 1ed440221..de30ef9f7 100644 --- a/nomad/drainer/watch_jobs.go +++ b/nomad/drainer/watch_jobs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/watch_jobs_test.go b/nomad/drainer/watch_jobs_test.go index 9f6f637dd..0fc76bfd1 100644 --- a/nomad/drainer/watch_jobs_test.go +++ b/nomad/drainer/watch_jobs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/watch_nodes.go b/nomad/drainer/watch_nodes.go index 6c7b0e856..3bc6f19b6 100644 --- a/nomad/drainer/watch_nodes.go +++ b/nomad/drainer/watch_nodes.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer/watch_nodes_test.go b/nomad/drainer/watch_nodes_test.go index 7ad165c5d..cd2b53516 100644 --- a/nomad/drainer/watch_nodes_test.go +++ b/nomad/drainer/watch_nodes_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drainer import ( diff --git a/nomad/drainer_int_test.go b/nomad/drainer_int_test.go index 33abf4812..a9162c540 100644 --- a/nomad/drainer_int_test.go +++ b/nomad/drainer_int_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/drainer_shims.go b/nomad/drainer_shims.go index 2186d6068..4b2b019ab 100644 --- a/nomad/drainer_shims.go +++ b/nomad/drainer_shims.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/encrypter.go b/nomad/encrypter.go index 1f773bd95..221a98c66 100644 --- a/nomad/encrypter.go +++ b/nomad/encrypter.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/encrypter_test.go b/nomad/encrypter_test.go index b16e4eae6..7641cd3ba 100644 --- a/nomad/encrypter_test.go +++ b/nomad/encrypter_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/endpoints_oss.go b/nomad/endpoints_oss.go index 6d6592656..ccb91b6b7 100644 --- a/nomad/endpoints_oss.go +++ b/nomad/endpoints_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/eval_broker.go b/nomad/eval_broker.go index ca7907a1f..eb3a40a80 100644 --- a/nomad/eval_broker.go +++ b/nomad/eval_broker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/eval_broker_test.go b/nomad/eval_broker_test.go index 2b93e498d..8248cc57d 100644 --- a/nomad/eval_broker_test.go +++ b/nomad/eval_broker_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/eval_endpoint.go b/nomad/eval_endpoint.go index b57caf7aa..d5ef1ba39 100644 --- a/nomad/eval_endpoint.go +++ b/nomad/eval_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/eval_endpoint_test.go b/nomad/eval_endpoint_test.go index 91eff63f7..8b3fa2649 100644 --- a/nomad/eval_endpoint_test.go +++ b/nomad/eval_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/event_endpoint.go b/nomad/event_endpoint.go index 33c0405f0..704d7346f 100644 --- a/nomad/event_endpoint.go +++ b/nomad/event_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/event_endpoint_test.go b/nomad/event_endpoint_test.go index b0231a485..59417c996 100644 --- a/nomad/event_endpoint_test.go +++ b/nomad/event_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/fsm.go b/nomad/fsm.go index 9a9520f71..f8ec2084b 100644 --- a/nomad/fsm.go +++ b/nomad/fsm.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/fsm_oss.go b/nomad/fsm_oss.go index 2c9d1e62d..99dd280f3 100644 --- a/nomad/fsm_oss.go +++ b/nomad/fsm_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/fsm_registry_oss.go b/nomad/fsm_registry_oss.go index c1a18750f..bd01763da 100644 --- a/nomad/fsm_registry_oss.go +++ b/nomad/fsm_registry_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/fsm_test.go b/nomad/fsm_test.go index a75cb98d4..4d67df168 100644 --- a/nomad/fsm_test.go +++ b/nomad/fsm_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/heartbeat.go b/nomad/heartbeat.go index a7c5c7f7c..1bca3e47d 100644 --- a/nomad/heartbeat.go +++ b/nomad/heartbeat.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/heartbeat_test.go b/nomad/heartbeat_test.go index 58879cf9a..ced7a9813 100644 --- a/nomad/heartbeat_test.go +++ b/nomad/heartbeat_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint.go b/nomad/job_endpoint.go index 03ed85e4e..ce0c9e810 100644 --- a/nomad/job_endpoint.go +++ b/nomad/job_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint_hook_connect.go b/nomad/job_endpoint_hook_connect.go index e32239fd2..864891475 100644 --- a/nomad/job_endpoint_hook_connect.go +++ b/nomad/job_endpoint_hook_connect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint_hook_connect_test.go b/nomad/job_endpoint_hook_connect_test.go index f2dd4642e..8481946f3 100644 --- a/nomad/job_endpoint_hook_connect_test.go +++ b/nomad/job_endpoint_hook_connect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint_hook_expose_check.go b/nomad/job_endpoint_hook_expose_check.go index f5590bbbb..d6a3265d2 100644 --- a/nomad/job_endpoint_hook_expose_check.go +++ b/nomad/job_endpoint_hook_expose_check.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint_hook_expose_check_test.go b/nomad/job_endpoint_hook_expose_check_test.go index 08c786855..3420033d5 100644 --- a/nomad/job_endpoint_hook_expose_check_test.go +++ b/nomad/job_endpoint_hook_expose_check_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint_hook_vault.go b/nomad/job_endpoint_hook_vault.go index 74d47a6df..4196f0f2e 100644 --- a/nomad/job_endpoint_hook_vault.go +++ b/nomad/job_endpoint_hook_vault.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint_hook_vault_oss.go b/nomad/job_endpoint_hook_vault_oss.go index dab3c1b94..b87eabcd1 100644 --- a/nomad/job_endpoint_hook_vault_oss.go +++ b/nomad/job_endpoint_hook_vault_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/job_endpoint_hooks.go b/nomad/job_endpoint_hooks.go index f823a0f19..61c9175bb 100644 --- a/nomad/job_endpoint_hooks.go +++ b/nomad/job_endpoint_hooks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint_hooks_test.go b/nomad/job_endpoint_hooks_test.go index f16d39fb5..645f3b0b1 100644 --- a/nomad/job_endpoint_hooks_test.go +++ b/nomad/job_endpoint_hooks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint_oss.go b/nomad/job_endpoint_oss.go index 53da7f7ae..dfdd00278 100644 --- a/nomad/job_endpoint_oss.go +++ b/nomad/job_endpoint_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/job_endpoint_oss_test.go b/nomad/job_endpoint_oss_test.go index 446abe5d1..dce79decb 100644 --- a/nomad/job_endpoint_oss_test.go +++ b/nomad/job_endpoint_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/job_endpoint_test.go b/nomad/job_endpoint_test.go index 53df38c01..b58d40889 100644 --- a/nomad/job_endpoint_test.go +++ b/nomad/job_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint_validators.go b/nomad/job_endpoint_validators.go index 828103ffe..4e0e01686 100644 --- a/nomad/job_endpoint_validators.go +++ b/nomad/job_endpoint_validators.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/job_endpoint_validators_test.go b/nomad/job_endpoint_validators_test.go index 4d1159056..a21d1508d 100644 --- a/nomad/job_endpoint_validators_test.go +++ b/nomad/job_endpoint_validators_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/keyring_endpoint.go b/nomad/keyring_endpoint.go index b35f17c7b..f921d0cbf 100644 --- a/nomad/keyring_endpoint.go +++ b/nomad/keyring_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/keyring_endpoint_test.go b/nomad/keyring_endpoint_test.go index 88d55bb8f..4fe0df701 100644 --- a/nomad/keyring_endpoint_test.go +++ b/nomad/keyring_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/leader.go b/nomad/leader.go index b4a55b415..9e5445480 100644 --- a/nomad/leader.go +++ b/nomad/leader.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/leader_oss.go b/nomad/leader_oss.go index eb19d9107..b2474f108 100644 --- a/nomad/leader_oss.go +++ b/nomad/leader_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/leader_test.go b/nomad/leader_test.go index e812e53d0..35c289ebb 100644 --- a/nomad/leader_test.go +++ b/nomad/leader_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/license_config.go b/nomad/license_config.go index 59f0e1330..3f3f00980 100644 --- a/nomad/license_config.go +++ b/nomad/license_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/license_config_oss.go b/nomad/license_config_oss.go index 32d00d39a..cb0ae5bf2 100644 --- a/nomad/license_config_oss.go +++ b/nomad/license_config_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent package nomad diff --git a/nomad/merge.go b/nomad/merge.go index 7b6288cc0..9757c2e9b 100644 --- a/nomad/merge.go +++ b/nomad/merge.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/mock/acl.go b/nomad/mock/acl.go index 136452c21..3ec6d0580 100644 --- a/nomad/mock/acl.go +++ b/nomad/mock/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/mock/alloc.go b/nomad/mock/alloc.go index fe99ee73b..95fafe6ea 100644 --- a/nomad/mock/alloc.go +++ b/nomad/mock/alloc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/mock/checks.go b/nomad/mock/checks.go index ce7a71de8..b8f254fd2 100644 --- a/nomad/mock/checks.go +++ b/nomad/mock/checks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/mock/connect.go b/nomad/mock/connect.go index d76481518..80dcdaa28 100644 --- a/nomad/mock/connect.go +++ b/nomad/mock/connect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/mock/csi.go b/nomad/mock/csi.go index 48b96f293..3d3004e20 100644 --- a/nomad/mock/csi.go +++ b/nomad/mock/csi.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/mock/job.go b/nomad/mock/job.go index a40fed67a..4623b9c0e 100644 --- a/nomad/mock/job.go +++ b/nomad/mock/job.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/mock/lifecycle.go b/nomad/mock/lifecycle.go index b20441693..60881d6aa 100644 --- a/nomad/mock/lifecycle.go +++ b/nomad/mock/lifecycle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/mock/mock.go b/nomad/mock/mock.go index 8066ed290..a35c546de 100644 --- a/nomad/mock/mock.go +++ b/nomad/mock/mock.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/mock/network.go b/nomad/mock/network.go index ae1480fe3..fa93a2800 100644 --- a/nomad/mock/network.go +++ b/nomad/mock/network.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/mock/node.go b/nomad/mock/node.go index 0776bf409..44e9dcc88 100644 --- a/nomad/mock/node.go +++ b/nomad/mock/node.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/mock/variables.go b/nomad/mock/variables.go index 8482d1cee..cd029a5b3 100644 --- a/nomad/mock/variables.go +++ b/nomad/mock/variables.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/nomad/namespace_endpoint.go b/nomad/namespace_endpoint.go index db638169b..ed1d2ae75 100644 --- a/nomad/namespace_endpoint.go +++ b/nomad/namespace_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/namespace_endpoint_test.go b/nomad/namespace_endpoint_test.go index 23645492a..be380b672 100644 --- a/nomad/namespace_endpoint_test.go +++ b/nomad/namespace_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/node_endpoint.go b/nomad/node_endpoint.go index a13e80a75..37673bae4 100644 --- a/nomad/node_endpoint.go +++ b/nomad/node_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/node_endpoint_test.go b/nomad/node_endpoint_test.go index 2793f83c9..4a712da2b 100644 --- a/nomad/node_endpoint_test.go +++ b/nomad/node_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/operator_endpoint.go b/nomad/operator_endpoint.go index 0aa66b298..858e176b1 100644 --- a/nomad/operator_endpoint.go +++ b/nomad/operator_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/operator_endpoint_test.go b/nomad/operator_endpoint_test.go index f4a4d17af..53bccbf40 100644 --- a/nomad/operator_endpoint_test.go +++ b/nomad/operator_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/periodic.go b/nomad/periodic.go index 56daf7b05..02a076475 100644 --- a/nomad/periodic.go +++ b/nomad/periodic.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/periodic_endpoint.go b/nomad/periodic_endpoint.go index ac60e4a56..cd2b49084 100644 --- a/nomad/periodic_endpoint.go +++ b/nomad/periodic_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/periodic_endpoint_test.go b/nomad/periodic_endpoint_test.go index 2fb2a38cb..3363e7891 100644 --- a/nomad/periodic_endpoint_test.go +++ b/nomad/periodic_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/periodic_test.go b/nomad/periodic_test.go index eaa795ecf..eb047514d 100644 --- a/nomad/periodic_test.go +++ b/nomad/periodic_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_apply.go b/nomad/plan_apply.go index fd18058b9..b8bac8165 100644 --- a/nomad/plan_apply.go +++ b/nomad/plan_apply.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_apply_node_tracker.go b/nomad/plan_apply_node_tracker.go index 6e964cde0..49722c25c 100644 --- a/nomad/plan_apply_node_tracker.go +++ b/nomad/plan_apply_node_tracker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_apply_node_tracker_test.go b/nomad/plan_apply_node_tracker_test.go index 6a1704883..bcad657a4 100644 --- a/nomad/plan_apply_node_tracker_test.go +++ b/nomad/plan_apply_node_tracker_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_apply_oss.go b/nomad/plan_apply_oss.go index e1b540edc..e2ee5c347 100644 --- a/nomad/plan_apply_oss.go +++ b/nomad/plan_apply_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/plan_apply_pool.go b/nomad/plan_apply_pool.go index 75ca75023..962cc03b2 100644 --- a/nomad/plan_apply_pool.go +++ b/nomad/plan_apply_pool.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_apply_pool_test.go b/nomad/plan_apply_pool_test.go index 1f88a5ccc..38563e74d 100644 --- a/nomad/plan_apply_pool_test.go +++ b/nomad/plan_apply_pool_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_apply_test.go b/nomad/plan_apply_test.go index fc21bc6e2..a8f3c26c3 100644 --- a/nomad/plan_apply_test.go +++ b/nomad/plan_apply_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_endpoint.go b/nomad/plan_endpoint.go index 2903709eb..8c751bc49 100644 --- a/nomad/plan_endpoint.go +++ b/nomad/plan_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_endpoint_test.go b/nomad/plan_endpoint_test.go index c36cb4f19..20e056d59 100644 --- a/nomad/plan_endpoint_test.go +++ b/nomad/plan_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_normalization_test.go b/nomad/plan_normalization_test.go index 6dbe18b22..7819dac21 100644 --- a/nomad/plan_normalization_test.go +++ b/nomad/plan_normalization_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_queue.go b/nomad/plan_queue.go index 0c1cb554a..f62fac01b 100644 --- a/nomad/plan_queue.go +++ b/nomad/plan_queue.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/plan_queue_test.go b/nomad/plan_queue_test.go index 42877846b..f2c68a738 100644 --- a/nomad/plan_queue_test.go +++ b/nomad/plan_queue_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/raft_rpc.go b/nomad/raft_rpc.go index 164867a7f..c7749a061 100644 --- a/nomad/raft_rpc.go +++ b/nomad/raft_rpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/regions_endpoint.go b/nomad/regions_endpoint.go index 488dd1bd9..e87aa9af6 100644 --- a/nomad/regions_endpoint.go +++ b/nomad/regions_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/regions_endpoint_test.go b/nomad/regions_endpoint_test.go index 97c7d1b04..18db40bfb 100644 --- a/nomad/regions_endpoint_test.go +++ b/nomad/regions_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/rpc.go b/nomad/rpc.go index 500c4d72b..448597ea8 100644 --- a/nomad/rpc.go +++ b/nomad/rpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/rpc_rate_metrics.go b/nomad/rpc_rate_metrics.go index ce9aaf621..cf1917a43 100644 --- a/nomad/rpc_rate_metrics.go +++ b/nomad/rpc_rate_metrics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/rpc_test.go b/nomad/rpc_test.go index a4548ada1..5e06ab8cd 100644 --- a/nomad/rpc_test.go +++ b/nomad/rpc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/scaling_endpoint.go b/nomad/scaling_endpoint.go index b49322260..6877c5232 100644 --- a/nomad/scaling_endpoint.go +++ b/nomad/scaling_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/scaling_endpoint_test.go b/nomad/scaling_endpoint_test.go index 673d3be14..859ac0297 100644 --- a/nomad/scaling_endpoint_test.go +++ b/nomad/scaling_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/search_endpoint.go b/nomad/search_endpoint.go index fab920688..de64da10f 100644 --- a/nomad/search_endpoint.go +++ b/nomad/search_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/search_endpoint_oss.go b/nomad/search_endpoint_oss.go index f35f52886..0ecf3b999 100644 --- a/nomad/search_endpoint_oss.go +++ b/nomad/search_endpoint_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/search_endpoint_test.go b/nomad/search_endpoint_test.go index 071520ca5..bc6673e98 100644 --- a/nomad/search_endpoint_test.go +++ b/nomad/search_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/serf.go b/nomad/serf.go index adcf80a28..736395b36 100644 --- a/nomad/serf.go +++ b/nomad/serf.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/serf_test.go b/nomad/serf_test.go index 891678743..a304a8ef6 100644 --- a/nomad/serf_test.go +++ b/nomad/serf_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/server.go b/nomad/server.go index 4d4cb910d..4fec6a678 100644 --- a/nomad/server.go +++ b/nomad/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/server_setup_oss.go b/nomad/server_setup_oss.go index b37657269..f9adc1c30 100644 --- a/nomad/server_setup_oss.go +++ b/nomad/server_setup_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent package nomad diff --git a/nomad/server_test.go b/nomad/server_test.go index 429aac415..67a9d2b53 100644 --- a/nomad/server_test.go +++ b/nomad/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/service_registration_endpoint.go b/nomad/service_registration_endpoint.go index 23570f26a..f5abae79b 100644 --- a/nomad/service_registration_endpoint.go +++ b/nomad/service_registration_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/service_registration_endpoint_test.go b/nomad/service_registration_endpoint_test.go index 448e68377..4aea7c07b 100644 --- a/nomad/service_registration_endpoint_test.go +++ b/nomad/service_registration_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/state/autopilot.go b/nomad/state/autopilot.go index d53cfe5e0..663c301e1 100644 --- a/nomad/state/autopilot.go +++ b/nomad/state/autopilot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/autopilot_test.go b/nomad/state/autopilot_test.go index 9379f9ba8..1772b7b62 100644 --- a/nomad/state/autopilot_test.go +++ b/nomad/state/autopilot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/deployment_events_test.go b/nomad/state/deployment_events_test.go index 7bda62063..3015ff96d 100644 --- a/nomad/state/deployment_events_test.go +++ b/nomad/state/deployment_events_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/events.go b/nomad/state/events.go index 4c97e180d..9823a8941 100644 --- a/nomad/state/events.go +++ b/nomad/state/events.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/events_test.go b/nomad/state/events_test.go index fdff1b23e..bcbffc3cf 100644 --- a/nomad/state/events_test.go +++ b/nomad/state/events_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/indexer/indexer.go b/nomad/state/indexer/indexer.go index 3cdc8e93f..d061db0a1 100644 --- a/nomad/state/indexer/indexer.go +++ b/nomad/state/indexer/indexer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import ( diff --git a/nomad/state/indexer/indexer_test.go b/nomad/state/indexer/indexer_test.go index 5d01c2608..d3cea7fba 100644 --- a/nomad/state/indexer/indexer_test.go +++ b/nomad/state/indexer/indexer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import ( diff --git a/nomad/state/indexer/time.go b/nomad/state/indexer/time.go index 5daa71d5a..9adc83711 100644 --- a/nomad/state/indexer/time.go +++ b/nomad/state/indexer/time.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import ( diff --git a/nomad/state/indexer/time_test.go b/nomad/state/indexer/time_test.go index 77288d100..fa733c3a3 100644 --- a/nomad/state/indexer/time_test.go +++ b/nomad/state/indexer/time_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package indexer import ( diff --git a/nomad/state/iterator.go b/nomad/state/iterator.go index ea8c0d1d2..b6629a10e 100644 --- a/nomad/state/iterator.go +++ b/nomad/state/iterator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state type SliceIterator struct { diff --git a/nomad/state/paginator/filter.go b/nomad/state/paginator/filter.go index e4ed1f250..f4e637ad7 100644 --- a/nomad/state/paginator/filter.go +++ b/nomad/state/paginator/filter.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package paginator // Filter is the interface that must be implemented to skip values when using diff --git a/nomad/state/paginator/filter_test.go b/nomad/state/paginator/filter_test.go index 20e94bb95..e7afc29a4 100644 --- a/nomad/state/paginator/filter_test.go +++ b/nomad/state/paginator/filter_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package paginator import ( diff --git a/nomad/state/paginator/paginator.go b/nomad/state/paginator/paginator.go index 5b4f31d2e..10789fc00 100644 --- a/nomad/state/paginator/paginator.go +++ b/nomad/state/paginator/paginator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package paginator import ( diff --git a/nomad/state/paginator/paginator_test.go b/nomad/state/paginator/paginator_test.go index 2d7daa2a2..4f3e40b01 100644 --- a/nomad/state/paginator/paginator_test.go +++ b/nomad/state/paginator/paginator_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package paginator import ( diff --git a/nomad/state/paginator/tokenizer.go b/nomad/state/paginator/tokenizer.go index fa5e58d5b..83d25a5b0 100644 --- a/nomad/state/paginator/tokenizer.go +++ b/nomad/state/paginator/tokenizer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package paginator import ( diff --git a/nomad/state/paginator/tokenizer_test.go b/nomad/state/paginator/tokenizer_test.go index 174f1f1d3..a5ac26d56 100644 --- a/nomad/state/paginator/tokenizer_test.go +++ b/nomad/state/paginator/tokenizer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package paginator import ( diff --git a/nomad/state/schema.go b/nomad/state/schema.go index 6d2355950..55bf6477a 100644 --- a/nomad/state/schema.go +++ b/nomad/state/schema.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/schema_test.go b/nomad/state/schema_test.go index 2131ffa5e..ead576b90 100644 --- a/nomad/state/schema_test.go +++ b/nomad/state/schema_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_changes.go b/nomad/state/state_changes.go index 79e8bd445..40c6cb3fc 100644 --- a/nomad/state/state_changes.go +++ b/nomad/state/state_changes.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store.go b/nomad/state/state_store.go index 2b77ada95..e5e1958d5 100644 --- a/nomad/state/state_store.go +++ b/nomad/state/state_store.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_acl.go b/nomad/state/state_store_acl.go index 790bc292b..0b4c872b5 100644 --- a/nomad/state/state_store_acl.go +++ b/nomad/state/state_store_acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_acl_binding_rule.go b/nomad/state/state_store_acl_binding_rule.go index f355e614c..c35b80839 100644 --- a/nomad/state/state_store_acl_binding_rule.go +++ b/nomad/state/state_store_acl_binding_rule.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_acl_binding_rule_test.go b/nomad/state/state_store_acl_binding_rule_test.go index 14cc0c95e..1cd2c152b 100644 --- a/nomad/state/state_store_acl_binding_rule_test.go +++ b/nomad/state/state_store_acl_binding_rule_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_acl_sso.go b/nomad/state/state_store_acl_sso.go index f27ac63ce..8744a1533 100644 --- a/nomad/state/state_store_acl_sso.go +++ b/nomad/state/state_store_acl_sso.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_acl_sso_test.go b/nomad/state/state_store_acl_sso_test.go index 6711014db..f7a98f673 100644 --- a/nomad/state/state_store_acl_sso_test.go +++ b/nomad/state/state_store_acl_sso_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_acl_test.go b/nomad/state/state_store_acl_test.go index 90c8a318c..f24b0a9f4 100644 --- a/nomad/state/state_store_acl_test.go +++ b/nomad/state/state_store_acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_oss.go b/nomad/state/state_store_oss.go index aaa57de03..f01da618b 100644 --- a/nomad/state/state_store_oss.go +++ b/nomad/state/state_store_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/state/state_store_restore.go b/nomad/state/state_store_restore.go index d779ceaeb..340d83550 100644 --- a/nomad/state/state_store_restore.go +++ b/nomad/state/state_store_restore.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_restore_test.go b/nomad/state/state_store_restore_test.go index 55eee0b9a..d087f17db 100644 --- a/nomad/state/state_store_restore_test.go +++ b/nomad/state/state_store_restore_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_service_regisration_test.go b/nomad/state/state_store_service_regisration_test.go index 8c80dcb05..1bf0a3d7a 100644 --- a/nomad/state/state_store_service_regisration_test.go +++ b/nomad/state/state_store_service_regisration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_service_registration.go b/nomad/state/state_store_service_registration.go index d2ab86b30..0b8ade4ed 100644 --- a/nomad/state/state_store_service_registration.go +++ b/nomad/state/state_store_service_registration.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_test.go b/nomad/state/state_store_test.go index 0fc48dac1..8193cc510 100644 --- a/nomad/state/state_store_test.go +++ b/nomad/state/state_store_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_variables.go b/nomad/state/state_store_variables.go index 3e47927ef..1b85407d9 100644 --- a/nomad/state/state_store_variables.go +++ b/nomad/state/state_store_variables.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/state_store_variables_oss.go b/nomad/state/state_store_variables_oss.go index a9ab23242..7ba318bdf 100644 --- a/nomad/state/state_store_variables_oss.go +++ b/nomad/state/state_store_variables_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/state/state_store_variables_test.go b/nomad/state/state_store_variables_test.go index eef777520..16b530cea 100644 --- a/nomad/state/state_store_variables_test.go +++ b/nomad/state/state_store_variables_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/state/testing.go b/nomad/state/testing.go index b288f7d3f..1547a9050 100644 --- a/nomad/state/testing.go +++ b/nomad/state/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/nomad/stats_fetcher.go b/nomad/stats_fetcher.go index c01e98c86..2bf0b42e4 100644 --- a/nomad/stats_fetcher.go +++ b/nomad/stats_fetcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/stats_fetcher_test.go b/nomad/stats_fetcher_test.go index 74a5d497e..c505e3469 100644 --- a/nomad/stats_fetcher_test.go +++ b/nomad/stats_fetcher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/status_endpoint.go b/nomad/status_endpoint.go index f5b53a5c9..f0192dd9e 100644 --- a/nomad/status_endpoint.go +++ b/nomad/status_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/status_endpoint_test.go b/nomad/status_endpoint_test.go index e7eb6901c..0c71c8315 100644 --- a/nomad/status_endpoint_test.go +++ b/nomad/status_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/stream/event_broker.go b/nomad/stream/event_broker.go index 55db9d3db..587f7b7ab 100644 --- a/nomad/stream/event_broker.go +++ b/nomad/stream/event_broker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/nomad/stream/event_broker_test.go b/nomad/stream/event_broker_test.go index dfeeb6177..d4cd174fa 100644 --- a/nomad/stream/event_broker_test.go +++ b/nomad/stream/event_broker_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/nomad/stream/event_buffer.go b/nomad/stream/event_buffer.go index 84e8068ad..e134c1ea2 100644 --- a/nomad/stream/event_buffer.go +++ b/nomad/stream/event_buffer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/nomad/stream/event_buffer_test.go b/nomad/stream/event_buffer_test.go index f9ec7bd22..d3815a50f 100644 --- a/nomad/stream/event_buffer_test.go +++ b/nomad/stream/event_buffer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/nomad/stream/ndjson.go b/nomad/stream/ndjson.go index c3ea3e7dd..7e048f3bf 100644 --- a/nomad/stream/ndjson.go +++ b/nomad/stream/ndjson.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/nomad/stream/ndjson_test.go b/nomad/stream/ndjson_test.go index 5da4f08cd..8d39ff4d9 100644 --- a/nomad/stream/ndjson_test.go +++ b/nomad/stream/ndjson_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/nomad/stream/subscription.go b/nomad/stream/subscription.go index a9e37342e..175eab3f8 100644 --- a/nomad/stream/subscription.go +++ b/nomad/stream/subscription.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/nomad/stream/subscription_test.go b/nomad/stream/subscription_test.go index 6f31a3204..93490de80 100644 --- a/nomad/stream/subscription_test.go +++ b/nomad/stream/subscription_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/nomad/structs/acl.go b/nomad/structs/acl.go index 72814e662..0135e2104 100644 --- a/nomad/structs/acl.go +++ b/nomad/structs/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/acl_test.go b/nomad/structs/acl_test.go index 05a3df881..ede674e2c 100644 --- a/nomad/structs/acl_test.go +++ b/nomad/structs/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/alloc.go b/nomad/structs/alloc.go index 57ef361be..7a9d0c562 100644 --- a/nomad/structs/alloc.go +++ b/nomad/structs/alloc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs const ( diff --git a/nomad/structs/alloc_test.go b/nomad/structs/alloc_test.go index bbb874a39..e7c5030c5 100644 --- a/nomad/structs/alloc_test.go +++ b/nomad/structs/alloc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/autopilot.go b/nomad/structs/autopilot.go index 7520e084a..53ed21cad 100644 --- a/nomad/structs/autopilot.go +++ b/nomad/structs/autopilot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/batch_future.go b/nomad/structs/batch_future.go index c0ddc30f3..293395727 100644 --- a/nomad/structs/batch_future.go +++ b/nomad/structs/batch_future.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // BatchFuture is used to wait on a batch update to complete diff --git a/nomad/structs/batch_future_test.go b/nomad/structs/batch_future_test.go index 84693fe59..d88c7a39f 100644 --- a/nomad/structs/batch_future_test.go +++ b/nomad/structs/batch_future_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/bitmap.go b/nomad/structs/bitmap.go index 5763ce3a9..f3077d9c7 100644 --- a/nomad/structs/bitmap.go +++ b/nomad/structs/bitmap.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/bitmap_test.go b/nomad/structs/bitmap_test.go index e28d831d6..473e140a7 100644 --- a/nomad/structs/bitmap_test.go +++ b/nomad/structs/bitmap_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/check_test.go b/nomad/structs/check_test.go index 946870eae..f07c05797 100644 --- a/nomad/structs/check_test.go +++ b/nomad/structs/check_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/checks.go b/nomad/structs/checks.go index 1d8eb8f4f..7cac9820d 100644 --- a/nomad/structs/checks.go +++ b/nomad/structs/checks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/config/artifact.go b/nomad/structs/config/artifact.go index 7a96a828b..8a8e1cc70 100644 --- a/nomad/structs/config/artifact.go +++ b/nomad/structs/config/artifact.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/artifact_test.go b/nomad/structs/config/artifact_test.go index 887cc95cb..30c4ed529 100644 --- a/nomad/structs/config/artifact_test.go +++ b/nomad/structs/config/artifact_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/audit.go b/nomad/structs/config/audit.go index c9459b584..ffcd31c71 100644 --- a/nomad/structs/config/audit.go +++ b/nomad/structs/config/audit.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/audit_test.go b/nomad/structs/config/audit_test.go index 0388edb87..d0615756f 100644 --- a/nomad/structs/config/audit_test.go +++ b/nomad/structs/config/audit_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/autopilot.go b/nomad/structs/config/autopilot.go index 2efd0f20a..9bf50334e 100644 --- a/nomad/structs/config/autopilot.go +++ b/nomad/structs/config/autopilot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/autopilot_test.go b/nomad/structs/config/autopilot_test.go index 053bfe51f..5e24d2d44 100644 --- a/nomad/structs/config/autopilot_test.go +++ b/nomad/structs/config/autopilot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/consul.go b/nomad/structs/config/consul.go index cddbdb54a..bfd135471 100644 --- a/nomad/structs/config/consul.go +++ b/nomad/structs/config/consul.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/consul_test.go b/nomad/structs/config/consul_test.go index 806b999d5..76d40b90f 100644 --- a/nomad/structs/config/consul_test.go +++ b/nomad/structs/config/consul_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/limits.go b/nomad/structs/config/limits.go index 77fda5190..da72aeac0 100644 --- a/nomad/structs/config/limits.go +++ b/nomad/structs/config/limits.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import "github.com/hashicorp/nomad/helper/pointer" diff --git a/nomad/structs/config/limits_test.go b/nomad/structs/config/limits_test.go index 95f68037f..68b450a81 100644 --- a/nomad/structs/config/limits_test.go +++ b/nomad/structs/config/limits_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/plugins.go b/nomad/structs/config/plugins.go index 6762be8fc..1c6f03102 100644 --- a/nomad/structs/config/plugins.go +++ b/nomad/structs/config/plugins.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import "github.com/mitchellh/copystructure" diff --git a/nomad/structs/config/plugins_test.go b/nomad/structs/config/plugins_test.go index e380ba622..6cd8e2662 100644 --- a/nomad/structs/config/plugins_test.go +++ b/nomad/structs/config/plugins_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/sentinel.go b/nomad/structs/config/sentinel.go index 6dc17c85a..1704192e7 100644 --- a/nomad/structs/config/sentinel.go +++ b/nomad/structs/config/sentinel.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/tls.go b/nomad/structs/config/tls.go index 6130747d1..793b5e645 100644 --- a/nomad/structs/config/tls.go +++ b/nomad/structs/config/tls.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/tls_test.go b/nomad/structs/config/tls_test.go index 0e89898ef..800974f2e 100644 --- a/nomad/structs/config/tls_test.go +++ b/nomad/structs/config/tls_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/ui.go b/nomad/structs/config/ui.go index 4e8757ef5..0fd97a1b8 100644 --- a/nomad/structs/config/ui.go +++ b/nomad/structs/config/ui.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config // UIConfig contains the operator configuration of the web UI diff --git a/nomad/structs/config/ui_test.go b/nomad/structs/config/ui_test.go index 337ab3ca1..2e5a7a205 100644 --- a/nomad/structs/config/ui_test.go +++ b/nomad/structs/config/ui_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/vault.go b/nomad/structs/config/vault.go index 608c0c6e1..e0eaad208 100644 --- a/nomad/structs/config/vault.go +++ b/nomad/structs/config/vault.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/config/vault_test.go b/nomad/structs/config/vault_test.go index fb358ba8f..b27124e3d 100644 --- a/nomad/structs/config/vault_test.go +++ b/nomad/structs/config/vault_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/nomad/structs/connect.go b/nomad/structs/connect.go index a563f0c44..ae1accda3 100644 --- a/nomad/structs/connect.go +++ b/nomad/structs/connect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // ConsulConfigEntries represents Consul ConfigEntry definitions from a job for diff --git a/nomad/structs/connect_test.go b/nomad/structs/connect_test.go index 11f93e894..c68bf9d68 100644 --- a/nomad/structs/connect_test.go +++ b/nomad/structs/connect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/consul.go b/nomad/structs/consul.go index 512118835..c90a7a1a8 100644 --- a/nomad/structs/consul.go +++ b/nomad/structs/consul.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // Consul represents optional per-group consul configuration. diff --git a/nomad/structs/consul_oss.go b/nomad/structs/consul_oss.go index fa1c36c70..6f8ba2d70 100644 --- a/nomad/structs/consul_oss.go +++ b/nomad/structs/consul_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/structs/consul_oss_test.go b/nomad/structs/consul_oss_test.go index a1cabf60b..b38480b87 100644 --- a/nomad/structs/consul_oss_test.go +++ b/nomad/structs/consul_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/structs/consul_test.go b/nomad/structs/consul_test.go index 44e524982..b9d8812d1 100644 --- a/nomad/structs/consul_test.go +++ b/nomad/structs/consul_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/csi.go b/nomad/structs/csi.go index 130362aa1..5b1cdbffb 100644 --- a/nomad/structs/csi.go +++ b/nomad/structs/csi.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/csi_test.go b/nomad/structs/csi_test.go index c9ffab948..f67543915 100644 --- a/nomad/structs/csi_test.go +++ b/nomad/structs/csi_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/devices.go b/nomad/structs/devices.go index 4d84f7d16..a2ead93a1 100644 --- a/nomad/structs/devices.go +++ b/nomad/structs/devices.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // DeviceAccounter is used to account for device usage on a node. It can detect diff --git a/nomad/structs/devices_test.go b/nomad/structs/devices_test.go index 3638c3450..1d6f7f496 100644 --- a/nomad/structs/devices_test.go +++ b/nomad/structs/devices_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/diff.go b/nomad/structs/diff.go index 086517faa..1363f5289 100644 --- a/nomad/structs/diff.go +++ b/nomad/structs/diff.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/diff_test.go b/nomad/structs/diff_test.go index 0d25622ac..2b0d67bf3 100644 --- a/nomad/structs/diff_test.go +++ b/nomad/structs/diff_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/encoding.go b/nomad/structs/encoding.go index e8c4c32c0..3ea1500d0 100644 --- a/nomad/structs/encoding.go +++ b/nomad/structs/encoding.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/errors.go b/nomad/structs/errors.go index b46d32505..1d03e3b41 100644 --- a/nomad/structs/errors.go +++ b/nomad/structs/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/errors_test.go b/nomad/structs/errors_test.go index 0fb67753d..f6132d601 100644 --- a/nomad/structs/errors_test.go +++ b/nomad/structs/errors_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/eval.go b/nomad/structs/eval.go index a690ae304..35a9ac72f 100644 --- a/nomad/structs/eval.go +++ b/nomad/structs/eval.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs const ( diff --git a/nomad/structs/event.go b/nomad/structs/event.go index 649e0795b..07b4e394f 100644 --- a/nomad/structs/event.go +++ b/nomad/structs/event.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // EventStreamRequest is used to stream events from a servers EventBroker diff --git a/nomad/structs/extensions.go b/nomad/structs/extensions.go index 19d287aa2..65b822946 100644 --- a/nomad/structs/extensions.go +++ b/nomad/structs/extensions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/funcs.go b/nomad/structs/funcs.go index 9e497925a..77e1902d0 100644 --- a/nomad/structs/funcs.go +++ b/nomad/structs/funcs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/funcs_test.go b/nomad/structs/funcs_test.go index a1a612edd..b1d31a72b 100644 --- a/nomad/structs/funcs_test.go +++ b/nomad/structs/funcs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/generate.sh b/nomad/structs/generate.sh index 8e253fd92..d59405594 100755 --- a/nomad/structs/generate.sh +++ b/nomad/structs/generate.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e FILES="$(ls ./*.go | grep -v -e _test.go -e .generated.go | tr '\n' ' ')" diff --git a/nomad/structs/handlers.go b/nomad/structs/handlers.go index 5ef0a9689..c3edd63a8 100644 --- a/nomad/structs/handlers.go +++ b/nomad/structs/handlers.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/job.go b/nomad/structs/job.go index e1950d48c..1c3ab467e 100644 --- a/nomad/structs/job.go +++ b/nomad/structs/job.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/job_test.go b/nomad/structs/job_test.go index 3d14f5324..1d617bcf8 100644 --- a/nomad/structs/job_test.go +++ b/nomad/structs/job_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/keyring.go b/nomad/structs/keyring.go index cceb234cf..5f41dad2d 100644 --- a/nomad/structs/keyring.go +++ b/nomad/structs/keyring.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/network.go b/nomad/structs/network.go index 254071df6..f1cdf774d 100644 --- a/nomad/structs/network.go +++ b/nomad/structs/network.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/network_test.go b/nomad/structs/network_test.go index 1ce721bed..071e1028c 100644 --- a/nomad/structs/network_test.go +++ b/nomad/structs/network_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/node.go b/nomad/structs/node.go index f025335ec..ec5c68bfe 100644 --- a/nomad/structs/node.go +++ b/nomad/structs/node.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/node_class.go b/nomad/structs/node_class.go index 22613f850..8dc431e28 100644 --- a/nomad/structs/node_class.go +++ b/nomad/structs/node_class.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/node_class_test.go b/nomad/structs/node_class_test.go index 3975f0038..2e3759165 100644 --- a/nomad/structs/node_class_test.go +++ b/nomad/structs/node_class_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/node_test.go b/nomad/structs/node_test.go index efd08c0e3..70995bffc 100644 --- a/nomad/structs/node_test.go +++ b/nomad/structs/node_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/operator.go b/nomad/structs/operator.go index 667890eea..a14e4ccaf 100644 --- a/nomad/structs/operator.go +++ b/nomad/structs/operator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/search.go b/nomad/structs/search.go index 699639f0c..8027fbc6c 100644 --- a/nomad/structs/search.go +++ b/nomad/structs/search.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // Context defines the scope in which a search for Nomad object operates, and diff --git a/nomad/structs/service_identities.go b/nomad/structs/service_identities.go index 29e249c8b..88013916e 100644 --- a/nomad/structs/service_identities.go +++ b/nomad/structs/service_identities.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import "errors" diff --git a/nomad/structs/service_registration.go b/nomad/structs/service_registration.go index 585a37dcb..7d4fe4c92 100644 --- a/nomad/structs/service_registration.go +++ b/nomad/structs/service_registration.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/service_registration_test.go b/nomad/structs/service_registration_test.go index 11ee97023..47afee8f8 100644 --- a/nomad/structs/service_registration_test.go +++ b/nomad/structs/service_registration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/services.go b/nomad/structs/services.go index 3bbbdb112..275c00911 100644 --- a/nomad/structs/services.go +++ b/nomad/structs/services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/services_test.go b/nomad/structs/services_test.go index b0e3d1d66..6b5470b51 100644 --- a/nomad/structs/services_test.go +++ b/nomad/structs/services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/streaming_rpc.go b/nomad/structs/streaming_rpc.go index 68573cd88..acd65e027 100644 --- a/nomad/structs/streaming_rpc.go +++ b/nomad/structs/streaming_rpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index 6fcb967ff..2c7cb1f90 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/structs_codegen.go b/nomad/structs/structs_codegen.go index f883d9314..453dee6e2 100644 --- a/nomad/structs/structs_codegen.go +++ b/nomad/structs/structs_codegen.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs //go:generate ./generate.sh diff --git a/nomad/structs/structs_oss.go b/nomad/structs/structs_oss.go index 2d0fcf379..0fcf60949 100644 --- a/nomad/structs/structs_oss.go +++ b/nomad/structs/structs_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/structs/structs_periodic_test.go b/nomad/structs/structs_periodic_test.go index 48bf536ef..0956f5e35 100644 --- a/nomad/structs/structs_periodic_test.go +++ b/nomad/structs/structs_periodic_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/structs_test.go b/nomad/structs/structs_test.go index 187b91464..b210dfe83 100644 --- a/nomad/structs/structs_test.go +++ b/nomad/structs/structs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/testing.go b/nomad/structs/testing.go index c8b829c58..c1b18edb9 100644 --- a/nomad/structs/testing.go +++ b/nomad/structs/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/uuid.go b/nomad/structs/uuid.go index 64beeacd8..bd1bdcfbb 100644 --- a/nomad/structs/uuid.go +++ b/nomad/structs/uuid.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // MaxUUIDsPerWriteRequest is the maximum number of UUIDs that can be included diff --git a/nomad/structs/variables.go b/nomad/structs/variables.go index 2c7b54e25..9239a698b 100644 --- a/nomad/structs/variables.go +++ b/nomad/structs/variables.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/variables_test.go b/nomad/structs/variables_test.go index e1b14290c..2145e50f5 100644 --- a/nomad/structs/variables_test.go +++ b/nomad/structs/variables_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/vault.go b/nomad/structs/vault.go index b234d3d45..547d8d00b 100644 --- a/nomad/structs/vault.go +++ b/nomad/structs/vault.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/volume_test.go b/nomad/structs/volume_test.go index 0c5fc2045..99a2e94bd 100644 --- a/nomad/structs/volume_test.go +++ b/nomad/structs/volume_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/volumes.go b/nomad/structs/volumes.go index 0a5571afb..da110b6a5 100644 --- a/nomad/structs/volumes.go +++ b/nomad/structs/volumes.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/structs/workload_id.go b/nomad/structs/workload_id.go index a5bb332f8..eceedd6f4 100644 --- a/nomad/structs/workload_id.go +++ b/nomad/structs/workload_id.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // WorkloadIdentity is the jobspec block which determines if and how a workload diff --git a/nomad/structs/workload_id_test.go b/nomad/structs/workload_id_test.go index 937f02ccf..1b5d2f23e 100644 --- a/nomad/structs/workload_id_test.go +++ b/nomad/structs/workload_id_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/nomad/system_endpoint.go b/nomad/system_endpoint.go index f4da48643..168696b95 100644 --- a/nomad/system_endpoint.go +++ b/nomad/system_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/system_endpoint_test.go b/nomad/system_endpoint_test.go index d0651a121..5691ce723 100644 --- a/nomad/system_endpoint_test.go +++ b/nomad/system_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/testing.go b/nomad/testing.go index de933f271..97ee564b4 100644 --- a/nomad/testing.go +++ b/nomad/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/testing_oss.go b/nomad/testing_oss.go index 2db273d7b..33cd2992f 100644 --- a/nomad/testing_oss.go +++ b/nomad/testing_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/nomad/timetable.go b/nomad/timetable.go index 36076ce4a..06d80d06f 100644 --- a/nomad/timetable.go +++ b/nomad/timetable.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/timetable_test.go b/nomad/timetable_test.go index eeacd08f0..0e50e58b4 100644 --- a/nomad/timetable_test.go +++ b/nomad/timetable_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/util.go b/nomad/util.go index 4400159b2..1365da6b4 100644 --- a/nomad/util.go +++ b/nomad/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/util_test.go b/nomad/util_test.go index dec9051b9..75f89df63 100644 --- a/nomad/util_test.go +++ b/nomad/util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/variables_endpoint.go b/nomad/variables_endpoint.go index 193419408..572fec976 100644 --- a/nomad/variables_endpoint.go +++ b/nomad/variables_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/variables_endpoint_test.go b/nomad/variables_endpoint_test.go index 15d45d822..14f168795 100644 --- a/nomad/variables_endpoint_test.go +++ b/nomad/variables_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/vault.go b/nomad/vault.go index 9f2307d00..d32777b18 100644 --- a/nomad/vault.go +++ b/nomad/vault.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/vault_test.go b/nomad/vault_test.go index e7f262a2a..1ce9cf789 100644 --- a/nomad/vault_test.go +++ b/nomad/vault_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/vault_testing.go b/nomad/vault_testing.go index b81c0f197..6bda5a4f2 100644 --- a/nomad/vault_testing.go +++ b/nomad/vault_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/volumewatcher/interfaces.go b/nomad/volumewatcher/interfaces.go index 44948bf4f..b735b75fa 100644 --- a/nomad/volumewatcher/interfaces.go +++ b/nomad/volumewatcher/interfaces.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package volumewatcher import ( diff --git a/nomad/volumewatcher/interfaces_test.go b/nomad/volumewatcher/interfaces_test.go index 93bf14d54..660ba3bce 100644 --- a/nomad/volumewatcher/interfaces_test.go +++ b/nomad/volumewatcher/interfaces_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package volumewatcher import ( diff --git a/nomad/volumewatcher/volume_watcher.go b/nomad/volumewatcher/volume_watcher.go index f0153e3a9..fedf533ae 100644 --- a/nomad/volumewatcher/volume_watcher.go +++ b/nomad/volumewatcher/volume_watcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package volumewatcher import ( diff --git a/nomad/volumewatcher/volume_watcher_test.go b/nomad/volumewatcher/volume_watcher_test.go index 5c6b39c8d..ae5dc198d 100644 --- a/nomad/volumewatcher/volume_watcher_test.go +++ b/nomad/volumewatcher/volume_watcher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package volumewatcher import ( diff --git a/nomad/volumewatcher/volumes_watcher.go b/nomad/volumewatcher/volumes_watcher.go index 7f95ed659..687f56ec8 100644 --- a/nomad/volumewatcher/volumes_watcher.go +++ b/nomad/volumewatcher/volumes_watcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package volumewatcher import ( diff --git a/nomad/volumewatcher/volumes_watcher_test.go b/nomad/volumewatcher/volumes_watcher_test.go index 6c3a8dbbf..5e5048134 100644 --- a/nomad/volumewatcher/volumes_watcher_test.go +++ b/nomad/volumewatcher/volumes_watcher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package volumewatcher import ( diff --git a/nomad/worker.go b/nomad/worker.go index 8a15e0fdd..8caf93d70 100644 --- a/nomad/worker.go +++ b/nomad/worker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/nomad/worker_test.go b/nomad/worker_test.go index ee9c3ae27..e85d6c684 100644 --- a/nomad/worker_test.go +++ b/nomad/worker_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package nomad import ( diff --git a/plugins/base/base.go b/plugins/base/base.go index f0939da79..153a8d70b 100644 --- a/plugins/base/base.go +++ b/plugins/base/base.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package base import ( diff --git a/plugins/base/client.go b/plugins/base/client.go index d7c4e9431..bccff4911 100644 --- a/plugins/base/client.go +++ b/plugins/base/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package base import ( diff --git a/plugins/base/plugin.go b/plugins/base/plugin.go index 735dfd43f..b75869944 100644 --- a/plugins/base/plugin.go +++ b/plugins/base/plugin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package base import ( diff --git a/plugins/base/plugin_test.go b/plugins/base/plugin_test.go index 1f7954684..40802f593 100644 --- a/plugins/base/plugin_test.go +++ b/plugins/base/plugin_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package base import ( diff --git a/plugins/base/proto/base.proto b/plugins/base/proto/base.proto index 19ee3dfba..fe63c2925 100644 --- a/plugins/base/proto/base.proto +++ b/plugins/base/proto/base.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; package hashicorp.nomad.plugins.base.proto; option go_package = "proto"; diff --git a/plugins/base/server.go b/plugins/base/server.go index 5bf191698..0d157cfa8 100644 --- a/plugins/base/server.go +++ b/plugins/base/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package base import ( diff --git a/plugins/base/structs/errors.go b/plugins/base/structs/errors.go index 0a5a7a6d6..9f39c274b 100644 --- a/plugins/base/structs/errors.go +++ b/plugins/base/structs/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import "errors" diff --git a/plugins/base/testing.go b/plugins/base/testing.go index f3107a55e..8f9ab687e 100644 --- a/plugins/base/testing.go +++ b/plugins/base/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package base import ( diff --git a/plugins/csi/client.go b/plugins/csi/client.go index 486f72ce3..dac79a321 100644 --- a/plugins/csi/client.go +++ b/plugins/csi/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csi import ( diff --git a/plugins/csi/client_test.go b/plugins/csi/client_test.go index 3d67381a8..3f4dd7fb8 100644 --- a/plugins/csi/client_test.go +++ b/plugins/csi/client_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csi import ( diff --git a/plugins/csi/fake/client.go b/plugins/csi/fake/client.go index 99f13e1ed..74f142d96 100644 --- a/plugins/csi/fake/client.go +++ b/plugins/csi/fake/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // fake is a package that includes fake implementations of public interfaces // from the CSI package for testing. package fake diff --git a/plugins/csi/plugin.go b/plugins/csi/plugin.go index 3ceb2621c..9a9b5f089 100644 --- a/plugins/csi/plugin.go +++ b/plugins/csi/plugin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package csi import ( diff --git a/plugins/csi/testing/client.go b/plugins/csi/testing/client.go index dc180d058..55f515c30 100644 --- a/plugins/csi/testing/client.go +++ b/plugins/csi/testing/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testing import ( diff --git a/plugins/device/client.go b/plugins/device/client.go index 1538b2b80..37f5f8615 100644 --- a/plugins/device/client.go +++ b/plugins/device/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package device import ( diff --git a/plugins/device/cmd/example/cmd/main.go b/plugins/device/cmd/example/cmd/main.go index 6084198fb..a46c1b958 100644 --- a/plugins/device/cmd/example/cmd/main.go +++ b/plugins/device/cmd/example/cmd/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/plugins/device/cmd/example/device.go b/plugins/device/cmd/example/device.go index d6dc1fbbf..5908eed20 100644 --- a/plugins/device/cmd/example/device.go +++ b/plugins/device/cmd/example/device.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package example import ( diff --git a/plugins/device/device.go b/plugins/device/device.go index fec6f258f..eff765264 100644 --- a/plugins/device/device.go +++ b/plugins/device/device.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package device import ( diff --git a/plugins/device/mock.go b/plugins/device/mock.go index 5ac1b4678..c6c654df4 100644 --- a/plugins/device/mock.go +++ b/plugins/device/mock.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package device import ( diff --git a/plugins/device/plugin.go b/plugins/device/plugin.go index 65ec19540..7e1512eb8 100644 --- a/plugins/device/plugin.go +++ b/plugins/device/plugin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package device import ( diff --git a/plugins/device/plugin_test.go b/plugins/device/plugin_test.go index 4961faf87..adb8e8ebd 100644 --- a/plugins/device/plugin_test.go +++ b/plugins/device/plugin_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package device import ( diff --git a/plugins/device/proto/device.proto b/plugins/device/proto/device.proto index ab983bbf9..6ffa9bc4a 100644 --- a/plugins/device/proto/device.proto +++ b/plugins/device/proto/device.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; package hashicorp.nomad.plugins.device; option go_package = "proto"; diff --git a/plugins/device/server.go b/plugins/device/server.go index f0954ee89..d1adcc2c2 100644 --- a/plugins/device/server.go +++ b/plugins/device/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package device import ( diff --git a/plugins/device/util.go b/plugins/device/util.go index 6eb226eaf..917ab7e5f 100644 --- a/plugins/device/util.go +++ b/plugins/device/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package device import ( diff --git a/plugins/device/versions.go b/plugins/device/versions.go index f10057f2c..b91af7811 100644 --- a/plugins/device/versions.go +++ b/plugins/device/versions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package device const ( diff --git a/plugins/drivers/client.go b/plugins/drivers/client.go index 68389a960..60c81ba2e 100644 --- a/plugins/drivers/client.go +++ b/plugins/drivers/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers import ( diff --git a/plugins/drivers/cstructs.go b/plugins/drivers/cstructs.go index 75d3416ef..0f37058bd 100644 --- a/plugins/drivers/cstructs.go +++ b/plugins/drivers/cstructs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers import ( diff --git a/plugins/drivers/driver.go b/plugins/drivers/driver.go index 616e4f780..39c62a644 100644 --- a/plugins/drivers/driver.go +++ b/plugins/drivers/driver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers import ( diff --git a/plugins/drivers/errors.go b/plugins/drivers/errors.go index a89ffc6a9..af6f02c09 100644 --- a/plugins/drivers/errors.go +++ b/plugins/drivers/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers import "fmt" diff --git a/plugins/drivers/execstreaming.go b/plugins/drivers/execstreaming.go index ac0268327..74b89abee 100644 --- a/plugins/drivers/execstreaming.go +++ b/plugins/drivers/execstreaming.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers import ( diff --git a/plugins/drivers/plugin.go b/plugins/drivers/plugin.go index e3e67c35c..d1522688e 100644 --- a/plugins/drivers/plugin.go +++ b/plugins/drivers/plugin.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers import ( diff --git a/plugins/drivers/proto/driver.proto b/plugins/drivers/proto/driver.proto index a7405b6b8..153aa0636 100644 --- a/plugins/drivers/proto/driver.proto +++ b/plugins/drivers/proto/driver.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; package hashicorp.nomad.plugins.drivers.proto; option go_package = "proto"; diff --git a/plugins/drivers/server.go b/plugins/drivers/server.go index fbd89c3cb..cfd247687 100644 --- a/plugins/drivers/server.go +++ b/plugins/drivers/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers import ( diff --git a/plugins/drivers/task_handle.go b/plugins/drivers/task_handle.go index 576281f10..701fb12a8 100644 --- a/plugins/drivers/task_handle.go +++ b/plugins/drivers/task_handle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers import ( diff --git a/plugins/drivers/testutils/dns_testing.go b/plugins/drivers/testutils/dns_testing.go index ccd0f0e29..aa3ddc501 100644 --- a/plugins/drivers/testutils/dns_testing.go +++ b/plugins/drivers/testutils/dns_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutils import ( diff --git a/plugins/drivers/testutils/exec_testing.go b/plugins/drivers/testutils/exec_testing.go index 68f1078d8..1b14ef6c5 100644 --- a/plugins/drivers/testutils/exec_testing.go +++ b/plugins/drivers/testutils/exec_testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutils import ( diff --git a/plugins/drivers/testutils/testing.go b/plugins/drivers/testutils/testing.go index 89ff1496d..ab966ebf4 100644 --- a/plugins/drivers/testutils/testing.go +++ b/plugins/drivers/testutils/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutils import ( diff --git a/plugins/drivers/testutils/testing_test.go b/plugins/drivers/testutils/testing_test.go index cd368a3bd..928063372 100644 --- a/plugins/drivers/testutils/testing_test.go +++ b/plugins/drivers/testutils/testing_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutils import ( diff --git a/plugins/drivers/utils.go b/plugins/drivers/utils.go index 91ccc3874..39b1f0843 100644 --- a/plugins/drivers/utils.go +++ b/plugins/drivers/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers import ( diff --git a/plugins/drivers/utils/utils_unix.go b/plugins/drivers/utils/utils_unix.go index 12e08cc97..c6b93e4a9 100644 --- a/plugins/drivers/utils/utils_unix.go +++ b/plugins/drivers/utils/utils_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris diff --git a/plugins/drivers/utils/utils_windows.go b/plugins/drivers/utils/utils_windows.go index bc322d966..2506e0528 100644 --- a/plugins/drivers/utils/utils_windows.go +++ b/plugins/drivers/utils/utils_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package utils // IsUnixRoot returns true if system is a unix system and the effective uid of user is root diff --git a/plugins/drivers/utils_test.go b/plugins/drivers/utils_test.go index 969390a45..e64bf5102 100644 --- a/plugins/drivers/utils_test.go +++ b/plugins/drivers/utils_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers import ( diff --git a/plugins/drivers/versions.go b/plugins/drivers/versions.go index 4b94d901c..713d16b87 100644 --- a/plugins/drivers/versions.go +++ b/plugins/drivers/versions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package drivers const ( diff --git a/plugins/serve.go b/plugins/serve.go index ea2a32685..d918ea5f3 100644 --- a/plugins/serve.go +++ b/plugins/serve.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package plugins import ( diff --git a/plugins/shared/cmd/launcher/command/device.go b/plugins/shared/cmd/launcher/command/device.go index b93a844ca..1d204158a 100644 --- a/plugins/shared/cmd/launcher/command/device.go +++ b/plugins/shared/cmd/launcher/command/device.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/plugins/shared/cmd/launcher/command/meta.go b/plugins/shared/cmd/launcher/command/meta.go index 2d9c66292..2ac1b4266 100644 --- a/plugins/shared/cmd/launcher/command/meta.go +++ b/plugins/shared/cmd/launcher/command/meta.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package command import ( diff --git a/plugins/shared/cmd/launcher/main.go b/plugins/shared/cmd/launcher/main.go index 1011356e2..f6ed65f11 100644 --- a/plugins/shared/cmd/launcher/main.go +++ b/plugins/shared/cmd/launcher/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/plugins/shared/hclspec/hcl_spec.proto b/plugins/shared/hclspec/hcl_spec.proto index 39a96da07..36dce0742 100644 --- a/plugins/shared/hclspec/hcl_spec.proto +++ b/plugins/shared/hclspec/hcl_spec.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; option go_package = "hclspec"; diff --git a/plugins/shared/hclspec/spec.go b/plugins/shared/hclspec/spec.go index 87ceab1aa..379da4b85 100644 --- a/plugins/shared/hclspec/spec.go +++ b/plugins/shared/hclspec/spec.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hclspec // ObjectSpec wraps the object and returns a spec. diff --git a/plugins/shared/structs/attribute.go b/plugins/shared/structs/attribute.go index 06fb6a5bd..f277113de 100644 --- a/plugins/shared/structs/attribute.go +++ b/plugins/shared/structs/attribute.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/plugins/shared/structs/attribute_test.go b/plugins/shared/structs/attribute_test.go index 70e1cf473..22a342056 100644 --- a/plugins/shared/structs/attribute_test.go +++ b/plugins/shared/structs/attribute_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/plugins/shared/structs/plugin_reattach_config.go b/plugins/shared/structs/plugin_reattach_config.go index efac22e80..2c05589b8 100644 --- a/plugins/shared/structs/plugin_reattach_config.go +++ b/plugins/shared/structs/plugin_reattach_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/plugins/shared/structs/proto/attribute.proto b/plugins/shared/structs/proto/attribute.proto index 4df716390..41b3def4a 100644 --- a/plugins/shared/structs/proto/attribute.proto +++ b/plugins/shared/structs/proto/attribute.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; package hashicorp.nomad.plugins.shared.structs; option go_package = "proto"; diff --git a/plugins/shared/structs/proto/recoverable_error.proto b/plugins/shared/structs/proto/recoverable_error.proto index abd4f6bb4..e1b1f4351 100644 --- a/plugins/shared/structs/proto/recoverable_error.proto +++ b/plugins/shared/structs/proto/recoverable_error.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; package hashicorp.nomad.plugins.shared.structs; option go_package = "proto"; diff --git a/plugins/shared/structs/proto/stats.proto b/plugins/shared/structs/proto/stats.proto index 76c808b62..840e2ee5e 100644 --- a/plugins/shared/structs/proto/stats.proto +++ b/plugins/shared/structs/proto/stats.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; package hashicorp.nomad.plugins.shared.structs; option go_package = "proto"; diff --git a/plugins/shared/structs/stats.go b/plugins/shared/structs/stats.go index 5ebc778f7..bed7e4183 100644 --- a/plugins/shared/structs/stats.go +++ b/plugins/shared/structs/stats.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // StatObject is a collection of statistics either exposed at the top diff --git a/plugins/shared/structs/units.go b/plugins/shared/structs/units.go index 4310b8443..7fae83edf 100644 --- a/plugins/shared/structs/units.go +++ b/plugins/shared/structs/units.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import "sort" diff --git a/plugins/shared/structs/util.go b/plugins/shared/structs/util.go index 0e3500a43..8c9db4ec7 100644 --- a/plugins/shared/structs/util.go +++ b/plugins/shared/structs/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/scheduler/annotate.go b/scheduler/annotate.go index 4ca41fad9..f6bea34eb 100644 --- a/scheduler/annotate.go +++ b/scheduler/annotate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/annotate_test.go b/scheduler/annotate_test.go index 9f651fc70..dd680f7a4 100644 --- a/scheduler/annotate_test.go +++ b/scheduler/annotate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/benchmarks/benchmarks_test.go b/scheduler/benchmarks/benchmarks_test.go index c694141f0..664d1da3c 100644 --- a/scheduler/benchmarks/benchmarks_test.go +++ b/scheduler/benchmarks/benchmarks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package benchmarks import ( diff --git a/scheduler/benchmarks/helpers_test.go b/scheduler/benchmarks/helpers_test.go index dd23deec9..5e3d069db 100644 --- a/scheduler/benchmarks/helpers_test.go +++ b/scheduler/benchmarks/helpers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package benchmarks // Test helper functions for running scheduling tests and benchmarks diff --git a/scheduler/context.go b/scheduler/context.go index cb2404336..8dce67352 100644 --- a/scheduler/context.go +++ b/scheduler/context.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/context_test.go b/scheduler/context_test.go index d5a503b51..b38d4f3cc 100644 --- a/scheduler/context_test.go +++ b/scheduler/context_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/device.go b/scheduler/device.go index b26168d50..0398ba277 100644 --- a/scheduler/device.go +++ b/scheduler/device.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/device_test.go b/scheduler/device_test.go index 7bf6319bc..a068c3bab 100644 --- a/scheduler/device_test.go +++ b/scheduler/device_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/feasible.go b/scheduler/feasible.go index c3a405885..b0ae969f6 100644 --- a/scheduler/feasible.go +++ b/scheduler/feasible.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/feasible_test.go b/scheduler/feasible_test.go index 8775f85fb..9710c16d0 100644 --- a/scheduler/feasible_test.go +++ b/scheduler/feasible_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/generic_sched.go b/scheduler/generic_sched.go index 2ff2cb6ee..0bfc844c9 100644 --- a/scheduler/generic_sched.go +++ b/scheduler/generic_sched.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/generic_sched_test.go b/scheduler/generic_sched_test.go index 6be2d56c1..b9b73ac5a 100644 --- a/scheduler/generic_sched_test.go +++ b/scheduler/generic_sched_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/preemption.go b/scheduler/preemption.go index ee524838d..380751e07 100644 --- a/scheduler/preemption.go +++ b/scheduler/preemption.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/preemption_test.go b/scheduler/preemption_test.go index 9179405ba..838b453b6 100644 --- a/scheduler/preemption_test.go +++ b/scheduler/preemption_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/propertyset.go b/scheduler/propertyset.go index 5d726acdf..27a9a0e4d 100644 --- a/scheduler/propertyset.go +++ b/scheduler/propertyset.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/rank.go b/scheduler/rank.go index eadb465d8..767e16a32 100644 --- a/scheduler/rank.go +++ b/scheduler/rank.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/rank_test.go b/scheduler/rank_test.go index d5a0276f2..00005cc75 100644 --- a/scheduler/rank_test.go +++ b/scheduler/rank_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/reconcile.go b/scheduler/reconcile.go index 54b434eec..6d2e34634 100644 --- a/scheduler/reconcile.go +++ b/scheduler/reconcile.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler // The reconciler is the first stage in the scheduler for service and batch diff --git a/scheduler/reconcile_test.go b/scheduler/reconcile_test.go index b8494558c..b1c92e88c 100644 --- a/scheduler/reconcile_test.go +++ b/scheduler/reconcile_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/reconcile_util.go b/scheduler/reconcile_util.go index c080481b0..c908cfa83 100644 --- a/scheduler/reconcile_util.go +++ b/scheduler/reconcile_util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler // The structs and helpers in this file are split out of reconciler.go for code diff --git a/scheduler/reconcile_util_test.go b/scheduler/reconcile_util_test.go index 3f50bcb02..d6d60b9d5 100644 --- a/scheduler/reconcile_util_test.go +++ b/scheduler/reconcile_util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/scheduler.go b/scheduler/scheduler.go index 7feb058e5..8c06a0931 100644 --- a/scheduler/scheduler.go +++ b/scheduler/scheduler.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/scheduler_oss.go b/scheduler/scheduler_oss.go index a6062f2a1..8ef639d4e 100644 --- a/scheduler/scheduler_oss.go +++ b/scheduler/scheduler_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/scheduler/scheduler_sysbatch_test.go b/scheduler/scheduler_sysbatch_test.go index 49ddbfc57..9983a5d38 100644 --- a/scheduler/scheduler_sysbatch_test.go +++ b/scheduler/scheduler_sysbatch_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/scheduler_system.go b/scheduler/scheduler_system.go index 5deaccd81..3fd367e29 100644 --- a/scheduler/scheduler_system.go +++ b/scheduler/scheduler_system.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/scheduler_system_test.go b/scheduler/scheduler_system_test.go index 40f83ceb9..0d648351b 100644 --- a/scheduler/scheduler_system_test.go +++ b/scheduler/scheduler_system_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/select.go b/scheduler/select.go index 3d9aec924..c4fb672ef 100644 --- a/scheduler/select.go +++ b/scheduler/select.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler // LimitIterator is a RankIterator used to limit the number of options diff --git a/scheduler/select_test.go b/scheduler/select_test.go index b553882a6..7713c14fe 100644 --- a/scheduler/select_test.go +++ b/scheduler/select_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/spread.go b/scheduler/spread.go index 5bc50b970..5dbb3d0aa 100644 --- a/scheduler/spread.go +++ b/scheduler/spread.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/spread_test.go b/scheduler/spread_test.go index 87c4b8aee..c1dd936ea 100644 --- a/scheduler/spread_test.go +++ b/scheduler/spread_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/stack.go b/scheduler/stack.go index dbade8531..3691c04dd 100644 --- a/scheduler/stack.go +++ b/scheduler/stack.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/stack_oss.go b/scheduler/stack_oss.go index 3bc628b10..30b6254e2 100644 --- a/scheduler/stack_oss.go +++ b/scheduler/stack_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !ent // +build !ent diff --git a/scheduler/stack_test.go b/scheduler/stack_test.go index 458f27f36..6f92d3182 100644 --- a/scheduler/stack_test.go +++ b/scheduler/stack_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/system_util.go b/scheduler/system_util.go index 6c6248d5c..a280df813 100644 --- a/scheduler/system_util.go +++ b/scheduler/system_util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler // The structs and helpers in this file are split out of scheduler_system.go and diff --git a/scheduler/system_util_test.go b/scheduler/system_util_test.go index 9bc529859..aa087ed52 100644 --- a/scheduler/system_util_test.go +++ b/scheduler/system_util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/testing.go b/scheduler/testing.go index aba160fb9..bd62f8a2f 100644 --- a/scheduler/testing.go +++ b/scheduler/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/util.go b/scheduler/util.go index d885a300d..2fc32aa84 100644 --- a/scheduler/util.go +++ b/scheduler/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scheduler/util_test.go b/scheduler/util_test.go index dc05f7ee8..37fbc140d 100644 --- a/scheduler/util_test.go +++ b/scheduler/util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scheduler import ( diff --git a/scripts/dist.sh b/scripts/dist.sh index cf09158cc..127dc02d6 100755 --- a/scripts/dist.sh +++ b/scripts/dist.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e # Get the version from the command line diff --git a/scripts/example_weave.bash b/scripts/example_weave.bash index 13893e22d..836dcdb1d 100755 --- a/scripts/example_weave.bash +++ b/scripts/example_weave.bash @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + if [[ "$USER" != "vagrant" ]]; then echo "WARNING: This script is intended to be run from Nomad's Vagrant" read -rsp $'Press any key to continue anyway...\n' -n1 diff --git a/scripts/linux-priv-cni.sh b/scripts/linux-priv-cni.sh index 1c6ea3085..716361207 100755 --- a/scripts/linux-priv-cni.sh +++ b/scripts/linux-priv-cni.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -o errexit diff --git a/scripts/linux-priv-config.sh b/scripts/linux-priv-config.sh index 40f84607d..7e13c941d 100755 --- a/scripts/linux-priv-config.sh +++ b/scripts/linux-priv-config.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + export DEBIAN_FRONTEND=noninteractive diff --git a/scripts/linux-priv-consul.sh b/scripts/linux-priv-consul.sh index c36a7ebd0..9c146c432 100755 --- a/scripts/linux-priv-consul.sh +++ b/scripts/linux-priv-consul.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -o errexit diff --git a/scripts/linux-priv-dev.sh b/scripts/linux-priv-dev.sh index b8e28c047..761fbb483 100755 --- a/scripts/linux-priv-dev.sh +++ b/scripts/linux-priv-dev.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Install Development utilities apt-get install -y \ diff --git a/scripts/linux-priv-docker.sh b/scripts/linux-priv-docker.sh index edfb7039b..00a57fe69 100755 --- a/scripts/linux-priv-docker.sh +++ b/scripts/linux-priv-docker.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Source: https://docs.docker.com/engine/install/ubuntu/ diff --git a/scripts/linux-priv-go.sh b/scripts/linux-priv-go.sh index 5e855dbee..3eb322f11 100755 --- a/scripts/linux-priv-go.sh +++ b/scripts/linux-priv-go.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -o errexit diff --git a/scripts/linux-priv-vault.sh b/scripts/linux-priv-vault.sh index 41274d067..ea81a3caa 100755 --- a/scripts/linux-priv-vault.sh +++ b/scripts/linux-priv-vault.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -o errexit diff --git a/scripts/release/Dockerfile b/scripts/release/Dockerfile index 962ece415..63703fea4 100644 --- a/scripts/release/Dockerfile +++ b/scripts/release/Dockerfile @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Dockerfile for building nomad binaries # that mimics Vagrant environment as far as required # for building the scripts and running provision scripts diff --git a/scripts/screenshots/Dockerfile b/scripts/screenshots/Dockerfile index c17da3f36..5e04403d1 100644 --- a/scripts/screenshots/Dockerfile +++ b/scripts/screenshots/Dockerfile @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + FROM buildkite/puppeteer:v1.15.0 COPY src . diff --git a/scripts/screenshots/src/index.js b/scripts/screenshots/src/index.js index 9e4ddd401..9352b2a21 100644 --- a/scripts/screenshots/src/index.js +++ b/scripts/screenshots/src/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + const puppeteer = require("puppeteer"); const { capture, diff --git a/scripts/screenshots/src/utils.js b/scripts/screenshots/src/utils.js index fe448ecaf..7d9df47db 100644 --- a/scripts/screenshots/src/utils.js +++ b/scripts/screenshots/src/utils.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + async function error(browser, message = "Something went wrong.") { console.error(message); await browser.close(); diff --git a/scripts/update_golang_version.sh b/scripts/update_golang_version.sh index 16aa0d772..2137dbcfe 100755 --- a/scripts/update_golang_version.sh +++ b/scripts/update_golang_version.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -euo pipefail diff --git a/scripts/vagrant-freebsd-priv-config.sh b/scripts/vagrant-freebsd-priv-config.sh index 6288a806d..0fe322fb6 100755 --- a/scripts/vagrant-freebsd-priv-config.sh +++ b/scripts/vagrant-freebsd-priv-config.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + chown vagrant:wheel \ /opt/gopath \ diff --git a/scripts/vagrant-freebsd-unpriv-bootstrap.sh b/scripts/vagrant-freebsd-unpriv-bootstrap.sh index 96e0d0471..cf17199d4 100755 --- a/scripts/vagrant-freebsd-unpriv-bootstrap.sh +++ b/scripts/vagrant-freebsd-unpriv-bootstrap.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + export GOPATH=/opt/gopath diff --git a/scripts/vagrant-linux-priv-buf.sh b/scripts/vagrant-linux-priv-buf.sh index 281df77e5..238000b23 100755 --- a/scripts/vagrant-linux-priv-buf.sh +++ b/scripts/vagrant-linux-priv-buf.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -o errexit diff --git a/scripts/vagrant-linux-priv-zeroconf.sh b/scripts/vagrant-linux-priv-zeroconf.sh index 05191c04d..1daeab849 100755 --- a/scripts/vagrant-linux-priv-zeroconf.sh +++ b/scripts/vagrant-linux-priv-zeroconf.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -o errexit diff --git a/scripts/vagrant-linux-unpriv-bootstrap.sh b/scripts/vagrant-linux-unpriv-bootstrap.sh index d60176d3c..a4dc2d094 100755 --- a/scripts/vagrant-linux-unpriv-bootstrap.sh +++ b/scripts/vagrant-linux-unpriv-bootstrap.sh @@ -1,3 +1,6 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + cd /opt/gopath/src/github.com/hashicorp/nomad && make bootstrap diff --git a/scripts/vagrant-linux-unpriv-ui.sh b/scripts/vagrant-linux-unpriv-ui.sh index ba39d136c..8201048fa 100755 --- a/scripts/vagrant-linux-unpriv-ui.sh +++ b/scripts/vagrant-linux-unpriv-ui.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + export NODE_VERSION=14.19.2 diff --git a/scripts/version.sh b/scripts/version.sh index 0fe92e1dd..f5f6e0535 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + version_file=$1 version_metadata_file=$2 diff --git a/terraform/aws/env/us-east/main.tf b/terraform/aws/env/us-east/main.tf index c0ff3cfc3..209b72143 100644 --- a/terraform/aws/env/us-east/main.tf +++ b/terraform/aws/env/us-east/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + provider "aws" { region = var.region } diff --git a/terraform/aws/env/us-east/outputs.tf b/terraform/aws/env/us-east/outputs.tf index 2fb95065a..54109777f 100644 --- a/terraform/aws/env/us-east/outputs.tf +++ b/terraform/aws/env/us-east/outputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + output "IP_Addresses" { value = < + + diff --git a/terraform/shared/config/nomad.hcl b/terraform/shared/config/nomad.hcl index 25a3ce25e..9bd90f44f 100644 --- a/terraform/shared/config/nomad.hcl +++ b/terraform/shared/config/nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + data_dir = "/opt/nomad/data" bind_addr = "0.0.0.0" diff --git a/terraform/shared/config/nomad_client.hcl b/terraform/shared/config/nomad_client.hcl index 249071dd8..5a6e9cfd4 100644 --- a/terraform/shared/config/nomad_client.hcl +++ b/terraform/shared/config/nomad_client.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + data_dir = "/opt/nomad/data" bind_addr = "0.0.0.0" diff --git a/terraform/shared/config/vault.hcl b/terraform/shared/config/vault.hcl index 9e9ab14d0..45ed946b3 100644 --- a/terraform/shared/config/vault.hcl +++ b/terraform/shared/config/vault.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + ui = true backend "consul" { diff --git a/terraform/shared/scripts/client.sh b/terraform/shared/scripts/client.sh index 3e6841bd9..9f432ab44 100644 --- a/terraform/shared/scripts/client.sh +++ b/terraform/shared/scripts/client.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e diff --git a/terraform/shared/scripts/server.sh b/terraform/shared/scripts/server.sh index 72f45e446..272945601 100644 --- a/terraform/shared/scripts/server.sh +++ b/terraform/shared/scripts/server.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e diff --git a/terraform/shared/scripts/setup.sh b/terraform/shared/scripts/setup.sh index a057d4cd6..b9841cc85 100644 --- a/terraform/shared/scripts/setup.sh +++ b/terraform/shared/scripts/setup.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e diff --git a/testutil/responsewriter.go b/testutil/responsewriter.go index 20bb38bb6..23b10e43b 100644 --- a/testutil/responsewriter.go +++ b/testutil/responsewriter.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/testutil/server.go b/testutil/server.go index ca0abdb92..4aa621d99 100644 --- a/testutil/server.go +++ b/testutil/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil // TestServer is a test helper. It uses a fork/exec model to create diff --git a/testutil/tls.go b/testutil/tls.go index b5fa37acc..2d8f35b3e 100644 --- a/testutil/tls.go +++ b/testutil/tls.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/testutil/vault.go b/testutil/vault.go index ccc8b15cd..de48f8928 100644 --- a/testutil/vault.go +++ b/testutil/vault.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/testutil/wait.go b/testutil/wait.go index 6f239b908..143637798 100644 --- a/testutil/wait.go +++ b/testutil/wait.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/testutil/wait_test.go b/testutil/wait_test.go index 686645044..0cf765d76 100644 --- a/testutil/wait_test.go +++ b/testutil/wait_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/tools/buf/buf.gen.yaml b/tools/buf/buf.gen.yaml index 0013f9e88..1dc759b4d 100644 --- a/tools/buf/buf.gen.yaml +++ b/tools/buf/buf.gen.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + version: v1beta1 plugins: diff --git a/tools/buf/buf.yaml b/tools/buf/buf.yaml index 0d93f7f06..4019e334c 100644 --- a/tools/buf/buf.yaml +++ b/tools/buf/buf.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + version: v1beta1 build: roots: diff --git a/tools/cl-entry/main.go b/tools/cl-entry/main.go index cce611003..1a74a204b 100644 --- a/tools/cl-entry/main.go +++ b/tools/cl-entry/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/tools/ec2info/main.go b/tools/ec2info/main.go index aa707735d..3e2bd53eb 100644 --- a/tools/ec2info/main.go +++ b/tools/ec2info/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Command ec2info provides a tool for generating a CPU performance lookup // table indexed by EC2 instance types. // diff --git a/tools/missing/main.go b/tools/missing/main.go index 072bf236d..d2680453d 100644 --- a/tools/missing/main.go +++ b/tools/missing/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/tools/missing/main_test.go b/tools/missing/main_test.go index 63494a410..85ac3cac0 100644 --- a/tools/missing/main_test.go +++ b/tools/missing/main_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/ui/.eslintrc.js b/ui/.eslintrc.js index b59f6e21e..de86347eb 100644 --- a/ui/.eslintrc.js +++ b/ui/.eslintrc.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + 'use strict'; module.exports = { diff --git a/ui/.percy.yml b/ui/.percy.yml index d6958a4bb..2d1a68428 100644 --- a/ui/.percy.yml +++ b/ui/.percy.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + version: 1 snapshot: # Hide high-variability data from Percy snapshots; helps make sure that randomized data doesn't cause a visual diff. diff --git a/ui/.prettierrc.js b/ui/.prettierrc.js index 534e6d35a..cd0cb10db 100644 --- a/ui/.prettierrc.js +++ b/ui/.prettierrc.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + 'use strict'; module.exports = { diff --git a/ui/.storybook/babel.config.js b/ui/.storybook/babel.config.js index b69a0355e..760103475 100644 --- a/ui/.storybook/babel.config.js +++ b/ui/.storybook/babel.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* eslint-env node */ // Inject the named blocks polyfill into the template compiler (and then into the babel plugin) diff --git a/ui/.storybook/main.js b/ui/.storybook/main.js index fd256fc84..082740391 100644 --- a/ui/.storybook/main.js +++ b/ui/.storybook/main.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* eslint-env node */ module.exports = { addons: [ diff --git a/ui/.storybook/preview.js b/ui/.storybook/preview.js index 82c50d189..0f6d10116 100644 --- a/ui/.storybook/preview.js +++ b/ui/.storybook/preview.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { addDecorator, addParameters } from '@storybook/ember'; import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'; import theme from './theme.js'; diff --git a/ui/.storybook/theme.js b/ui/.storybook/theme.js index 92d425093..709a8e3d1 100644 --- a/ui/.storybook/theme.js +++ b/ui/.storybook/theme.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { create } from '@storybook/theming'; // From Bulma diff --git a/ui/.storybook/webpack.config.js b/ui/.storybook/webpack.config.js index 02e11248c..e6492d1b1 100644 --- a/ui/.storybook/webpack.config.js +++ b/ui/.storybook/webpack.config.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + /* eslint-env node */ module.exports = function ({ config }) { config.module.rules.push({ diff --git a/ui/.template-lintrc.js b/ui/.template-lintrc.js index d6284a062..906c66efe 100644 --- a/ui/.template-lintrc.js +++ b/ui/.template-lintrc.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + 'use strict'; module.exports = { diff --git a/ui/.vercel/build.sh b/ui/.vercel/build.sh index 82f9b3c13..f3f37db89 100755 --- a/ui/.vercel/build.sh +++ b/ui/.vercel/build.sh @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + STORYBOOK_LINK=true ember build mkdir -p ui-dist/ui mv dist/* ui-dist/ui/ diff --git a/ui/app/abilities/abstract.js b/ui/app/abilities/abstract.js index d1bccf543..c4cc51683 100644 --- a/ui/app/abilities/abstract.js +++ b/ui/app/abilities/abstract.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { Ability } from 'ember-can'; import { inject as service } from '@ember/service'; import { computed, get } from '@ember/object'; diff --git a/ui/app/abilities/agent.js b/ui/app/abilities/agent.js index 21e65fce3..96213e059 100644 --- a/ui/app/abilities/agent.js +++ b/ui/app/abilities/agent.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import AbstractAbility from './abstract'; import { computed, get } from '@ember/object'; import { or } from '@ember/object/computed'; diff --git a/ui/app/abilities/allocation.js b/ui/app/abilities/allocation.js index ed46d781f..5ccd48d36 100644 --- a/ui/app/abilities/allocation.js +++ b/ui/app/abilities/allocation.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import AbstractAbility from './abstract'; import { computed, get } from '@ember/object'; import { or } from '@ember/object/computed'; diff --git a/ui/app/abilities/client.js b/ui/app/abilities/client.js index cd1fc8ed1..42679f2e0 100644 --- a/ui/app/abilities/client.js +++ b/ui/app/abilities/client.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import AbstractAbility from './abstract'; import { computed, get } from '@ember/object'; import { or } from '@ember/object/computed'; diff --git a/ui/app/abilities/job.js b/ui/app/abilities/job.js index 3dca4dff7..d0a181ea1 100644 --- a/ui/app/abilities/job.js +++ b/ui/app/abilities/job.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import AbstractAbility from './abstract'; import { computed, get } from '@ember/object'; import { or } from '@ember/object/computed'; diff --git a/ui/app/abilities/policy.js b/ui/app/abilities/policy.js index 6ab8144eb..69b61afa3 100644 --- a/ui/app/abilities/policy.js +++ b/ui/app/abilities/policy.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import AbstractAbility from './abstract'; import { alias } from '@ember/object/computed'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/abilities/recommendation.js b/ui/app/abilities/recommendation.js index ce6f03f1d..80b117ebd 100644 --- a/ui/app/abilities/recommendation.js +++ b/ui/app/abilities/recommendation.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import AbstractAbility from './abstract'; import { computed } from '@ember/object'; import { and, or } from '@ember/object/computed'; diff --git a/ui/app/abilities/token.js b/ui/app/abilities/token.js index 0302f107c..cc5203836 100644 --- a/ui/app/abilities/token.js +++ b/ui/app/abilities/token.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import AbstractAbility from './abstract'; import { alias } from '@ember/object/computed'; diff --git a/ui/app/abilities/variable.js b/ui/app/abilities/variable.js index d7a9b415d..c553ef852 100644 --- a/ui/app/abilities/variable.js +++ b/ui/app/abilities/variable.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // @ts-check import { computed, get } from '@ember/object'; import { or } from '@ember/object/computed'; diff --git a/ui/app/adapters/agent.js b/ui/app/adapters/agent.js index bd0331dcb..db016add4 100644 --- a/ui/app/adapters/agent.js +++ b/ui/app/adapters/agent.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import ApplicationAdapter from './application'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/allocation.js b/ui/app/adapters/allocation.js index cbba94096..218447755 100644 --- a/ui/app/adapters/allocation.js +++ b/ui/app/adapters/allocation.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Watchable from './watchable'; import addToPath from 'nomad-ui/utils/add-to-path'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/application.js b/ui/app/adapters/application.js index 1d9f030a6..63f3b14af 100644 --- a/ui/app/adapters/application.js +++ b/ui/app/adapters/application.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { inject as service } from '@ember/service'; import { computed } from '@ember/object'; import { camelize } from '@ember/string'; diff --git a/ui/app/adapters/auth-method.js b/ui/app/adapters/auth-method.js index 586eb51ed..fa3a5da54 100644 --- a/ui/app/adapters/auth-method.js +++ b/ui/app/adapters/auth-method.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // @ts-check import { default as ApplicationAdapter, namespace } from './application'; import { dasherize } from '@ember/string'; diff --git a/ui/app/adapters/deployment.js b/ui/app/adapters/deployment.js index 604ffec50..b9a278648 100644 --- a/ui/app/adapters/deployment.js +++ b/ui/app/adapters/deployment.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Watchable from './watchable'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/evaluation.js b/ui/app/adapters/evaluation.js index d927b71cb..3a8d1a874 100644 --- a/ui/app/adapters/evaluation.js +++ b/ui/app/adapters/evaluation.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import ApplicationAdapter from './application'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/job-scale.js b/ui/app/adapters/job-scale.js index ca134fd67..232f49604 100644 --- a/ui/app/adapters/job-scale.js +++ b/ui/app/adapters/job-scale.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import WatchableNamespaceIDs from './watchable-namespace-ids'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/job-summary.js b/ui/app/adapters/job-summary.js index 805fff764..e1b54d1b6 100644 --- a/ui/app/adapters/job-summary.js +++ b/ui/app/adapters/job-summary.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import WatchableNamespaceIDs from './watchable-namespace-ids'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/job-version.js b/ui/app/adapters/job-version.js index b494a52cd..1e3808f11 100644 --- a/ui/app/adapters/job-version.js +++ b/ui/app/adapters/job-version.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import ApplicationAdapter from './application'; import addToPath from 'nomad-ui/utils/add-to-path'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/job.js b/ui/app/adapters/job.js index d56ce732e..6bb2e8f65 100644 --- a/ui/app/adapters/job.js +++ b/ui/app/adapters/job.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import WatchableNamespaceIDs from './watchable-namespace-ids'; import addToPath from 'nomad-ui/utils/add-to-path'; import { base64EncodeString } from 'nomad-ui/utils/encode'; diff --git a/ui/app/adapters/namespace.js b/ui/app/adapters/namespace.js index b690839d6..9c7dce830 100644 --- a/ui/app/adapters/namespace.js +++ b/ui/app/adapters/namespace.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Watchable from './watchable'; import codesForError from '../utils/codes-for-error'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/node.js b/ui/app/adapters/node.js index 69edd730d..03c658309 100644 --- a/ui/app/adapters/node.js +++ b/ui/app/adapters/node.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Watchable from './watchable'; import addToPath from 'nomad-ui/utils/add-to-path'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/plugin.js b/ui/app/adapters/plugin.js index f78a4b2a6..f6f09e8e0 100644 --- a/ui/app/adapters/plugin.js +++ b/ui/app/adapters/plugin.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Watchable from './watchable'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/policy.js b/ui/app/adapters/policy.js index cef408be3..744ac7516 100644 --- a/ui/app/adapters/policy.js +++ b/ui/app/adapters/policy.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { default as ApplicationAdapter, namespace } from './application'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/recommendation-summary.js b/ui/app/adapters/recommendation-summary.js index 540209d58..1e8393e4c 100644 --- a/ui/app/adapters/recommendation-summary.js +++ b/ui/app/adapters/recommendation-summary.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import ApplicationAdapter from './application'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/service.js b/ui/app/adapters/service.js index 754e840b8..4ffc1bc4c 100644 --- a/ui/app/adapters/service.js +++ b/ui/app/adapters/service.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Watchable from './watchable'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/token.js b/ui/app/adapters/token.js index 9fad9eac4..21becb4f5 100644 --- a/ui/app/adapters/token.js +++ b/ui/app/adapters/token.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { inject as service } from '@ember/service'; import { default as ApplicationAdapter, namespace } from './application'; import OTTExchangeError from '../utils/ott-exchange-error'; diff --git a/ui/app/adapters/variable.js b/ui/app/adapters/variable.js index 329fe71ed..c8131fdb8 100644 --- a/ui/app/adapters/variable.js +++ b/ui/app/adapters/variable.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // @ts-check import ApplicationAdapter from './application'; import AdapterError from '@ember-data/adapter/error'; diff --git a/ui/app/adapters/volume.js b/ui/app/adapters/volume.js index 8b1a9212a..ebbedfbdd 100644 --- a/ui/app/adapters/volume.js +++ b/ui/app/adapters/volume.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import WatchableNamespaceIDs from './watchable-namespace-ids'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/watchable-namespace-ids.js b/ui/app/adapters/watchable-namespace-ids.js index ffee65fcc..59581bb39 100644 --- a/ui/app/adapters/watchable-namespace-ids.js +++ b/ui/app/adapters/watchable-namespace-ids.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { inject as service } from '@ember/service'; import Watchable from './watchable'; import classic from 'ember-classic-decorator'; diff --git a/ui/app/adapters/watchable.js b/ui/app/adapters/watchable.js index da95d8ba1..bf893f057 100644 --- a/ui/app/adapters/watchable.js +++ b/ui/app/adapters/watchable.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { get } from '@ember/object'; import { assign } from '@ember/polyfills'; import { inject as service } from '@ember/service'; diff --git a/ui/app/app.js b/ui/app/app.js index 71dd798ec..4471ee992 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Application from '@ember/application'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; diff --git a/ui/app/breakpoints.js b/ui/app/breakpoints.js index 55288939b..d506c9236 100644 --- a/ui/app/breakpoints.js +++ b/ui/app/breakpoints.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // Breakpoints are meant to match Bulma's breakpoints and any additional custom breakpoints // https://github.com/jgthms/bulma/blob/6ad2e3df0589e5d6ff7a9c03ee1c78a546bedeaf/sass/utilities/initial-variables.sass#L48-L59 // https://github.com/jgthms/bulma/blob/6ad2e3df0589e5d6ff7a9c03ee1c78a546bedeaf/sass/utilities/mixins.sass#L71-L130 diff --git a/ui/app/components/addon-copy-button.js b/ui/app/components/addon-copy-button.js index 56178c181..60e2eed44 100644 --- a/ui/app/components/addon-copy-button.js +++ b/ui/app/components/addon-copy-button.js @@ -1,2 +1,7 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // This lets us use copy-button to wrap ember-cli-clipboard’s component export { default } from 'ember-cli-clipboard/components/copy-button'; diff --git a/ui/app/components/agent-monitor.js b/ui/app/components/agent-monitor.js index 4c511322e..5a6146ab8 100644 --- a/ui/app/components/agent-monitor.js +++ b/ui/app/components/agent-monitor.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import { inject as service } from '@ember/service'; import Component from '@ember/component'; import { computed } from '@ember/object'; diff --git a/ui/app/components/allocation-row.js b/ui/app/components/allocation-row.js index 0a22a2fe2..4169541ca 100644 --- a/ui/app/components/allocation-row.js +++ b/ui/app/components/allocation-row.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Ember from 'ember'; import { inject as service } from '@ember/service'; import Component from '@ember/component'; diff --git a/ui/app/components/allocation-service-sidebar.hbs b/ui/app/components/allocation-service-sidebar.hbs index 26347629a..6773c0163 100644 --- a/ui/app/components/allocation-service-sidebar.hbs +++ b/ui/app/components/allocation-service-sidebar.hbs @@ -1,3 +1,8 @@ +{{! + Copyright (c) HashiCorp, Inc. + SPDX-License-Identifier: MPL-2.0 +}} +