Skip to content

Commit

Permalink
Merge pull request #10 from ShibraAmin/main
Browse files Browse the repository at this point in the history
added condition for defectdojo
  • Loading branch information
RohitSquareops authored Dec 7, 2023
2 parents cc42920 + 4a4943c commit 040bd97
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ resource "aws_eks_addon" "kubecost" {
cluster_name = var.eks_cluster_name
addon_name = "kubecost_kubecost"
addon_version = data.aws_eks_addon_version.kubecost.version
resolve_conflicts_on_create = "OVERWRITE"
service_account_role_arn = var.worker_iam_role_arn
preserve = true

Expand Down Expand Up @@ -423,6 +422,7 @@ resource "helm_release" "metrics-server-vpa" {

#defectdojo
resource "kubernetes_namespace" "defectdojo" {
count = var.defectdojo_enabled ? 1 : 0
metadata {
name = "defectdojo"
}
Expand Down
10 changes: 0 additions & 10 deletions modules/aws_node_termination_handler/aws_nth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ enablePrometheusServer: ${enable_service_monitor}
podAnnotations:
co.elastic.logs/enabled: "true"

affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "Addons-Services"
operator: In
values:
- "true"

resources:
limits:
cpu: 50m
Expand Down
1 change: 0 additions & 1 deletion modules/kubernetes-addons/aws-ebs-csi-driver/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ resource "aws_eks_addon" "aws_ebs_csi_driver" {
cluster_name = var.addon_context.eks_cluster_id
addon_name = local.name
addon_version = try(var.addon_config.addon_version, data.aws_eks_addon_version.this.version)
resolve_conflicts_on_create = "OVERWRITE"
service_account_role_arn = local.create_irsa ? module.irsa_addon[0].irsa_iam_role_arn : try(var.addon_config.service_account_role_arn, null)
preserve = try(var.addon_config.preserve, true)

Expand Down
1 change: 0 additions & 1 deletion modules/kubernetes-addons/aws-vpc-cni/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ resource "aws_eks_addon" "vpc_cni" {
cluster_name = var.addon_context.eks_cluster_id
addon_name = local.name
addon_version = try(var.addon_config.addon_version, data.aws_eks_addon_version.this.version)
resolve_conflicts_on_create = "OVERWRITE"
service_account_role_arn = local.create_irsa ? module.irsa_addon[0].irsa_iam_role_arn : try(var.addon_config.service_account_role_arn, null)
preserve = try(var.addon_config.preserve, true)

Expand Down

0 comments on commit 040bd97

Please sign in to comment.