Skip to content

Commit

Permalink
fix: bring in common license lint task
Browse files Browse the repository at this point in the history
  • Loading branch information
UnicornChance committed Oct 11, 2024
1 parent ea60653 commit d5b3d70
Show file tree
Hide file tree
Showing 345 changed files with 701 additions and 170 deletions.
1 change: 1 addition & 0 deletions .github/actions/debug-output/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/actions/lint-check/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/actions/notify-lula/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/actions/save-logs/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/bundles/eks/uds-bundle.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/bundles/eks/uds-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/bundles/rke2/uds-bundle.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/bundles/rke2/uds-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/filters.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/data.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/iam.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/irsa.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/metallb.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/modules/statestore/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/modules/statestore/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/modules/storage/irsa/data.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/modules/storage/irsa/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
Original file line number Diff line number Diff line change
@@ -1,5 +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,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/modules/storage/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/modules/storage/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/modules/storage/variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/modules/storage/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +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: 2 additions & 1 deletion .github/test-infra/aws/rke2/scripts/get-kubeconfig.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/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

echo "tofu version: $(tofu --version)"
Expand Down
3 changes: 2 additions & 1 deletion .github/test-infra/aws/rke2/scripts/key_id.sh
Original file line number Diff line number Diff line change
@@ -1,8 +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
3 changes: 2 additions & 1 deletion .github/test-infra/aws/rke2/scripts/key_modulus.sh
Original file line number Diff line number Diff line change
@@ -1,8 +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
3 changes: 2 additions & 1 deletion .github/test-infra/aws/rke2/scripts/user_data.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash

# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial



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

#######################################
# Storage
#######################################
Expand Down
2 changes: 0 additions & 2 deletions .github/test-infra/aws/rke2/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
default_user = "ec2-user"
ssh_key_name = "packer-rke2-rhel-key"
os_distro = "rhel"
Expand Down
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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"
default = "ci"
Expand Down
1 change: 1 addition & 0 deletions .github/test-infra/aws/rke2/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

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

name: Metadata

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

name: Compliance Evaluation

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

name: CI Docs

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

name: Lint OSCAL Files

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

name: Nightly Testing

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

name: Publish UDS Core

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pull-request-conditionals.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/workflows/slim-dev-test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/workflows/snapshot-release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 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
1 change: 1 addition & 0 deletions .github/workflows/tag-and-release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Release UDS Core

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-eks.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Test Core On EKS

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-rke2.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Test Core On RKE2

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-shim.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

name: Test Shim

on:
Expand Down
Loading

0 comments on commit d5b3d70

Please sign in to comment.