Skip to content

Commit

Permalink
Merge pull request #203 from hashicorp/compliance/add-headers
Browse files Browse the repository at this point in the history
[COMPLIANCE] Add Copyright and License Headers
  • Loading branch information
CalebAlbers committed Mar 29, 2023
2 parents 17544ac + 212b1ac commit b2bf232
Show file tree
Hide file tree
Showing 70 changed files with 210 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

archives:
- files:
# Ensure only built binary is archived
Expand Down
3 changes: 3 additions & 0 deletions .release/release-metadata.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

url_source_repository = "https://github.com/hashicorp/terraform-provider-hcs"
url_license = "https://github.com/hashicorp/terraform-provider-hcs/blob/main/LICENSE"
3 changes: 3 additions & 0 deletions examples/cluster_root_token/_config.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {
required_providers {
hcs = {
Expand Down
3 changes: 3 additions & 0 deletions examples/cluster_root_token/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "azurerm_resource_group" "example" {
name = "hcs-tf-root-token-example-rg"
location = "westus2"
Expand Down
3 changes: 3 additions & 0 deletions examples/cluster_vnet_peering/_config.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {
required_providers {
hcs = {
Expand Down
3 changes: 3 additions & 0 deletions examples/cluster_vnet_peering/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "azurerm_resource_group" "example" {
name = "hcs-tf-example"
location = "westus2"
Expand Down
3 changes: 3 additions & 0 deletions examples/data-sources/hcs_agent_helm_config/data-source.tf
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 "hcs_agent_helm_config" "default" {
resource_group_name = var.resource_group_name
managed_application_name = var.managed_application_name
Expand Down
3 changes: 3 additions & 0 deletions examples/data-sources/hcs_agent_helm_config/variables.tf
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 "resource_group_name" {
type = string
}
Expand Down
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 "hcs_agent_kubernetes_secret" "default" {
resource_group_name = var.resource_group_name
managed_application_name = var.managed_application_name
Expand Down
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 "resource_group_name" {
type = string
}
Expand Down
3 changes: 3 additions & 0 deletions examples/data-sources/hcs_cluster/data-source.tf
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 "hcs_cluster" "default" {
resource_group_name = var.resource_group_name
managed_application_name = var.managed_application_name
Expand Down
3 changes: 3 additions & 0 deletions examples/data-sources/hcs_cluster/variables.tf
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 "resource_group_name" {
type = string
}
Expand Down
3 changes: 3 additions & 0 deletions examples/data-sources/hcs_consul_versions/data-source.tf
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

data "hcs_consul_versions" "default" {}
3 changes: 3 additions & 0 deletions examples/data-sources/hcs_federation_token/data-source.tf
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 "hcs_federation_token" "default" {
resource_group_name = var.resource_group_name
managed_application_name = var.managed_application_name
Expand Down
3 changes: 3 additions & 0 deletions examples/data-sources/hcs_federation_token/variables.tf
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 "resource_group_name" {
type = string
}
Expand Down
3 changes: 3 additions & 0 deletions examples/data-sources/hcs_plan_defaults/data-source.tf
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

data "hcs_plan_defaults" "default" {}
3 changes: 3 additions & 0 deletions examples/federation/_config.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {
required_providers {
hcs = {
Expand Down
3 changes: 3 additions & 0 deletions examples/federation/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "azurerm_resource_group" "primary" {
name = "hcs-tf-federation-primary-rg"
location = "westus2"
Expand Down
3 changes: 3 additions & 0 deletions examples/marketplace_plan/_config.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {
required_providers {
hcs = {
Expand Down
3 changes: 3 additions & 0 deletions examples/marketplace_plan/main.tf
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 "hcs_plan_defaults" "example" {}

resource "azurerm_marketplace_agreement" "example" {
Expand Down
3 changes: 3 additions & 0 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

// Configure the provider
provider "hcs" {}

Expand Down
3 changes: 3 additions & 0 deletions examples/quick_start/_config.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

terraform {
required_providers {
hcs = {
Expand Down
3 changes: 3 additions & 0 deletions examples/quick_start/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "azurerm_resource_group" "example" {
name = "hcs-tf-example"
location = "westus2"
Expand Down
3 changes: 3 additions & 0 deletions examples/resources/hcs_cluster/import.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

# The import ID is {Managed Application ID}:{Cluster Name}
terraform import hcs_cluster.example /subscriptions/1234-5678-91011-1213-141516/resourceGroups/hcs-tf-example/providers/Microsoft.Solutions/applications/hcs-tf-example:hcs-tf-example
3 changes: 3 additions & 0 deletions examples/resources/hcs_cluster/resource.tf
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 "hcs_consul_versions" "default" {}

data "hcs_plan_defaults" "default" {}
Expand Down
3 changes: 3 additions & 0 deletions examples/resources/hcs_cluster/variables.tf
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 "resource_group_name" {
type = string
}
Expand Down
3 changes: 3 additions & 0 deletions examples/resources/hcs_cluster_root_token/resource.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

// Note: creating a new root token for an hcs_cluster resource will invalidate the
// consul_root_token_accessor_id and consul_root_token_secret_id properties of the
// cluster.
Expand Down
3 changes: 3 additions & 0 deletions examples/resources/hcs_cluster_root_token/variables.tf
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 "resource_group_name" {
type = string
}
Expand Down
3 changes: 3 additions & 0 deletions examples/resources/hcs_snapshot/resource.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

// Note: Snapshots currently have a retention policy of 30 days. After that time, any Terraform
// state refresh will note that a new snapshot resource will be created.
resource "hcs_snapshot" "default" {
Expand Down
3 changes: 3 additions & 0 deletions examples/resources/hcs_snapshot/variables.tf
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 "resource_group_name" {
type = string
}
Expand Down
3 changes: 3 additions & 0 deletions internal/clients/client.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 clients

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/clients/correlation_id.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 clients

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/clients/correlation_id_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 clients

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/clients/custom_resource_provider.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 clients

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/clients/resource_manager.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 clients

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/consul/version.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 internal/consul/version_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 internal/hcsmeta/meta.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 hcsmeta

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/hcsmeta/meta_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 hcsmeta

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/azure.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 helper

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/azure_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 helper

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/diagnostic.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 helper

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/diagnostic_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 helper

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/federation_token.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 helper

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/federation_token_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 helper

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/pointer.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 helper

func String(s string) *string {
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/resource_group.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 helper

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/resource_group_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 helper

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/version_status.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 helper

import "github.com/hashicorp/terraform-provider-hcs/internal/clients/hcs-ama-api-spec/models"
Expand Down
3 changes: 3 additions & 0 deletions internal/helper/version_status_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 helper

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/data_source_agent_config_kube_secret.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 provider

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/data_source_agent_helm_config.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 provider

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/data_source_cluster.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 provider

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/data_source_cluster_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 provider

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/data_source_consul_versions.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 provider

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/data_source_federation_token.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 provider

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/data_source_plan_default.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 provider

import (
Expand Down

0 comments on commit b2bf232

Please sign in to comment.