-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from SCT-Engineering/morga471Cluster
post-kubectl rip out with dynamic providers
- Loading branch information
Showing
56 changed files
with
740 additions
and
2,019 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| { | ||
| "folders": [ | ||
| { | ||
| "name": "platform-tg-infra", | ||
| "path": "../" | ||
| }, | ||
| { | ||
| "name": "tfmod-cert-mgr", | ||
| "path": "../../tfmod-cert-mgr" | ||
| }, | ||
| { | ||
| "name": "tfmod-config-job", | ||
| "path": "../../tfmod-config-job" | ||
| }, | ||
| { | ||
| "name": "tfmod-custom-iam-role-for-service-account-eks", | ||
| "path": "../../tfmod-custom-iam-role-for-service-account-eks" | ||
| }, | ||
| { | ||
| "name": "tfmod-eks", | ||
| "path": "../../tfmod-eks" | ||
| }, | ||
| { | ||
| "name": "tfmod-eks-configuration", | ||
| "path": "../../tfmod-eks-configuration" | ||
| }, | ||
| { | ||
| "name": "tfmod-eks-dns", | ||
| "path": "../../tfmod-eks-dns" | ||
| }, | ||
| { | ||
| "name": "tfmod-grafana", | ||
| "path": "../../tfmod-grafana" | ||
| }, | ||
| { | ||
| "name": "tfmod-istio", | ||
| "path": "../../tfmod-istio" | ||
| }, | ||
| { | ||
| "name": "tfmod-istio-service-ingress", | ||
| "path": "../../tfmod-istio-service-ingress" | ||
| }, | ||
| { | ||
| "name": "tfmod-k8s-dashboard", | ||
| "path": "../../tfmod-k8s-dashboard" | ||
| }, | ||
| { | ||
| "name": "tfmod-karpenter", | ||
| "path": "../../tfmod-karpenter" | ||
| }, | ||
| { | ||
| "name": "tfmod-kiali", | ||
| "path": "../../tfmod-kiali" | ||
| }, | ||
| { | ||
| "name": "tfmod-loki", | ||
| "path": "../../tfmod-loki" | ||
| }, | ||
| { | ||
| "name": "tfmod-metrics-server", | ||
| "path": "../../tfmod-metrics-server" | ||
| }, | ||
| { | ||
| "name": "tfmod-prometheus", | ||
| "path": "../../tfmod-prometheus" | ||
| }, | ||
| { | ||
| "name": "tfmod-tempo", | ||
| "path": "../../tfmod-tempo" | ||
| }, | ||
| { | ||
| "path": "../../terraform-aws-eks" | ||
| }, | ||
| { | ||
| "path": "../../karpenter-provider-aws" | ||
| }, | ||
| { | ||
| "path": "../../terragrunt" | ||
| } | ||
| ] | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| .PHONY: help init validate plan fmt check clean | ||
|
|
||
| help: | ||
| @echo "Available targets:" | ||
| @echo " init - Initialize Terragrunt configurations" | ||
| @echo " validate - Validate all Terragrunt configurations" | ||
| @echo " plan - Run plan in dry-run mode across all configurations" | ||
| @echo " fmt - Format HCL files" | ||
| @echo " check - Run all checks (format, validate, plan)" | ||
| @echo " clean - Clean up Terragrunt cache and temporary files" | ||
|
|
||
| init: | ||
| @echo "Initializing Terragrunt configurations..." | ||
| terragrunt run-all init | ||
|
|
||
| validate: | ||
| @echo "Validating Terragrunt configurations..." | ||
| terragrunt run-all validate | ||
|
|
||
| plan: | ||
| @echo "Running plan in dry-run mode..." | ||
| terragrunt run-all plan --terragrunt-non-interactive | ||
|
|
||
| fmt: | ||
| @echo "Formatting HCL files..." | ||
| find . -type f -name "*.hcl" -exec terragrunt hclfmt {} \; | ||
|
|
||
| check: fmt validate plan | ||
| @echo "All checks completed" | ||
|
|
||
| clean: | ||
| @echo "Cleaning Terragrunt cache..." | ||
| find . -type d -name ".terragrunt-cache" -exec rm -rf {} + | ||
| find . -type f -name ".terraform.lock.hcl" -delete | ||
| find . -type f -name "terragrunt-debug.tfvars.json" -delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
23 changes: 15 additions & 8 deletions
23
lab/development/us-gov-east-1/vpc/platform-eng-eks-mcm/cluster.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,28 @@ | ||
| # lab/development/us-gov-east-1/vpc/platform-eng-eks-mcm/cluster.hcl | ||
|
|
||
| # Set cluster specific variables. These are automatically pulled in to configure the remote state bucket in the root | ||
| # terragrunt.hcl configuration. | ||
| locals { | ||
| # Cluster specific configuration | ||
| cluster_endpoint_public_access = true | ||
| cluster_name = "platform-eng-eks-mcm" | ||
| created_reason = "Terragrunt Development for CICD Delivered EKS Platform" | ||
| creator = "matthew.c.morgan@census.gov" | ||
| cluster_mailing_list = "matthew.c.morgan@census.gov" | ||
| eks_instance_disk_size = 100 | ||
| eks_ng_desired_size = 2 | ||
| eks_ng_max_size = 10 | ||
| eks_ng_min_size = 0 | ||
| enable_cluster_creator_admin_permissions = true | ||
| terraform = true | ||
| terragrunt = true | ||
| tags = { | ||
| "slim:schedule" = "8:00-17:00" | ||
| "cluster:size" = "min:${local.eks_ng_min_size}-max:${local.eks_ng_max_size}-desired:${local.eks_ng_desired_size}" | ||
| } | ||
|
|
||
| # Common configuration | ||
| common_retry_args = { | ||
| commands = get_terraform_commands_that_need_locking() | ||
| arguments = ["-lock-timeout=20m"] | ||
| } | ||
|
|
||
| common_dependencies = ["../eks", "../eks-config"] | ||
|
|
||
| common_mock_eks = { | ||
| cluster_name = "mock-cluster" | ||
| oidc_provider_arn = "arn:aws-us-gov:iam::123456789012:oidc-provider/mock" | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.