Skip to content

Commit

Permalink
Merge pull request #7 from DNXLabs/loglevel
Browse files Browse the repository at this point in the history
Option to customize application log level
  • Loading branch information
jeremiasroma authored Dec 1, 2021
2 parents ffb524a + 60c9a55 commit fba612c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ spec:
| helm\_chart\_release\_name | External Secrets release name. | `string` | `"kubernetes-external-secrets"` | no |
| helm\_chart\_repo | External Secrets repository name. | `string` | `"https://external-secrets.github.io/kubernetes-external-secrets/"` | no |
| helm\_chart\_version | External Secrets chart version. | `string` | `"7.2.1"` | no |
| log\_level | Application log level | `string` | `"info"` | no |
| mod\_dependency | Dependence variable binds all AWS resources allocated by this module, dependent modules reference this variable | `any` | `null` | no |
| namespace | Kubernetes namespace to deploy EKS Spot termination handler Helm chart. | `string` | `"kube-external-secrets"` | no |
| secrets\_aws\_region | AWS region where secrets are stored. | `string` | n/a | yes |
Expand Down
6 changes: 6 additions & 0 deletions _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ variable "secrets_aws_region" {
description = "AWS region where secrets are stored."
}

variable "log_level" {
type = string
default = "info"
description = "Application log level"
}

variable "cluster_identity_oidc_issuer" {
type = string
description = "The OIDC Identity issuer for the cluster."
Expand Down
5 changes: 5 additions & 0 deletions helm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ resource "helm_release" "kubernetes_external_secrets" {
value = var.secrets_aws_region
}

set {
name = "env.LOG_LEVEL"
value = var.log_level
}

set {
name = "serviceAccount.create"
value = "true"
Expand Down

0 comments on commit fba612c

Please sign in to comment.