Skip to content

Commit

Permalink
feat: Resolved warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AshutoshAM2002 committed Jan 19, 2024
1 parent 98b5908 commit 9935671
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 108 deletions.
2 changes: 1 addition & 1 deletion _examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ module "addons" {
reloader = false
ingress_nginx = false
certification_manager = false
keda = true
keda = false

# -- Path of override-values.yaml file
cluster_autoscaler_helm_config = { values = [file("./config/override-cluster-autoscaler.yaml")] }
Expand Down
27 changes: 0 additions & 27 deletions addons/cert-manager/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ variable "helm_config" {
default = {}
}

variable "gke_cluster_name" {
type = string
default = ""
}

variable "certification_manager_extra_configs" {
description = "Override attributes of helm_release terraform resource"
Expand All @@ -24,36 +20,13 @@ variable "addon_context" {
})
}

variable "workload_identity_config" {
description = "Input configuration for IRSA module"
type = any
default = {}
}

variable "project_id" {
description = "GCP project ID"
type = string
}

variable "create_kubernetes_namespace" {
description = "Should the module create the namespace"
type = bool
default = true
}

variable "environment" {
description = "Environment in which the infrastructure is being deployed (e.g., production, staging, development)"
type = string
}

variable "GCP_GSA_NAME" {
description = "Google Cloud Service Account name"
type = string
default = "cert-manager"
}

variable "GCP_KSA_NAME" {
description = "Google Kubernetes Service Account name"
type = string
default = "cert-manager"
}
29 changes: 0 additions & 29 deletions addons/cluster-autoscaler/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ variable "cluster_autoscaler_extra_configs" {
default = {}
}

variable "iampolicy_json_content" {
description = "Custom IAM Policy for ClusterAutoscaler workload_identity"
type = string
default = null
}

variable "addon_context" {
description = "Input configuration for the addon"
type = object({
Expand All @@ -30,36 +24,13 @@ variable "addon_context" {
})
}

variable "workload_identity_config" {
description = "Input configuration for workload identity module"
type = any
default = {}
}

variable "project_id" {
description = "GCP project ID"
type = string
}

variable "create_kubernetes_namespace" {
description = "Should the module create the namespace"
type = bool
default = true
}

variable "environment" {
description = "Environment in which the infrastructure is being deployed (e.g., production, staging, development)"
type = string
}

variable "GCP_GSA_NAME" {
description = "Google Cloud Service Account name"
type = string
default = "cluster-autoscaler"
}

variable "GCP_KSA_NAME" {
description = "Google Kubernetes Service Account name"
type = string
default = "kube-system"
}
28 changes: 0 additions & 28 deletions addons/ingress-nginx/variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@ variable "helm_config" {
default = {}
}

variable "manage_via_gitops" {
description = "Determines if the add-on should be managed via GitOps"
type = bool
default = false
}

variable "gke_cluster_name" {
type = string
default = ""
}

variable "project_id" {
description = "GCP project ID"
type = string
Expand All @@ -40,20 +29,3 @@ variable "environment" {
type = string
}

variable "GCP_GSA_NAME" {
description = "Google Cloud Service Account name"
type = string
default = "keda"
}

variable "GCP_KSA_NAME" {
description = "Google Kubernetes Service Account name"
type = string
default = "keda-operator"
}

variable "irsa_config" {
description = "Input configuration for IRSA module"
type = any
default = {}
}
23 changes: 0 additions & 23 deletions addons/reloader/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ variable "helm_config" {
default = {}
}

variable "gke_cluster_name" {
type = string
default = ""
}

variable "addon_context" {
description = "Input configuration for the addon"
type = object({
Expand All @@ -18,12 +13,6 @@ variable "addon_context" {
})
}

variable "workload_identity_config" {
description = "Input configuration for IRSA module"
type = any
default = {}
}

variable "project_id" {
description = "GCP project ID"
type = string
Expand All @@ -34,18 +23,6 @@ variable "environment" {
type = string
}

variable "GCP_GSA_NAME" {
description = "Google Cloud Service Account name"
type = string
default = "kube-system"
}

variable "GCP_KSA_NAME" {
description = "Google Kubernetes Service Account name"
type = string
default = "kube-system"
}

variable "reloader_extra_configs" {
description = "Override attributes of helm_release terraform resource"
type = any
Expand Down

0 comments on commit 9935671

Please sign in to comment.