Skip to content

Commit

Permalink
compliance: add headers with fixed copywrite tool (#17353)
Browse files Browse the repository at this point in the history
Closes #17117
  • Loading branch information
shoenig authored May 30, 2023
1 parent 91a434f commit 60e0404
Show file tree
Hide file tree
Showing 59 changed files with 243 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/secret-scanning.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

paths-ignore:
- "website/content/*"
3 changes: 3 additions & 0 deletions api/error_unexpected_response.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package api

import (
Expand Down
3 changes: 3 additions & 0 deletions api/error_unexpected_response_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package api_test

import (
Expand Down
3 changes: 3 additions & 0 deletions client/config/drain.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package config

import (
Expand Down
3 changes: 3 additions & 0 deletions client/drain.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package client

import (
Expand Down
3 changes: 3 additions & 0 deletions client/drain_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package client

import (
Expand Down
3 changes: 3 additions & 0 deletions command/agent/bindata_assetfs.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions command/ui/writer_ui_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package ui

import (
Expand Down
3 changes: 3 additions & 0 deletions demo/csi/nfs/agent.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

data_dir = "/tmp/nomad/data"

server {
Expand Down
3 changes: 3 additions & 0 deletions demo/csi/nfs/jobs/controller-plugin.nomad.hcl
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
3 changes: 3 additions & 0 deletions demo/csi/nfs/jobs/nfs.nomad.hcl
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
3 changes: 3 additions & 0 deletions demo/csi/nfs/jobs/node-plugin.nomad.hcl
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions demo/csi/nfs/jobs/web.nomad.hcl
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
3 changes: 3 additions & 0 deletions demo/csi/nfs/setup.sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions demo/csi/nfs/teardown.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


# Clean up all demo components.

Expand Down
3 changes: 3 additions & 0 deletions demo/csi/nfs/volume.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

id = "csi-nfs"
name = "csi-nfs"
type = "csi"
Expand Down
3 changes: 3 additions & 0 deletions e2e/consul/consul_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package consul

import (
Expand Down
3 changes: 3 additions & 0 deletions e2e/consul/input/alloc_restart.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

job "alloc-restart" {
constraint {
attribute = "${attr.kernel.name}"
Expand Down
3 changes: 3 additions & 0 deletions e2e/jobsubmissions/doc.go
Original file line number Diff line number Diff line change
@@ -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
// HTTP API endpoint and related components.
package jobsubmissions
3 changes: 3 additions & 0 deletions e2e/jobsubmissions/input/huge.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

job "huge" {
type = "batch"

Expand Down
3 changes: 3 additions & 0 deletions e2e/jobsubmissions/input/x.hcl
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
3 changes: 3 additions & 0 deletions e2e/jobsubmissions/input/xyz.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

variable "X" {
type = string
}
Expand Down
3 changes: 3 additions & 0 deletions e2e/jobsubmissions/input/y.hcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0


Y = 700

3 changes: 3 additions & 0 deletions e2e/jobsubmissions/input/z.hcl
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

Z = true

3 changes: 3 additions & 0 deletions e2e/jobsubmissions/jobsubapi_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package jobsubmissions

import (
Expand Down
3 changes: 3 additions & 0 deletions nomad/structs/config/drain.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package config

import "github.com/hashicorp/nomad/helper/pointer"
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/conditional-link-to.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}

{{#if @condition}}
<LinkTo @route={{@route}} @model={{@model}} @query={{this.query}} class={{@class}} aria-label={{@label}}>
{{yield}}
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/conditional-link-to.js
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-editor/alert.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-page/parts/summary-chart.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/allocation-status-block.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}

<div
class="allocation-status-block {{unless this.countToShow "rest-only"}}"
style={{html-safe (concat "width: " @width "px")}}
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/allocation-status-block.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

import Component from '@glimmer/component';

export default class JobStatusAllocationStatusBlockComponent extends Component {
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/allocation-status-row.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}

<div class="allocation-status-row">
{{#if this.showSummaries}}
<div class="alloc-status-summaries"
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/allocation-status-row.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/deployment-history.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}

<div class="deployment-history {{if this.isHidden "hidden"}}">
<header>
<h4 class="title is-5">
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/deployment-history.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/failed-or-lost.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}

<section class="failed-or-lost">
<h4>Replaced Allocations</h4>
<div class="failed-or-lost-links">
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/latest-deployment.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}

<section class="latest-deployment">
<LinkTo @route="jobs.job.deployments" @model={{@job}}>
<h4>
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/latest-deployment.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

import Component from '@glimmer/component';
import { alias } from '@ember/object/computed';

Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/panel.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}

{{#if this.isActivelyDeploying}}
<JobStatus::Panel::Deploying @job={{@job}} @handleError={{@handleError}} />
{{else}}
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/panel.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

// @ts-check
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/panel/deploying.hbs
Original file line number Diff line number Diff line change
@@ -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="boxed-section-head">
<div class="boxed-section-row"
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/panel/deploying.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

// @ts-check
import Component from '@glimmer/component';
import { task } from 'ember-concurrency';
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/panel/steady.hbs
Original file line number Diff line number Diff line change
@@ -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="boxed-section-head">
<h2>Status</h2>
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/panel/steady.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/update-params.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}

<Trigger @onError={{action this.onError}} @do={{this.fetchJobDefinition}} as |trigger|>
{{did-insert trigger.fns.do}}

Expand Down
5 changes: 5 additions & 0 deletions ui/app/components/job-status/update-params.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 5 additions & 0 deletions ui/app/helpers/merge.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

import { helper } from '@ember/component/helper';

function merge(positional) {
Expand Down
5 changes: 5 additions & 0 deletions ui/app/styles/components/job-status-panel.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/

.job-status-panel {
// #region layout
&.steady-state.current-state .boxed-section-body {
Expand Down
5 changes: 5 additions & 0 deletions ui/app/templates/components/job-editor/alert.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
~}}

<div class="job-editor-alerts">
{{#if @data.error}}
<Hds::Alert @type="inline" @color="critical" data-test-error={{@data.error.type}} as |A|>
Expand Down
Loading

0 comments on commit 60e0404

Please sign in to comment.