From afe8468b145a79cca61fec516482a2a064ebd7a3 Mon Sep 17 00:00:00 2001 From: Seth Hoenig Date: Tue, 30 May 2023 13:58:28 +0000 Subject: [PATCH] compliance: add headers with fixed copywrite tool Closes #17117 --- .github/secret-scanning.yml | 3 +++ api/error_unexpected_response.go | 3 +++ api/error_unexpected_response_test.go | 3 +++ client/config/drain.go | 3 +++ client/drain.go | 3 +++ client/drain_test.go | 3 +++ command/agent/bindata_assetfs.go | 3 +++ command/ui/writer_ui_test.go | 3 +++ demo/csi/nfs/agent.hcl | 3 +++ demo/csi/nfs/jobs/controller-plugin.nomad.hcl | 3 +++ demo/csi/nfs/jobs/nfs.nomad.hcl | 3 +++ demo/csi/nfs/jobs/node-plugin.nomad.hcl | 3 +++ demo/csi/nfs/jobs/web.nomad.hcl | 3 +++ demo/csi/nfs/setup.sh | 3 +++ demo/csi/nfs/teardown.sh | 3 +++ demo/csi/nfs/volume.hcl | 3 +++ e2e/consul/consul_test.go | 3 +++ e2e/consul/input/alloc_restart.hcl | 3 +++ e2e/jobsubmissions/doc.go | 3 +++ e2e/jobsubmissions/input/huge.hcl | 3 +++ e2e/jobsubmissions/input/x.hcl | 3 +++ e2e/jobsubmissions/input/xyz.hcl | 3 +++ e2e/jobsubmissions/input/y.hcl | 3 +++ e2e/jobsubmissions/input/z.hcl | 3 +++ e2e/jobsubmissions/jobsubapi_test.go | 3 +++ nomad/structs/config/drain.go | 3 +++ ui/app/components/conditional-link-to.hbs | 5 +++++ ui/app/components/conditional-link-to.js | 5 +++++ ui/app/components/job-editor/alert.js | 5 +++++ ui/app/components/job-page/parts/summary-chart.js | 5 +++++ ui/app/components/job-status/allocation-status-block.hbs | 5 +++++ ui/app/components/job-status/allocation-status-block.js | 5 +++++ ui/app/components/job-status/allocation-status-row.hbs | 5 +++++ ui/app/components/job-status/allocation-status-row.js | 5 +++++ ui/app/components/job-status/deployment-history.hbs | 5 +++++ ui/app/components/job-status/deployment-history.js | 5 +++++ ui/app/components/job-status/failed-or-lost.hbs | 5 +++++ ui/app/components/job-status/latest-deployment.hbs | 5 +++++ ui/app/components/job-status/latest-deployment.js | 5 +++++ ui/app/components/job-status/panel.hbs | 5 +++++ ui/app/components/job-status/panel.js | 5 +++++ ui/app/components/job-status/panel/deploying.hbs | 5 +++++ ui/app/components/job-status/panel/deploying.js | 5 +++++ ui/app/components/job-status/panel/steady.hbs | 5 +++++ ui/app/components/job-status/panel/steady.js | 5 +++++ ui/app/components/job-status/update-params.hbs | 5 +++++ ui/app/components/job-status/update-params.js | 5 +++++ ui/app/helpers/merge.js | 5 +++++ ui/app/styles/components/job-status-panel.scss | 5 +++++ ui/app/templates/components/job-editor/alert.hbs | 5 +++++ ui/app/templates/components/job-editor/edit.hbs | 5 +++++ ui/app/templates/components/job-editor/read.hbs | 5 +++++ ui/app/templates/components/job-editor/review.hbs | 5 +++++ ui/app/templates/components/job-page/parts/summary-chart.hbs | 5 +++++ ui/app/utils/allocation-client-statuses.js | 5 +++++ ui/tests/acceptance/job-status-panel-test.js | 5 +++++ ui/tests/integration/components/job-status-panel-test.js | 5 +++++ .../integration/components/job-status/failed-or-lost-test.js | 5 +++++ ui/tests/utils/generate-raw-json-job.js | 5 +++++ 59 files changed, 243 insertions(+) diff --git a/.github/secret-scanning.yml b/.github/secret-scanning.yml index 6a9449c630e9..37283b7eec0e 100644 --- a/.github/secret-scanning.yml +++ b/.github/secret-scanning.yml @@ -1,2 +1,5 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + paths-ignore: - "website/content/*" diff --git a/api/error_unexpected_response.go b/api/error_unexpected_response.go index 4dc4bc7fba2e..b843fc7ab9ed 100644 --- a/api/error_unexpected_response.go +++ b/api/error_unexpected_response.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api import ( diff --git a/api/error_unexpected_response_test.go b/api/error_unexpected_response_test.go index 8c1d53687665..eb2297b4b058 100644 --- a/api/error_unexpected_response_test.go +++ b/api/error_unexpected_response_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package api_test import ( diff --git a/client/config/drain.go b/client/config/drain.go index 539f5f2dc7f2..0d134ad08332 100644 --- a/client/config/drain.go +++ b/client/config/drain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/client/drain.go b/client/drain.go index 22bc80ceb630..c23d74caa88f 100644 --- a/client/drain.go +++ b/client/drain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/client/drain_test.go b/client/drain_test.go index 2fc81685fd5f..de7637937e17 100644 --- a/client/drain_test.go +++ b/client/drain_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package client import ( diff --git a/command/agent/bindata_assetfs.go b/command/agent/bindata_assetfs.go index ac0275d341b8..b5d550f29777 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.8d29410835f3df0eac0c.js diff --git a/command/ui/writer_ui_test.go b/command/ui/writer_ui_test.go index fc49361290f6..26fbed6ee556 100644 --- a/command/ui/writer_ui_test.go +++ b/command/ui/writer_ui_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ui import ( diff --git a/demo/csi/nfs/agent.hcl b/demo/csi/nfs/agent.hcl index 890f2fa4c044..2245bdc04b97 100644 --- a/demo/csi/nfs/agent.hcl +++ b/demo/csi/nfs/agent.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + data_dir = "/tmp/nomad/data" server { diff --git a/demo/csi/nfs/jobs/controller-plugin.nomad.hcl b/demo/csi/nfs/jobs/controller-plugin.nomad.hcl index cc1f21ecc83b..1bc404211def 100644 --- a/demo/csi/nfs/jobs/controller-plugin.nomad.hcl +++ b/demo/csi/nfs/jobs/controller-plugin.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Controller plugins create and manage CSI volumes. # This one just creates folders within the NFS mount. job "controller" { diff --git a/demo/csi/nfs/jobs/nfs.nomad.hcl b/demo/csi/nfs/jobs/nfs.nomad.hcl index d9c8d5eb6397..21265258793d 100644 --- a/demo/csi/nfs/jobs/nfs.nomad.hcl +++ b/demo/csi/nfs/jobs/nfs.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # A test NFS server that serves a host volume for persistent state. job "nfs" { group "nfs" { diff --git a/demo/csi/nfs/jobs/node-plugin.nomad.hcl b/demo/csi/nfs/jobs/node-plugin.nomad.hcl index f7b9d7953bb1..8cffeb8aaeed 100644 --- a/demo/csi/nfs/jobs/node-plugin.nomad.hcl +++ b/demo/csi/nfs/jobs/node-plugin.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Node plugins mount the volume on the host to present to other tasks. job "node" { # node plugins should run anywhere your task might be placed, i.e. ~everywhere diff --git a/demo/csi/nfs/jobs/web.nomad.hcl b/demo/csi/nfs/jobs/web.nomad.hcl index fe0cca2dc9b3..163815ba8f06 100644 --- a/demo/csi/nfs/jobs/web.nomad.hcl +++ b/demo/csi/nfs/jobs/web.nomad.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Serve the contents of our CSI volume with a little web server. job "web" { group "web" { diff --git a/demo/csi/nfs/setup.sh b/demo/csi/nfs/setup.sh index 5feba5c5188b..c7373cb46cba 100755 --- a/demo/csi/nfs/setup.sh +++ b/demo/csi/nfs/setup.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Set up all the demo components. # This can be run repeatedly as it is fairly idempotent. diff --git a/demo/csi/nfs/teardown.sh b/demo/csi/nfs/teardown.sh index b5b0b58ece0e..d380cbe20601 100755 --- a/demo/csi/nfs/teardown.sh +++ b/demo/csi/nfs/teardown.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Clean up all demo components. diff --git a/demo/csi/nfs/volume.hcl b/demo/csi/nfs/volume.hcl index 3bfc0018376f..5458af5d9ebd 100644 --- a/demo/csi/nfs/volume.hcl +++ b/demo/csi/nfs/volume.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + id = "csi-nfs" name = "csi-nfs" type = "csi" diff --git a/e2e/consul/consul_test.go b/e2e/consul/consul_test.go index 6be7dc28623c..5ae22b609ff1 100644 --- a/e2e/consul/consul_test.go +++ b/e2e/consul/consul_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/e2e/consul/input/alloc_restart.hcl b/e2e/consul/input/alloc_restart.hcl index d2937ab0e14b..0c87493e7e4d 100644 --- a/e2e/consul/input/alloc_restart.hcl +++ b/e2e/consul/input/alloc_restart.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "alloc-restart" { constraint { attribute = "${attr.kernel.name}" diff --git a/e2e/jobsubmissions/doc.go b/e2e/jobsubmissions/doc.go index 90f890c514e1..07d82d0a0429 100644 --- a/e2e/jobsubmissions/doc.go +++ b/e2e/jobsubmissions/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package jobsubmissions contains e2e tests related to the /v1/job//submission // HTTP API endpoint and related components. package jobsubmissions diff --git a/e2e/jobsubmissions/input/huge.hcl b/e2e/jobsubmissions/input/huge.hcl index d84703bec785..7b2124a098ce 100644 --- a/e2e/jobsubmissions/input/huge.hcl +++ b/e2e/jobsubmissions/input/huge.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + job "huge" { type = "batch" diff --git a/e2e/jobsubmissions/input/x.hcl b/e2e/jobsubmissions/input/x.hcl index 19d3aac023d2..5ffbae39b30d 100644 --- a/e2e/jobsubmissions/input/x.hcl +++ b/e2e/jobsubmissions/input/x.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # This is an HCL comment X = "my var file x value" diff --git a/e2e/jobsubmissions/input/xyz.hcl b/e2e/jobsubmissions/input/xyz.hcl index f1da56e745fb..571a144da0ee 100644 --- a/e2e/jobsubmissions/input/xyz.hcl +++ b/e2e/jobsubmissions/input/xyz.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "X" { type = string } diff --git a/e2e/jobsubmissions/input/y.hcl b/e2e/jobsubmissions/input/y.hcl index 1cd5590f5bd8..1de2f03a523a 100644 --- a/e2e/jobsubmissions/input/y.hcl +++ b/e2e/jobsubmissions/input/y.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + Y = 700 diff --git a/e2e/jobsubmissions/input/z.hcl b/e2e/jobsubmissions/input/z.hcl index e81e2d4b7fa1..56de364a7ac2 100644 --- a/e2e/jobsubmissions/input/z.hcl +++ b/e2e/jobsubmissions/input/z.hcl @@ -1,2 +1,5 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + Z = true diff --git a/e2e/jobsubmissions/jobsubapi_test.go b/e2e/jobsubmissions/jobsubapi_test.go index fd8c590077b0..773b196104e7 100644 --- a/e2e/jobsubmissions/jobsubapi_test.go +++ b/e2e/jobsubmissions/jobsubapi_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package jobsubmissions import ( diff --git a/nomad/structs/config/drain.go b/nomad/structs/config/drain.go index 0df9812cec5d..02b596cfe2bc 100644 --- a/nomad/structs/config/drain.go +++ b/nomad/structs/config/drain.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/ui/app/components/conditional-link-to.hbs b/ui/app/components/conditional-link-to.hbs index 00766532da50..0633f66dd68f 100644 --- a/ui/app/components/conditional-link-to.hbs +++ b/ui/app/components/conditional-link-to.hbs @@ -1,3 +1,8 @@ +{{! + Copyright (c) HashiCorp, Inc. + SPDX-License-Identifier: MPL-2.0 +~}} + {{#if @condition}} {{yield}} diff --git a/ui/app/components/conditional-link-to.js b/ui/app/components/conditional-link-to.js index 7dd1d3b31b0d..442e85c65ce7 100644 --- a/ui/app/components/conditional-link-to.js +++ b/ui/app/components/conditional-link-to.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Component from '@glimmer/component'; export default class ConditionalLinkToComponent extends Component { diff --git a/ui/app/components/job-editor/alert.js b/ui/app/components/job-editor/alert.js index 2c89962ca780..4d4c12bba0ff 100644 --- a/ui/app/components/job-editor/alert.js +++ b/ui/app/components/job-editor/alert.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + import Component from '@glimmer/component'; import { action } from '@ember/object'; import { tracked } from '@glimmer/tracking'; diff --git a/ui/app/components/job-page/parts/summary-chart.js b/ui/app/components/job-page/parts/summary-chart.js index 754e1de5fd37..89ec0cab262d 100644 --- a/ui/app/components/job-page/parts/summary-chart.js +++ b/ui/app/components/job-page/parts/summary-chart.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // @ts-check import Component from '@glimmer/component'; import { action } from '@ember/object'; diff --git a/ui/app/components/job-status/allocation-status-block.hbs b/ui/app/components/job-status/allocation-status-block.hbs index 5ff785fc3788..36a4b8c0ece8 100644 --- a/ui/app/components/job-status/allocation-status-block.hbs +++ b/ui/app/components/job-status/allocation-status-block.hbs @@ -1,3 +1,8 @@ +{{! + Copyright (c) HashiCorp, Inc. + SPDX-License-Identifier: MPL-2.0 +~}} +
{{#if this.showSummaries}}

diff --git a/ui/app/components/job-status/deployment-history.js b/ui/app/components/job-status/deployment-history.js index 736efc4fcdb4..47dca491cbdc 100644 --- a/ui/app/components/job-status/deployment-history.js +++ b/ui/app/components/job-status/deployment-history.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // @ts-check import Component from '@glimmer/component'; import { alias } from '@ember/object/computed'; diff --git a/ui/app/components/job-status/failed-or-lost.hbs b/ui/app/components/job-status/failed-or-lost.hbs index 9cfbcd7029e3..0e224e3dbf2f 100644 --- a/ui/app/components/job-status/failed-or-lost.hbs +++ b/ui/app/components/job-status/failed-or-lost.hbs @@ -1,3 +1,8 @@ +{{! + Copyright (c) HashiCorp, Inc. + SPDX-License-Identifier: MPL-2.0 +~}} +

Replaced Allocations