Skip to content

Commit 81e16d3

Browse files
committed
Run precommit
1 parent 4384d23 commit 81e16d3

File tree

7 files changed

+34
-50
lines changed

7 files changed

+34
-50
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ crash.log
1010
crash.*.log
1111

1212
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
13-
# password, private keys, and other secrets. These should not be part of version
14-
# control as they are data points which are potentially sensitive and subject
13+
# password, private keys, and other secrets. These should not be part of version
14+
# control as they are data points which are potentially sensitive and subject
1515
# to change depending on the environment.
1616
*.tfvars
1717
*.tfvars.json

README.md

+11-17
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,7 @@ module "eks_addons" {
8080

8181
| Release | Kubernetes 1.23 | Kubernetes 1.24 | Kubernetes 1.25 | Kubernetes 1.26 |
8282
|------------------|------------------|------------------|----------------------|----------------------|
83-
| Release 1.0.0 | ✔ | ✗ | ✗ | ✗ |
84-
| Release 1.0.1 | ✔ | ✔ | ✔ | ✗ |
85-
| Release 1.1.0 | ✔ | ✔ | ✔ | ✗ |
86-
| Release 2.0.0 | ✔ | ✔ | ✔ | ✗ |
87-
| Release 2.1.0 | ✔ | ✔ | ✔ | ✗ |
88-
| Release 3.0.0 | ✔ | ✔ | ✔ | ✔ |
89-
| Release 3.1.0 | ✔ | ✔ | ✔ | ✔ |
83+
| Release 1.0.0 | ✔ | ✔ | ✔ | ✔ |
9084

9185
## IAM Permissions
9286
The required IAM permissions to create resources from this module can be found [here](https://github.com/squareops/terraform-aws-eks-addons.git/blob/main/IAM.md)
@@ -217,13 +211,13 @@ Before enabling the **Kubecost** addon for your Amazon EKS cluster, please make
217211

218212
| Name | Source | Version |
219213
|------|--------|---------|
220-
| <a name="module_efs"></a> [efs](#module\_efs) | ./addons/efs | n/a |
221-
| <a name="module_istio"></a> [istio](#module\_istio) | ./addons/istio | n/a |
222-
| <a name="module_k8s_addons"></a> [k8s\_addons](#module\_k8s\_addons) | ./EKS-Blueprint/modules/kubernetes-addons | n/a |
223-
| <a name="module_karpenter_provisioner"></a> [karpenter\_provisioner](#module\_karpenter\_provisioner) | ./addons/karpenter_provisioner | n/a |
224-
| <a name="module_service_monitor_crd"></a> [service\_monitor\_crd](#module\_service\_monitor\_crd) | ./addons/service_monitor_crd | n/a |
225-
| <a name="module_single_az_sc"></a> [single\_az\_sc](#module\_single\_az\_sc) | ./addons/aws-ebs-storage-class | n/a |
226-
| <a name="module_velero"></a> [velero](#module\_velero) | ./addons/velero | n/a |
214+
| <a name="module_efs"></a> [efs](#module\_efs) | ./modules/efs | n/a |
215+
| <a name="module_istio"></a> [istio](#module\_istio) | ./modules/istio | n/a |
216+
| <a name="module_k8s_addons"></a> [k8s\_addons](#module\_k8s\_addons) | ./modules/kubernetes-addons | n/a |
217+
| <a name="module_karpenter_provisioner"></a> [karpenter\_provisioner](#module\_karpenter\_provisioner) | ./modules/karpenter_provisioner | n/a |
218+
| <a name="module_service_monitor_crd"></a> [service\_monitor\_crd](#module\_service\_monitor\_crd) | ./modules/service_monitor_crd | n/a |
219+
| <a name="module_single_az_sc"></a> [single\_az\_sc](#module\_single\_az\_sc) | ./modules/aws-ebs-storage-class | n/a |
220+
| <a name="module_velero"></a> [velero](#module\_velero) | ./modules/velero | n/a |
227221

228222
## Resources
229223

@@ -315,8 +309,8 @@ Before enabling the **Kubecost** addon for your Amazon EKS cluster, please make
315309
| <a name="output_environment"></a> [environment](#output\_environment) | Environment Name for the EKS cluster |
316310
| <a name="output_internal_nginx_ingress_controller_dns_hostname"></a> [internal\_nginx\_ingress\_controller\_dns\_hostname](#output\_internal\_nginx\_ingress\_controller\_dns\_hostname) | DNS hostname of the NGINX Ingress Controller that can be used to access it from within the cluster. |
317311
| <a name="output_istio_ingressgateway_dns_hostname"></a> [istio\_ingressgateway\_dns\_hostname](#output\_istio\_ingressgateway\_dns\_hostname) | DNS hostname of the Istio Ingress Gateway. |
318-
| <a name="output_kubeclarity"></a> [kubeclarity](#output\_kubeclarity) | Kubeclarity\_Info |
319-
| <a name="output_kubecost"></a> [kubecost](#output\_kubecost) | Kubecost\_Info |
312+
| <a name="output_kubeclarity"></a> [kubeclarity](#output\_kubeclarity) | Kubeclarity\_credentials |
313+
| <a name="output_kubecost"></a> [kubecost](#output\_kubecost) | Kubecost\_credentials |
320314
| <a name="output_nginx_ingress_controller_dns_hostname"></a> [nginx\_ingress\_controller\_dns\_hostname](#output\_nginx\_ingress\_controller\_dns\_hostname) | DNS hostname of the NGINX Ingress Controller. |
321315
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
322316

@@ -361,4 +355,4 @@ We provide [support](https://squareops.com/contact-us/) on all of our projects,
361355

362356
You can find more information about our company on this [squareops.com](https://squareops.com/), follow us on [Linkedin](https://www.linkedin.com/company/squareops-technologies-pvt-ltd/), or fill out a [job application](https://squareops.com/careers/). If you have any questions or would like assistance with your cloud strategy and implementation, please don't hesitate to [contact us](https://squareops.com/contact-us/).
363357

364-
<!-- END OF PRE-COMMIT-PIKE DOCS HOOK -->
358+
<!-- END OF PRE-COMMIT-PIKE DOCS HOOK -->

examples/complete/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This example is useful for users who are new to a module and want to quickly lea
2626

2727
| Name | Source | Version |
2828
|------|--------|---------|
29-
| <a name="module_eks-addons"></a> [eks\_addons](#module\_eks\_addons) | squareops/eks-addons/aws | n/a |
29+
| <a name="module_eks-addons"></a> [eks-addons](#module\_eks-addons) | squareops/eks-addons/aws | n/a |
3030

3131
## Resources
3232

examples/complete/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module "eks-addons" {
3636
external_secrets_enabled = true
3737
amazon_eks_vpc_cni_enabled = true
3838
cluster_autoscaler_enabled = true
39-
service_monitor_crd_enabled = true
39+
service_monitor_crd_enabled = true
4040
enable_aws_load_balancer_controller = true
4141
istio_enabled = true
4242
istio_config = {
@@ -49,7 +49,7 @@ module "eks-addons" {
4949
prometheus_monitoring_enabled = true
5050
cert_manager_cluster_issuer_enabled = true
5151
}
52-
karpenter_provisioner_enabled = false
52+
karpenter_provisioner_enabled = false
5353
karpenter_provisioner_config = {
5454
private_subnet_name = "private-subnet-name"
5555
instance_capacity_type = ["on-demand"]

main.tf

+4-4
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,10 @@ data "aws_eks_addon_version" "kubecost" {
305305
}
306306

307307
resource "aws_eks_addon" "kubecost" {
308-
count = var.kubecost_enabled ? 1 : 0
309-
cluster_name = var.eks_cluster_name
310-
addon_name = "kubecost_kubecost"
311-
addon_version = data.aws_eks_addon_version.kubecost.version
308+
count = var.kubecost_enabled ? 1 : 0
309+
cluster_name = var.eks_cluster_name
310+
addon_name = "kubecost_kubecost"
311+
addon_version = data.aws_eks_addon_version.kubecost.version
312312
# resolve_conflicts = "OVERWRITE"
313313
service_account_role_arn = var.worker_iam_role_arn
314314
preserve = true

modules/kubernetes-addons/README.md

-10
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020

2121
| Name | Source | Version |
2222
|------|--------|---------|
23-
| <a name="module_argo_rollouts"></a> [argo\_rollouts](#module\_argo\_rollouts) | ./argo-rollouts | n/a |
24-
| <a name="module_argo_workflows"></a> [argo\_workflows](#module\_argo\_workflows) | ./argo-workflows | n/a |
25-
| <a name="module_argocd"></a> [argocd](#module\_argocd) | ./argocd | n/a |
2623
| <a name="module_aws_cloudwatch_metrics"></a> [aws\_cloudwatch\_metrics](#module\_aws\_cloudwatch\_metrics) | ./aws-cloudwatch-metrics | n/a |
2724
| <a name="module_aws_coredns"></a> [aws\_coredns](#module\_aws\_coredns) | ./aws-coredns | n/a |
2825
| <a name="module_aws_ebs_csi_driver"></a> [aws\_ebs\_csi\_driver](#module\_aws\_ebs\_csi\_driver) | ./aws-ebs-csi-driver | n/a |
@@ -47,13 +44,10 @@
4744
| <a name="module_kubecost"></a> [kubecost](#module\_kubecost) | ./kubecost | n/a |
4845
| <a name="module_kubernetes_dashboard"></a> [kubernetes\_dashboard](#module\_kubernetes\_dashboard) | ./kubernetes-dashboard | n/a |
4946
| <a name="module_metrics_server"></a> [metrics\_server](#module\_metrics\_server) | ./metrics-server | n/a |
50-
| <a name="module_portworx"></a> [portworx](#module\_portworx) | portworx/portworx-addon/eksblueprints | 0.0.6 |
5147
| <a name="module_reloader"></a> [reloader](#module\_reloader) | ./reloader | n/a |
5248
| <a name="module_secrets_store_csi_driver"></a> [secrets\_store\_csi\_driver](#module\_secrets\_store\_csi\_driver) | ./secrets-store-csi-driver | n/a |
5349
| <a name="module_strimzi_kafka_operator"></a> [strimzi\_kafka\_operator](#module\_strimzi\_kafka\_operator) | ./strimzi-kafka-operator | n/a |
54-
| <a name="module_sysdig_agent"></a> [sysdig\_agent](#module\_sysdig\_agent) | sysdiglabs/sysdig-addon/eksblueprints | 0.0.1 |
5550
| <a name="module_tetrate_istio"></a> [tetrate\_istio](#module\_tetrate\_istio) | ./tetrate-istio | n/a |
56-
| <a name="module_traefik"></a> [traefik](#module\_traefik) | ./traefik | n/a |
5751
| <a name="module_vault"></a> [vault](#module\_vault) | hashicorp/hashicorp-vault-eks-addon/aws | 1.0.0-rc2 |
5852
| <a name="module_velero"></a> [velero](#module\_velero) | ./velero | n/a |
5953
| <a name="module_vpa"></a> [vpa](#module\_vpa) | ./vpa | n/a |
@@ -293,9 +287,6 @@
293287

294288
| Name | Description |
295289
|------|-------------|
296-
| <a name="output_argo_rollouts"></a> [argo\_rollouts](#output\_argo\_rollouts) | Map of attributes of the Helm release and IRSA created |
297-
| <a name="output_argo_workflows"></a> [argo\_workflows](#output\_argo\_workflows) | Map of attributes of the Helm release and IRSA created |
298-
| <a name="output_argocd"></a> [argocd](#output\_argocd) | Map of attributes of the Helm release and IRSA created |
299290
| <a name="output_aws_cloudwatch_metrics"></a> [aws\_cloudwatch\_metrics](#output\_aws\_cloudwatch\_metrics) | Map of attributes of the Helm release and IRSA created |
300291
| <a name="output_aws_coredns"></a> [aws\_coredns](#output\_aws\_coredns) | Map of attributes of the Helm release and IRSA created |
301292
| <a name="output_aws_ebs_csi_driver"></a> [aws\_ebs\_csi\_driver](#output\_aws\_ebs\_csi\_driver) | Map of attributes of the Helm release and IRSA created |
@@ -323,7 +314,6 @@
323314
| <a name="output_reloader"></a> [reloader](#output\_reloader) | Map of attributes of the Helm release and IRSA created |
324315
| <a name="output_secrets_store_csi_driver"></a> [secrets\_store\_csi\_driver](#output\_secrets\_store\_csi\_driver) | Map of attributes of the Helm release and IRSA created |
325316
| <a name="output_strimzi_kafka_operator"></a> [strimzi\_kafka\_operator](#output\_strimzi\_kafka\_operator) | Map of attributes of the Helm release and IRSA created |
326-
| <a name="output_traefik"></a> [traefik](#output\_traefik) | Map of attributes of the Helm release and IRSA created |
327317
| <a name="output_velero"></a> [velero](#output\_velero) | Map of attributes of the Helm release and IRSA created |
328318
| <a name="output_vpa"></a> [vpa](#output\_vpa) | Map of attributes of the Helm release and IRSA created |
329319
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/kubernetes-addons/locals.tf

+14-14
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ locals {
1414
ingressNginx = var.enable_ingress_nginx ? module.ingress_nginx[0].argocd_gitops_config : null
1515
keda = var.enable_keda ? module.keda[0].argocd_gitops_config : null
1616
metricsServer = var.enable_metrics_server ? module.metrics_server[0].argocd_gitops_config : null
17-
tetrateIstio = var.enable_tetrate_istio ? module.tetrate_istio[0].argocd_gitops_config : null
18-
vault = var.enable_vault ? module.vault[0].argocd_gitops_config : null
19-
vpa = var.enable_vpa ? module.vpa[0].argocd_gitops_config : null
20-
karpenter = var.enable_karpenter ? module.karpenter[0].argocd_gitops_config : null
21-
kubernetesDashboard = var.enable_kubernetes_dashboard ? module.kubernetes_dashboard[0].argocd_gitops_config : null
22-
awsCloudWatchMetrics = var.enable_aws_cloudwatch_metrics ? module.aws_cloudwatch_metrics[0].argocd_gitops_config : null
23-
externalDns = var.enable_external_dns ? module.external_dns[0].argocd_gitops_config : null
24-
externalSecrets = var.enable_external_secrets ? module.external_secrets[0].argocd_gitops_config : null
25-
velero = var.enable_velero ? module.velero[0].argocd_gitops_config : null
26-
kubecost = var.kubecost_enabled ? module.kubecost[0].argocd_gitops_config : null
27-
strimziKafkaOperator = var.enable_strimzi_kafka_operator ? module.strimzi_kafka_operator[0].argocd_gitops_config : null
28-
kyverno = var.enable_kyverno ? { enable = true } : null
29-
kyverno_policies = var.enable_kyverno ? { enable = true } : null
30-
kyverno_policy_reporter = var.enable_kyverno ? { enable = true } : null
17+
tetrateIstio = var.enable_tetrate_istio ? module.tetrate_istio[0].argocd_gitops_config : null
18+
vault = var.enable_vault ? module.vault[0].argocd_gitops_config : null
19+
vpa = var.enable_vpa ? module.vpa[0].argocd_gitops_config : null
20+
karpenter = var.enable_karpenter ? module.karpenter[0].argocd_gitops_config : null
21+
kubernetesDashboard = var.enable_kubernetes_dashboard ? module.kubernetes_dashboard[0].argocd_gitops_config : null
22+
awsCloudWatchMetrics = var.enable_aws_cloudwatch_metrics ? module.aws_cloudwatch_metrics[0].argocd_gitops_config : null
23+
externalDns = var.enable_external_dns ? module.external_dns[0].argocd_gitops_config : null
24+
externalSecrets = var.enable_external_secrets ? module.external_secrets[0].argocd_gitops_config : null
25+
velero = var.enable_velero ? module.velero[0].argocd_gitops_config : null
26+
kubecost = var.kubecost_enabled ? module.kubecost[0].argocd_gitops_config : null
27+
strimziKafkaOperator = var.enable_strimzi_kafka_operator ? module.strimzi_kafka_operator[0].argocd_gitops_config : null
28+
kyverno = var.enable_kyverno ? { enable = true } : null
29+
kyverno_policies = var.enable_kyverno ? { enable = true } : null
30+
kyverno_policy_reporter = var.enable_kyverno ? { enable = true } : null
3131
}
3232

3333
addon_context = {

0 commit comments

Comments
 (0)