diff --git a/Chart.yaml b/Chart.yaml index f1c86fd..5229e5a 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + apiVersion: v1 name: terraform version: 1.1.2 diff --git a/crds/app.terraform.io_workspaces_crd.yaml b/crds/app.terraform.io_workspaces_crd.yaml index 67e2c74..874ed0a 100644 --- a/crds/app.terraform.io_workspaces_crd.yaml +++ b/crds/app.terraform.io_workspaces_crd.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/example/configmap.yaml b/example/configmap.yaml index 3309aff..103d2bf 100644 --- a/example/configmap.yaml +++ b/example/configmap.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + --- apiVersion: v1 kind: ConfigMap diff --git a/example/greetings/Dockerfile b/example/greetings/Dockerfile index 7423e1e..cd6c3e0 100644 --- a/example/greetings/Dockerfile +++ b/example/greetings/Dockerfile @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + FROM mesosphere/aws-cli COPY message.sh /project/message.sh \ No newline at end of file diff --git a/example/greetings/application.yaml b/example/greetings/application.yaml index eda6c18..13a3139 100644 --- a/example/greetings/application.yaml +++ b/example/greetings/application.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + apiVersion: batch/v1 kind: Job metadata: diff --git a/example/greetings/message.sh b/example/greetings/message.sh index ab7b5c6..cf0ba62 100755 --- a/example/greetings/message.sh +++ b/example/greetings/message.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + set -e export AWS_ACCESS_KEY_ID=$(cat /tmp/secrets/AWS_ACCESS_KEY_ID) diff --git a/example/workspace_git.yaml b/example/workspace_git.yaml index 55ff9fc..eadea0d 100644 --- a/example/workspace_git.yaml +++ b/example/workspace_git.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + --- apiVersion: app.terraform.io/v1alpha1 kind: Workspace diff --git a/example/workspace_random.yml b/example/workspace_random.yml index d15abd0..e27c16d 100644 --- a/example/workspace_random.yml +++ b/example/workspace_random.yml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + --- apiVersion: app.terraform.io/v1alpha1 kind: Workspace diff --git a/example/workspace_registry.yaml b/example/workspace_registry.yaml index 50bf68a..7caa32b 100644 --- a/example/workspace_registry.yaml +++ b/example/workspace_registry.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + --- apiVersion: app.terraform.io/v1alpha1 kind: Workspace diff --git a/example/workspace_remote_agent.yaml b/example/workspace_remote_agent.yaml index caa389b..e93f726 100644 --- a/example/workspace_remote_agent.yaml +++ b/example/workspace_remote_agent.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + apiVersion: app.terraform.io/v1alpha1 kind: Workspace metadata: diff --git a/example/workspace_vcs.yaml b/example/workspace_vcs.yaml index 5c61024..e720119 100644 --- a/example/workspace_vcs.yaml +++ b/example/workspace_vcs.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + apiVersion: app.terraform.io/v1alpha1 kind: Workspace metadata: diff --git a/templates/sync-workspace-deployment.yaml b/templates/sync-workspace-deployment.yaml index 73557a2..067cc7b 100644 --- a/templates/sync-workspace-deployment.yaml +++ b/templates/sync-workspace-deployment.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # The deployment for running the sync-catalog pod {{- if (or (and (ne (.Values.syncWorkspace.enabled | toString) "-") .Values.syncWorkspace.enabled) (and (eq (.Values.syncWorkspace.enabled | toString) "-") .Values.global.enabled)) }} apiVersion: apps/v1 diff --git a/templates/sync-workspace-role.yaml b/templates/sync-workspace-role.yaml index 4a1d770..cd9f8d0 100644 --- a/templates/sync-workspace-role.yaml +++ b/templates/sync-workspace-role.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + {{- $syncEnabled := (or (and (ne (.Values.syncWorkspace.enabled | toString) "-") .Values.syncWorkspace.enabled) (and (eq (.Values.syncWorkspace.enabled | toString) "-") .Values.global.enabled)) }} {{- if $syncEnabled }} apiVersion: rbac.authorization.k8s.io/v1 diff --git a/templates/sync-workspace-rolebinding.yaml b/templates/sync-workspace-rolebinding.yaml index d811b31..7488159 100644 --- a/templates/sync-workspace-rolebinding.yaml +++ b/templates/sync-workspace-rolebinding.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + {{- $syncEnabled := (or (and (ne (.Values.syncWorkspace.enabled | toString) "-") .Values.syncWorkspace.enabled) (and (eq (.Values.syncWorkspace.enabled | toString) "-") .Values.global.enabled)) }} {{- if $syncEnabled }} apiVersion: rbac.authorization.k8s.io/v1 diff --git a/templates/sync-workspace-secret.yaml b/templates/sync-workspace-secret.yaml index 721dfdb..7be0b1b 100644 --- a/templates/sync-workspace-secret.yaml +++ b/templates/sync-workspace-secret.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + {{- if .Values.CACerts }} apiVersion: v1 kind: Secret diff --git a/templates/sync-workspace-serviceaccount.yaml b/templates/sync-workspace-serviceaccount.yaml index 7f309ec..79f3791 100644 --- a/templates/sync-workspace-serviceaccount.yaml +++ b/templates/sync-workspace-serviceaccount.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + {{- if (or (and (ne (.Values.syncWorkspace.enabled | toString) "-") .Values.syncWorkspace.enabled) (and (eq (.Values.syncWorkspace.enabled | toString) "-") .Values.global.enabled)) }} apiVersion: v1 kind: ServiceAccount diff --git a/templates/tests/test-configmap.yaml b/templates/tests/test-configmap.yaml index 7a0c4cc..7a85004 100644 --- a/templates/tests/test-configmap.yaml +++ b/templates/tests/test-configmap.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + {{- if .Values.tests.enabled }} --- apiVersion: v1 diff --git a/templates/tests/test-runner.yaml b/templates/tests/test-runner.yaml index 0272637..5a2648c 100644 --- a/templates/tests/test-runner.yaml +++ b/templates/tests/test-runner.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + {{- if .Values.tests.enabled }} apiVersion: v1 kind: Pod diff --git a/templates/tests/test-workspace.yaml b/templates/tests/test-workspace.yaml index 0a175f5..7bf22d2 100644 --- a/templates/tests/test-workspace.yaml +++ b/templates/tests/test-workspace.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + {{- if .Values.tests.enabled }} --- apiVersion: app.terraform.io/v1alpha1 diff --git a/test/acceptance/_helpers.bash b/test/acceptance/_helpers.bash index 6f3f819..5f0b7b6 100644 --- a/test/acceptance/_helpers.bash +++ b/test/acceptance/_helpers.bash @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # name_prefix returns the prefix of the resources within Kubernetes. name_prefix() { printf "terraform" diff --git a/test/docker/Test.dockerfile b/test/docker/Test.dockerfile index 83b3623..bcd84ff 100644 --- a/test/docker/Test.dockerfile +++ b/test/docker/Test.dockerfile @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # This Dockerfile installs all the dependencies necessary to run the unit and # acceptance tests. This image also contains gcloud so you can run tests # against a GKE cluster easily. diff --git a/test/module/random.tf b/test/module/random.tf index 5c23b32..645ffde 100644 --- a/test/module/random.tf +++ b/test/module/random.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "hellos" { type = object({ hello = string diff --git a/test/unit/_helpers.bash b/test/unit/_helpers.bash index 530b66e..5f8a94d 100644 --- a/test/unit/_helpers.bash +++ b/test/unit/_helpers.bash @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # chart_dir returns the directory for the chart chart_dir() { echo ${BATS_TEST_DIRNAME}/../.. diff --git a/values.dev.yaml b/values.dev.yaml index e31bef3..e6b2ff2 100644 --- a/values.dev.yaml +++ b/values.dev.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Parameters used for testing operator in development # run with `helm install -f values.yml -f values.dev.yaml .` diff --git a/values.yaml b/values.yaml index 93b1f7c..44143e0 100644 --- a/values.yaml +++ b/values.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # Available parameters and their default values for the Terraform chart. # global holds values that affect multiple components of the chart.