compliance: add headers with fixed copywrite tool (#17353)

Closes #17117
This commit is contained in:
Seth Hoenig 2023-05-30 09:20:32 -05:00 committed by GitHub
parent cea48b24ee
commit acfdf0f479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
59 changed files with 243 additions and 0 deletions

View File

@ -1,2 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
paths-ignore: paths-ignore:
- "website/content/*" - "website/content/*"

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package api package api
import ( import (

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package api_test package api_test
import ( import (

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package config package config
import ( import (

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package client package client
import ( import (

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package client package client
import ( import (

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Code generated by go-bindata. // Code generated by go-bindata.
// sources: // sources:
// ui/dist/assets/chunk.143.8d29410835f3df0eac0c.js // ui/dist/assets/chunk.143.8d29410835f3df0eac0c.js

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package ui package ui
import ( import (

View File

@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
data_dir = "/tmp/nomad/data" data_dir = "/tmp/nomad/data"
server { server {

View File

@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Controller plugins create and manage CSI volumes. # Controller plugins create and manage CSI volumes.
# This one just creates folders within the NFS mount. # This one just creates folders within the NFS mount.
job "controller" { job "controller" {

View File

@ -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. # A test NFS server that serves a host volume for persistent state.
job "nfs" { job "nfs" {
group "nfs" { group "nfs" {

View File

@ -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. # Node plugins mount the volume on the host to present to other tasks.
job "node" { job "node" {
# node plugins should run anywhere your task might be placed, i.e. ~everywhere # node plugins should run anywhere your task might be placed, i.e. ~everywhere

View File

@ -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. # Serve the contents of our CSI volume with a little web server.
job "web" { job "web" {
group "web" { group "web" {

View File

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Set up all the demo components. # Set up all the demo components.
# This can be run repeatedly as it is fairly idempotent. # This can be run repeatedly as it is fairly idempotent.

View File

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# Clean up all demo components. # Clean up all demo components.

View File

@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
id = "csi-nfs" id = "csi-nfs"
name = "csi-nfs" name = "csi-nfs"
type = "csi" type = "csi"

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package consul package consul
import ( import (

View File

@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
job "alloc-restart" { job "alloc-restart" {
constraint { constraint {
attribute = "${attr.kernel.name}" attribute = "${attr.kernel.name}"

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Package jobsubmissions contains e2e tests related to the /v1/job/<id>/submission // Package jobsubmissions contains e2e tests related to the /v1/job/<id>/submission
// HTTP API endpoint and related components. // HTTP API endpoint and related components.
package jobsubmissions package jobsubmissions

View File

@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
job "huge" { job "huge" {
type = "batch" type = "batch"

View File

@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# This is an HCL comment # This is an HCL comment
X = "my var file x value" X = "my var file x value"

View File

@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "X" { variable "X" {
type = string type = string
} }

View File

@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
Y = 700 Y = 700

View File

@ -1,2 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
Z = true Z = true

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package jobsubmissions package jobsubmissions
import ( import (

View File

@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package config package config
import "github.com/hashicorp/nomad/helper/pointer" import "github.com/hashicorp/nomad/helper/pointer"

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
{{#if @condition}} {{#if @condition}}
<LinkTo @route={{@route}} @model={{@model}} @query={{this.query}} class={{@class}} aria-label={{@label}}> <LinkTo @route={{@route}} @model={{@model}} @query={{this.query}} class={{@class}} aria-label={{@label}}>
{{yield}} {{yield}}

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@glimmer/component'; import Component from '@glimmer/component';
export default class ConditionalLinkToComponent extends Component { export default class ConditionalLinkToComponent extends Component {

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@glimmer/component'; import Component from '@glimmer/component';
import { action } from '@ember/object'; import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking'; import { tracked } from '@glimmer/tracking';

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// @ts-check // @ts-check
import Component from '@glimmer/component'; import Component from '@glimmer/component';
import { action } from '@ember/object'; import { action } from '@ember/object';

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<div <div
class="allocation-status-block {{unless this.countToShow "rest-only"}}" class="allocation-status-block {{unless this.countToShow "rest-only"}}"
style={{html-safe (concat "width: " @width "px")}} style={{html-safe (concat "width: " @width "px")}}

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@glimmer/component'; import Component from '@glimmer/component';
export default class JobStatusAllocationStatusBlockComponent extends Component { export default class JobStatusAllocationStatusBlockComponent extends Component {

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<div class="allocation-status-row"> <div class="allocation-status-row">
{{#if this.showSummaries}} {{#if this.showSummaries}}
<div class="alloc-status-summaries" <div class="alloc-status-summaries"

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// @ts-check // @ts-check
import Component from '@glimmer/component'; import Component from '@glimmer/component';
import { action } from '@ember/object'; import { action } from '@ember/object';

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<div class="deployment-history {{if this.isHidden "hidden"}}"> <div class="deployment-history {{if this.isHidden "hidden"}}">
<header> <header>
<h4 class="title is-5"> <h4 class="title is-5">

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// @ts-check // @ts-check
import Component from '@glimmer/component'; import Component from '@glimmer/component';
import { alias } from '@ember/object/computed'; import { alias } from '@ember/object/computed';

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<section class="failed-or-lost"> <section class="failed-or-lost">
<h4>Replaced Allocations</h4> <h4>Replaced Allocations</h4>
<div class="failed-or-lost-links"> <div class="failed-or-lost-links">

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<section class="latest-deployment"> <section class="latest-deployment">
<LinkTo @route="jobs.job.deployments" @model={{@job}}> <LinkTo @route="jobs.job.deployments" @model={{@job}}>
<h4> <h4>

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@glimmer/component'; import Component from '@glimmer/component';
import { alias } from '@ember/object/computed'; import { alias } from '@ember/object/computed';

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
{{#if this.isActivelyDeploying}} {{#if this.isActivelyDeploying}}
<JobStatus::Panel::Deploying @job={{@job}} @handleError={{@handleError}} /> <JobStatus::Panel::Deploying @job={{@job}} @handleError={{@handleError}} />
{{else}} {{else}}

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// @ts-check // @ts-check
import Component from '@glimmer/component'; import Component from '@glimmer/component';
import { inject as service } from '@ember/service'; import { inject as service } from '@ember/service';

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<div class="job-status-panel boxed-section active-deployment is-info" data-test-job-status-panel> <div class="job-status-panel boxed-section active-deployment is-info" data-test-job-status-panel>
<div class="boxed-section-head"> <div class="boxed-section-head">
<div class="boxed-section-row" <div class="boxed-section-row"

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// @ts-check // @ts-check
import Component from '@glimmer/component'; import Component from '@glimmer/component';
import { task } from 'ember-concurrency'; import { task } from 'ember-concurrency';

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<div class="job-status-panel boxed-section steady-state {{if (eq @statusMode "historical") "historical-state" "current-state"}}" data-test-job-status-panel data-test-status-mode={{@statusMode}}> <div class="job-status-panel boxed-section steady-state {{if (eq @statusMode "historical") "historical-state" "current-state"}}" data-test-job-status-panel data-test-status-mode={{@statusMode}}>
<div class="boxed-section-head"> <div class="boxed-section-head">
<h2>Status</h2> <h2>Status</h2>

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// @ts-check // @ts-check
import Component from '@glimmer/component'; import Component from '@glimmer/component';
import { alias } from '@ember/object/computed'; import { alias } from '@ember/object/computed';

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<Trigger @onError={{action this.onError}} @do={{this.fetchJobDefinition}} as |trigger|> <Trigger @onError={{action this.onError}} @do={{this.fetchJobDefinition}} as |trigger|>
{{did-insert trigger.fns.do}} {{did-insert trigger.fns.do}}

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// @ts-check // @ts-check
import Component from '@glimmer/component'; import Component from '@glimmer/component';
import { action } from '@ember/object'; import { action } from '@ember/object';

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { helper } from '@ember/component/helper'; import { helper } from '@ember/component/helper';
function merge(positional) { function merge(positional) {

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
.job-status-panel { .job-status-panel {
// #region layout // #region layout
&.steady-state.current-state .boxed-section-body { &.steady-state.current-state .boxed-section-body {

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<div class="job-editor-alerts"> <div class="job-editor-alerts">
{{#if @data.error}} {{#if @data.error}}
<Hds::Alert @type="inline" @color="critical" data-test-error={{@data.error.type}} as |A|> <Hds::Alert @type="inline" @color="critical" data-test-error={{@data.error.type}} as |A|>

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<div class="boxed-section"> <div class="boxed-section">
<div class="boxed-section-head"> <div class="boxed-section-head">
Job Definition Job Definition

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<div class="boxed-section"> <div class="boxed-section">
<div class="boxed-section-head"> <div class="boxed-section-head">
Job Definition Job Definition

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
<div class="boxed-section"> <div class="boxed-section">
<div class="boxed-section-head">Job Plan</div> <div class="boxed-section-head">Job Plan</div>
<div class="boxed-section-body is-dark"> <div class="boxed-section-body is-dark">

View File

@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}
{{#if @job.hasChildren}} {{#if @job.hasChildren}}
<ChildrenStatusBar <ChildrenStatusBar
@allocationContainer={{@job.summary}} @allocationContainer={{@job.summary}}

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// @ts-check // @ts-check
/** /**

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// @ts-check // @ts-check
import { module, test } from 'qunit'; import { module, test } from 'qunit';
import { setupApplicationTest } from 'ember-qunit'; import { setupApplicationTest } from 'ember-qunit';

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { module, test } from 'qunit'; import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit'; import { setupRenderingTest } from 'ember-qunit';
import { find, render } from '@ember/test-helpers'; import { find, render } from '@ember/test-helpers';

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { module, test } from 'qunit'; import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit'; import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers'; import { render } from '@ember/test-helpers';

View File

@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
export const JOB_JSON = { export const JOB_JSON = {
Shallow: false, Shallow: false,
CreateRecommendations: true, CreateRecommendations: true,