From f4bc9accf33916412f892cdaf5b8b58851883afa Mon Sep 17 00:00:00 2001 From: Theron Voran Date: Fri, 10 Feb 2023 17:28:14 -0800 Subject: [PATCH] adding SPDX copyright headers --- .circleci/config.yml | 3 +++ .github/ISSUE_TEMPLATE/config.yml | 3 +++ Chart.yaml | 3 +++ templates/_helpers.tpl | 5 +++++ templates/csi-clusterrole.yaml | 5 +++++ templates/csi-clusterrolebinding.yaml | 5 +++++ templates/csi-daemonset.yaml | 5 +++++ templates/csi-serviceaccount.yaml | 5 +++++ templates/injector-certs-secret.yaml | 5 +++++ templates/injector-clusterrole.yaml | 5 +++++ templates/injector-clusterrolebinding.yaml | 5 +++++ templates/injector-deployment.yaml | 5 +++++ templates/injector-disruptionbudget.yaml | 5 +++++ templates/injector-mutating-webhook.yaml | 5 +++++ templates/injector-network-policy.yaml | 5 +++++ templates/injector-psp-role.yaml | 5 +++++ templates/injector-psp-rolebinding.yaml | 5 +++++ templates/injector-psp.yaml | 5 +++++ templates/injector-role.yaml | 5 +++++ templates/injector-rolebinding.yaml | 5 +++++ templates/injector-service.yaml | 5 +++++ templates/injector-serviceaccount.yaml | 5 +++++ templates/prometheus-prometheusrules.yaml | 5 +++++ templates/prometheus-servicemonitor.yaml | 5 +++++ templates/server-clusterrolebinding.yaml | 5 +++++ templates/server-config-configmap.yaml | 5 +++++ templates/server-discovery-role.yaml | 5 +++++ templates/server-discovery-rolebinding.yaml | 5 +++++ templates/server-disruptionbudget.yaml | 5 +++++ templates/server-ha-active-service.yaml | 5 +++++ templates/server-ha-standby-service.yaml | 5 +++++ templates/server-headless-service.yaml | 5 +++++ templates/server-ingress.yaml | 5 +++++ templates/server-network-policy.yaml | 5 +++++ templates/server-psp-role.yaml | 5 +++++ templates/server-psp-rolebinding.yaml | 5 +++++ templates/server-psp.yaml | 5 +++++ templates/server-route.yaml | 5 +++++ templates/server-service.yaml | 5 +++++ templates/server-serviceaccount.yaml | 5 +++++ templates/server-statefulset.yaml | 5 +++++ templates/tests/server-test.yaml | 5 +++++ templates/ui-service.yaml | 5 +++++ test/acceptance/_helpers.bash | 3 +++ test/acceptance/csi-test/nginx.yaml | 3 +++ test/acceptance/csi-test/vault-kv-secretproviderclass.yaml | 3 +++ test/acceptance/csi-test/vault-policy.hcl | 3 +++ test/acceptance/injector-test/bootstrap.sh | 3 +++ test/acceptance/injector-test/job.yaml | 3 +++ test/acceptance/injector-test/pg-deployment.yaml | 3 +++ test/acceptance/injector-test/pgdump-policy.hcl | 3 +++ test/acceptance/server-test/annotations-overrides.yaml | 3 +++ test/acceptance/server-test/telemetry.yaml | 3 +++ test/chart/_helpers.bash | 3 +++ test/docker/Test.dockerfile | 3 +++ test/kind/config.yaml | 3 +++ test/terraform/main.tf | 3 +++ test/terraform/outputs.tf | 3 +++ test/terraform/variables.tf | 3 +++ test/unit/_helpers.bash | 3 +++ values.openshift.yaml | 3 +++ values.yaml | 3 +++ 62 files changed, 266 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 588db5ef6..80b7db42b 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 orbs: slack: circleci/slack@3.4.2 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index b24b36b2c..746c03c5f 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 + contact_links: - name: Ask a question url: https://discuss.hashicorp.com/c/vault diff --git a/Chart.yaml b/Chart.yaml index f42a831e4..55ebcf4bb 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + apiVersion: v2 name: vault version: 0.23.0 diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index ca79b69d6..dcfcbb8b8 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{/* Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to diff --git a/templates/csi-clusterrole.yaml b/templates/csi-clusterrole.yaml index ec6a3d2b9..6d979ea40 100644 --- a/templates/csi-clusterrole.yaml +++ b/templates/csi-clusterrole.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.csiEnabled" . -}} {{- if .csiEnabled -}} apiVersion: rbac.authorization.k8s.io/v1 diff --git a/templates/csi-clusterrolebinding.yaml b/templates/csi-clusterrolebinding.yaml index d5b62a5f0..d5a934688 100644 --- a/templates/csi-clusterrolebinding.yaml +++ b/templates/csi-clusterrolebinding.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.csiEnabled" . -}} {{- if .csiEnabled -}} apiVersion: rbac.authorization.k8s.io/v1 diff --git a/templates/csi-daemonset.yaml b/templates/csi-daemonset.yaml index d131aac5f..e38cc47d5 100644 --- a/templates/csi-daemonset.yaml +++ b/templates/csi-daemonset.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.csiEnabled" . -}} {{- if .csiEnabled -}} apiVersion: apps/v1 diff --git a/templates/csi-serviceaccount.yaml b/templates/csi-serviceaccount.yaml index 8d6fa5329..25e123ee9 100644 --- a/templates/csi-serviceaccount.yaml +++ b/templates/csi-serviceaccount.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.csiEnabled" . -}} {{- if .csiEnabled -}} apiVersion: v1 diff --git a/templates/injector-certs-secret.yaml b/templates/injector-certs-secret.yaml index e88685b5e..3e5ddb7b9 100644 --- a/templates/injector-certs-secret.yaml +++ b/templates/injector-certs-secret.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} {{- if and (eq (.Values.injector.leaderElector.enabled | toString) "true") (gt (.Values.injector.replicas | int) 1) }} diff --git a/templates/injector-clusterrole.yaml b/templates/injector-clusterrole.yaml index 6a0d6be1a..d5682dd76 100644 --- a/templates/injector-clusterrole.yaml +++ b/templates/injector-clusterrole.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} apiVersion: rbac.authorization.k8s.io/v1 diff --git a/templates/injector-clusterrolebinding.yaml b/templates/injector-clusterrolebinding.yaml index 4c193f8a2..9253e4f0a 100644 --- a/templates/injector-clusterrolebinding.yaml +++ b/templates/injector-clusterrolebinding.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} apiVersion: rbac.authorization.k8s.io/v1 diff --git a/templates/injector-deployment.yaml b/templates/injector-deployment.yaml index f0605599e..9c16ed8dc 100644 --- a/templates/injector-deployment.yaml +++ b/templates/injector-deployment.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} # Deployment for the injector diff --git a/templates/injector-disruptionbudget.yaml b/templates/injector-disruptionbudget.yaml index b44fd7300..5862977ec 100644 --- a/templates/injector-disruptionbudget.yaml +++ b/templates/injector-disruptionbudget.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- if .Values.injector.podDisruptionBudget }} apiVersion: {{ ge .Capabilities.KubeVersion.Minor "21" | ternary "policy/v1" "policy/v1beta1" }} kind: PodDisruptionBudget diff --git a/templates/injector-mutating-webhook.yaml b/templates/injector-mutating-webhook.yaml index 3d3fd3678..d03cd136d 100644 --- a/templates/injector-mutating-webhook.yaml +++ b/templates/injector-mutating-webhook.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} {{- if .Capabilities.APIVersions.Has "admissionregistration.k8s.io/v1" }} diff --git a/templates/injector-network-policy.yaml b/templates/injector-network-policy.yaml index 68892d23b..4c3b08782 100644 --- a/templates/injector-network-policy.yaml +++ b/templates/injector-network-policy.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} {{- if eq (.Values.global.openshift | toString) "true" }} diff --git a/templates/injector-psp-role.yaml b/templates/injector-psp-role.yaml index 5d23c7556..65d8e9ba9 100644 --- a/templates/injector-psp-role.yaml +++ b/templates/injector-psp-role.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} {{- if eq (.Values.global.psp.enable | toString) "true" }} diff --git a/templates/injector-psp-rolebinding.yaml b/templates/injector-psp-rolebinding.yaml index 4f6b0a851..48a3a26a2 100644 --- a/templates/injector-psp-rolebinding.yaml +++ b/templates/injector-psp-rolebinding.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} {{- if eq (.Values.global.psp.enable | toString) "true" }} diff --git a/templates/injector-psp.yaml b/templates/injector-psp.yaml index 1eee2fcd0..0eca9a87c 100644 --- a/templates/injector-psp.yaml +++ b/templates/injector-psp.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} {{- if eq (.Values.global.psp.enable | toString) "true" }} diff --git a/templates/injector-role.yaml b/templates/injector-role.yaml index 08c8264cc..df7b0ed74 100644 --- a/templates/injector-role.yaml +++ b/templates/injector-role.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} {{- if and (eq (.Values.injector.leaderElector.enabled | toString) "true") (gt (.Values.injector.replicas | int) 1) }} diff --git a/templates/injector-rolebinding.yaml b/templates/injector-rolebinding.yaml index ea0db11b9..0848e43d8 100644 --- a/templates/injector-rolebinding.yaml +++ b/templates/injector-rolebinding.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} {{- if and (eq (.Values.injector.leaderElector.enabled | toString) "true") (gt (.Values.injector.replicas | int) 1) }} diff --git a/templates/injector-service.yaml b/templates/injector-service.yaml index 5e747d6f1..5b2069286 100644 --- a/templates/injector-service.yaml +++ b/templates/injector-service.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} apiVersion: v1 diff --git a/templates/injector-serviceaccount.yaml b/templates/injector-serviceaccount.yaml index d1919b936..9b5c2f6ed 100644 --- a/templates/injector-serviceaccount.yaml +++ b/templates/injector-serviceaccount.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- template "vault.injectorEnabled" . -}} {{- if .injectorEnabled -}} apiVersion: v1 diff --git a/templates/prometheus-prometheusrules.yaml b/templates/prometheus-prometheusrules.yaml index 572f1a05a..7e58a0e52 100644 --- a/templates/prometheus-prometheusrules.yaml +++ b/templates/prometheus-prometheusrules.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ if and (.Values.serverTelemetry.prometheusRules.rules) (or (.Values.global.serverTelemetry.prometheusOperator) (.Values.serverTelemetry.prometheusRules.enabled) ) }} diff --git a/templates/prometheus-servicemonitor.yaml b/templates/prometheus-servicemonitor.yaml index 323e51fb9..60f2729a0 100644 --- a/templates/prometheus-servicemonitor.yaml +++ b/templates/prometheus-servicemonitor.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{ if or (.Values.global.serverTelemetry.prometheusOperator) (.Values.serverTelemetry.serviceMonitor.enabled) }} --- diff --git a/templates/server-clusterrolebinding.yaml b/templates/server-clusterrolebinding.yaml index 8cdd61143..b694129b5 100644 --- a/templates/server-clusterrolebinding.yaml +++ b/templates/server-clusterrolebinding.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.serverAuthDelegator" . }} {{- if .serverAuthDelegator -}} {{- if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1" -}} diff --git a/templates/server-config-configmap.yaml b/templates/server-config-configmap.yaml index f40c69608..5d29e98d6 100644 --- a/templates/server-config-configmap.yaml +++ b/templates/server-config-configmap.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if ne .mode "external" }} {{- if .serverEnabled -}} diff --git a/templates/server-discovery-role.yaml b/templates/server-discovery-role.yaml index 4dba09df1..adae42a2b 100644 --- a/templates/server-discovery-role.yaml +++ b/templates/server-discovery-role.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if .serverEnabled -}} {{- if eq .mode "ha" }} diff --git a/templates/server-discovery-rolebinding.yaml b/templates/server-discovery-rolebinding.yaml index 280ec6ca2..853ee870c 100644 --- a/templates/server-discovery-rolebinding.yaml +++ b/templates/server-discovery-rolebinding.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if .serverEnabled -}} {{- if eq .mode "ha" }} diff --git a/templates/server-disruptionbudget.yaml b/templates/server-disruptionbudget.yaml index d940fa4da..c823a4206 100644 --- a/templates/server-disruptionbudget.yaml +++ b/templates/server-disruptionbudget.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if ne .mode "external" -}} {{- if .serverEnabled -}} diff --git a/templates/server-ha-active-service.yaml b/templates/server-ha-active-service.yaml index 7def2a0e8..58d540fd5 100644 --- a/templates/server-ha-active-service.yaml +++ b/templates/server-ha-active-service.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if ne .mode "external" }} {{- template "vault.serverServiceEnabled" . -}} diff --git a/templates/server-ha-standby-service.yaml b/templates/server-ha-standby-service.yaml index 50fca4bc1..b9f643586 100644 --- a/templates/server-ha-standby-service.yaml +++ b/templates/server-ha-standby-service.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if ne .mode "external" }} {{- template "vault.serverServiceEnabled" . -}} diff --git a/templates/server-headless-service.yaml b/templates/server-headless-service.yaml index b03f491e3..c4eca7af7 100644 --- a/templates/server-headless-service.yaml +++ b/templates/server-headless-service.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if ne .mode "external" }} {{- template "vault.serverServiceEnabled" . -}} diff --git a/templates/server-ingress.yaml b/templates/server-ingress.yaml index c81e5f5ce..e77569072 100644 --- a/templates/server-ingress.yaml +++ b/templates/server-ingress.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- if not .Values.global.openshift }} {{ template "vault.mode" . }} {{- if ne .mode "external" }} diff --git a/templates/server-network-policy.yaml b/templates/server-network-policy.yaml index 5f4c21a4b..62d4ae1ac 100644 --- a/templates/server-network-policy.yaml +++ b/templates/server-network-policy.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- if eq (.Values.server.networkPolicy.enabled | toString) "true" }} apiVersion: networking.k8s.io/v1 kind: NetworkPolicy diff --git a/templates/server-psp-role.yaml b/templates/server-psp-role.yaml index b8eb897e5..0c8c983ea 100644 --- a/templates/server-psp-role.yaml +++ b/templates/server-psp-role.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if .serverEnabled -}} {{- if and (ne .mode "") (eq (.Values.global.psp.enable | toString) "true") }} diff --git a/templates/server-psp-rolebinding.yaml b/templates/server-psp-rolebinding.yaml index fded9fbc6..9b975d556 100644 --- a/templates/server-psp-rolebinding.yaml +++ b/templates/server-psp-rolebinding.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if .serverEnabled -}} {{- if and (ne .mode "") (eq (.Values.global.psp.enable | toString) "true") }} diff --git a/templates/server-psp.yaml b/templates/server-psp.yaml index d210af351..567e66245 100644 --- a/templates/server-psp.yaml +++ b/templates/server-psp.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if .serverEnabled -}} {{- if and (ne .mode "") (eq (.Values.global.psp.enable | toString) "true") }} diff --git a/templates/server-route.yaml b/templates/server-route.yaml index e122d936b..3f35aefe2 100644 --- a/templates/server-route.yaml +++ b/templates/server-route.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{- if .Values.global.openshift }} {{- if ne .mode "external" }} {{- if .Values.server.route.enabled -}} diff --git a/templates/server-service.yaml b/templates/server-service.yaml index 913b56930..8e34c88c5 100644 --- a/templates/server-service.yaml +++ b/templates/server-service.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if ne .mode "external" }} {{- template "vault.serverServiceEnabled" . -}} diff --git a/templates/server-serviceaccount.yaml b/templates/server-serviceaccount.yaml index 580a95375..e154f8dc2 100644 --- a/templates/server-serviceaccount.yaml +++ b/templates/server-serviceaccount.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.serverServiceAccountEnabled" . }} {{- if .serverServiceAccountEnabled -}} apiVersion: v1 diff --git a/templates/server-statefulset.yaml b/templates/server-statefulset.yaml index a4ec05a28..4defbb524 100644 --- a/templates/server-statefulset.yaml +++ b/templates/server-statefulset.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if ne .mode "external" }} {{- if ne .mode "" }} diff --git a/templates/tests/server-test.yaml b/templates/tests/server-test.yaml index 56dbee78c..59b150109 100644 --- a/templates/tests/server-test.yaml +++ b/templates/tests/server-test.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if ne .mode "external" }} {{- if .serverEnabled -}} diff --git a/templates/ui-service.yaml b/templates/ui-service.yaml index d45afdda4..4b2e8f7e4 100644 --- a/templates/ui-service.yaml +++ b/templates/ui-service.yaml @@ -1,3 +1,8 @@ +{{/* +Copyright (c) HashiCorp, Inc. +SPDX-License-Identifier: MPL-2.0 +*/}} + {{ template "vault.mode" . }} {{- if ne .mode "external" }} {{- template "vault.uiEnabled" . -}} diff --git a/test/acceptance/_helpers.bash b/test/acceptance/_helpers.bash index db8b05145..490cdeb29 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 "vault" diff --git a/test/acceptance/csi-test/nginx.yaml b/test/acceptance/csi-test/nginx.yaml index fed1137f7..2fd86032a 100644 --- a/test/acceptance/csi-test/nginx.yaml +++ b/test/acceptance/csi-test/nginx.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + --- apiVersion: v1 kind: ServiceAccount diff --git a/test/acceptance/csi-test/vault-kv-secretproviderclass.yaml b/test/acceptance/csi-test/vault-kv-secretproviderclass.yaml index e793bde64..b9470fe29 100644 --- a/test/acceptance/csi-test/vault-kv-secretproviderclass.yaml +++ b/test/acceptance/csi-test/vault-kv-secretproviderclass.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # The "Hello World" Vault SecretProviderClass apiVersion: secrets-store.csi.x-k8s.io/v1alpha1 kind: SecretProviderClass diff --git a/test/acceptance/csi-test/vault-policy.hcl b/test/acceptance/csi-test/vault-policy.hcl index 48b670ea7..07bb74972 100644 --- a/test/acceptance/csi-test/vault-policy.hcl +++ b/test/acceptance/csi-test/vault-policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + path "secret/data/kv1" { capabilities = ["read"] } \ No newline at end of file diff --git a/test/acceptance/injector-test/bootstrap.sh b/test/acceptance/injector-test/bootstrap.sh index d738fd28d..96f161710 100755 --- a/test/acceptance/injector-test/bootstrap.sh +++ b/test/acceptance/injector-test/bootstrap.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + OUTPUT=/tmp/output.txt diff --git a/test/acceptance/injector-test/job.yaml b/test/acceptance/injector-test/job.yaml index d665383c7..50a3b5f89 100644 --- a/test/acceptance/injector-test/job.yaml +++ b/test/acceptance/injector-test/job.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + --- apiVersion: v1 kind: ServiceAccount diff --git a/test/acceptance/injector-test/pg-deployment.yaml b/test/acceptance/injector-test/pg-deployment.yaml index caf8605d2..cacc99411 100644 --- a/test/acceptance/injector-test/pg-deployment.yaml +++ b/test/acceptance/injector-test/pg-deployment.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + --- apiVersion: v1 kind: Service diff --git a/test/acceptance/injector-test/pgdump-policy.hcl b/test/acceptance/injector-test/pgdump-policy.hcl index 88a6cd66a..60da677b1 100644 --- a/test/acceptance/injector-test/pgdump-policy.hcl +++ b/test/acceptance/injector-test/pgdump-policy.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + path "database/creds/db-backup" { capabilities = ["read"] } diff --git a/test/acceptance/server-test/annotations-overrides.yaml b/test/acceptance/server-test/annotations-overrides.yaml index 459576a97..5aba0f9f0 100644 --- a/test/acceptance/server-test/annotations-overrides.yaml +++ b/test/acceptance/server-test/annotations-overrides.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + server: annotations: | environment: production diff --git a/test/acceptance/server-test/telemetry.yaml b/test/acceptance/server-test/telemetry.yaml index 2925bc8f7..7380df2d3 100644 --- a/test/acceptance/server-test/telemetry.yaml +++ b/test/acceptance/server-test/telemetry.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + server: standalone: config: | diff --git a/test/chart/_helpers.bash b/test/chart/_helpers.bash index fb9db31da..4d2465750 100644 --- a/test/chart/_helpers.bash +++ b/test/chart/_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/test/docker/Test.dockerfile b/test/docker/Test.dockerfile index 98afeace2..472a97acd 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/kind/config.yaml b/test/kind/config.yaml index 8b18a3a5f..5fef18a8c 100644 --- a/test/kind/config.yaml +++ b/test/kind/config.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: diff --git a/test/terraform/main.tf b/test/terraform/main.tf index 5c3570f27..d1de1a2e0 100644 --- a/test/terraform/main.tf +++ b/test/terraform/main.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + provider "google" { project = "${var.project}" } diff --git a/test/terraform/outputs.tf b/test/terraform/outputs.tf index 6435d2b78..3793987a3 100644 --- a/test/terraform/outputs.tf +++ b/test/terraform/outputs.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + output "cluster_id" { value = "${google_container_cluster.cluster.id}" } diff --git a/test/terraform/variables.tf b/test/terraform/variables.tf index 971af4e59..df4832b66 100644 --- a/test/terraform/variables.tf +++ b/test/terraform/variables.tf @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + variable "project" { default = "vault-helm-dev-246514" diff --git a/test/unit/_helpers.bash b/test/unit/_helpers.bash index 530b66e8c..5f8a94dfc 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.openshift.yaml b/values.openshift.yaml index 02985ed39..13a7463b2 100644 --- a/values.openshift.yaml +++ b/values.openshift.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + # These overrides are appropriate defaults for deploying this chart on OpenShift global: diff --git a/values.yaml b/values.yaml index 2c3d9e261..2f88ab304 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 Vault chart. global: