Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix license header references #901

Merged
merged 9 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Lint Codespell configurations
[codespell]
skip = .codespellrc,.git,node_modules,build,dist,*.zst,CHANGELOG.md
ignore-words-list = NotIn,AKS
ignore-words-list = NotIn,AKS,LICENS
enable-colors =
4 changes: 3 additions & 1 deletion .github/actions/debug-output/action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: debug-output
description: "Print out basic debug info for a k8s cluster"

Expand Down
4 changes: 3 additions & 1 deletion .github/actions/lint-check/action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: lint-check
description: "Check Project for Linting Errors"

Expand Down
4 changes: 3 additions & 1 deletion .github/actions/notify-lula/action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Notify Lula
description: "Comment on PR to notify Lula Team"

Expand Down
4 changes: 3 additions & 1 deletion .github/actions/save-logs/action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: save-logs
description: "Save debug logs"

Expand Down
4 changes: 3 additions & 1 deletion .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

# action.yml
name: "Setup Environment"
description: "UDS Environment Setup"
Expand Down
4 changes: 3 additions & 1 deletion .github/bundles/eks/uds-bundle.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

kind: UDSBundle
metadata:
name: uds-core-eks-nightly
Expand Down
4 changes: 3 additions & 1 deletion .github/bundles/eks/uds-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

# Overwritten by ci-iac-aws package
options:
architecture: amd64
Expand Down
4 changes: 3 additions & 1 deletion .github/bundles/rke2/uds-bundle.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

kind: UDSBundle
metadata:
name: uds-core-rke2-nightly
Expand Down
4 changes: 3 additions & 1 deletion .github/bundles/rke2/uds-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

# Overwritten by ci-iac-aws package
options:
architecture: amd64
Expand Down
4 changes: 3 additions & 1 deletion .github/filters.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

all:
- "**"

Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/eks/loki.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

resource "aws_iam_policy" "loki_policy" {
name = "${local.bucket_configurations.loki.name}-irsa-${random_id.unique_id.hex}"
path = "/"
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/eks/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial


resource "random_id" "default" {
byte_length = 2
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/eks/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

output "aws_region" {
value = data.aws_region.current.name
}
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/eks/rds.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

resource "random_password" "db_password" {
length = 16
special = false
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/eks/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

variable "region" {
description = "AWS region"
type = string
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/eks/velero.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

resource "aws_iam_policy" "velero_policy" {
name = "${local.bucket_configurations.velero.name}-irsa-${random_id.unique_id.hex}"
path = "/"
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/eks/versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

provider "aws" {
region = var.region

Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/data.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

data "aws_vpc" "vpc" {
filter {
name = "tag:Name"
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/iam.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

# required iam roles for irsa
data "aws_partition" "current" {}

Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/irsa.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

# setting up irsa for the rke2 cluster
# Keypair for signing, added as secrets in AWS Secrets Manager
resource "tls_private_key" "keypair" {
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

# sourced from https://github.com/defenseunicorns/uds-rke2-image-builder/tree/2fecc1c9a10180579ada75a9ec92dcb224e82a74/.github/test-infra/rke2-cluster
locals {
cluster_name = "rke2-nightly-ci-${random_string.ssm.result}"
Expand Down
4 changes: 3 additions & 1 deletion .github/test-infra/aws/rke2/metallb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/modules/statestore/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

#sourced from https://github.com/rancherfederal/rke2-aws-tf/blob/master/modules/statestore/main.tf

resource "aws_s3_bucket" "bucket" {
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/modules/statestore/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

output "bucket" {
value = aws_s3_object.token.bucket
}
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/modules/statestore/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

variable "name" {
type = string
}
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/modules/storage/irsa/data.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

## s3 policy
data "aws_caller_identity" "current" {}

Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/modules/storage/irsa/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

data "aws_partition" "current" {}

## This will create a policy for the S3 Buckets
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/modules/storage/irsa/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

output "bucket_role" {
value = aws_iam_role.s3_bucket_role
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

variable "cluster_name" {
description = "Name of the Kubernetes Cluster."
type = string
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/modules/storage/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

# Terraform Module for provisioning s3 buckets with optional support for IRSA, tailored specifically for loki and velero atop uds-core
locals {
permissions_boundary_name = split("/", var.permissions_boundary)[1]
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/modules/storage/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

output "s3_buckets" {
value = { for k, v in module.s3 : k => v }
}
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/modules/storage/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

variable "cluster_name" {
description = "Name of the Kubernetes Cluster."
type = string
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/modules/storage/versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

terraform {
required_providers {
aws = {
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

output "aws_region" {
value = data.aws_region.current.name
}
Expand Down
4 changes: 4 additions & 0 deletions .github/test-infra/aws/rke2/scripts/get-kubeconfig.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial



# Utility script that can be called from a uds task after tofu has deployed the e2e test module

Expand Down
5 changes: 5 additions & 0 deletions .github/test-infra/aws/rke2/scripts/key_id.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial



set -e
PUBLIC_KEY="$1"

Expand Down
5 changes: 5 additions & 0 deletions .github/test-infra/aws/rke2/scripts/key_modulus.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial



PUBLIC_KEY="$1"

modulus=$(echo "$PUBLIC_KEY" |\
Expand Down
4 changes: 4 additions & 0 deletions .github/test-infra/aws/rke2/scripts/user_data.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial



info() {
echo "[INFO] " "$@"
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/storage.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

#######################################
# Storage
#######################################
Expand Down
2 changes: 2 additions & 0 deletions .github/test-infra/aws/rke2/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

variable "environment" {
description = "Environment/account that this is deployed to"
Expand Down
3 changes: 3 additions & 0 deletions .github/test-infra/aws/rke2/versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

terraform {
backend "s3" {
}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Metadata

on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/compliance.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Compliance Evaluation

on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docs-shim.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: CI Docs

on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/lint-oscal.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Lint OSCAL Files

on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/nightly-testing.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Nightly Testing

on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Publish UDS Core

on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pull-request-conditionals.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Filter

# This workflow is triggered on pull requests
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/slim-dev-test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Slim Dev

# This workflow is triggered on pull requests
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/snapshot-release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Release UDS Core Snapshot

on:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tag-and-release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# SPDX-License-Identifier: AGPL-3.0-or-later OR Commercial
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Release UDS Core

on:
Expand Down
Loading