Skip to content

Commit

Permalink
fix: update readme and default helm config for filebeat
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Oct 6, 2023
1 parent 6617a65 commit b4662a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
12 changes: 5 additions & 7 deletions _examples/complete/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,11 @@ variable "istio_manifests_internal" {
variable "istio_ingress_extra_configs_internal" {
type = any
default = {
name = "istio-ingress-internal"
namespace = "istio-system"
istiobase_release_name = "base-internal"
istiod_release_name = "istiod-internal"
create_namespace = true
install_istiobase = false
install_istiod = false
name = "istio-ingress-internal"
namespace = "istio-system"
create_namespace = false
install_istiobase = false
install_istiod = false
}
}

Expand Down
4 changes: 2 additions & 2 deletions addons/filebeat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Below terraform script shows how to use Filebeat Terraform Addon, A complete exa
```hcl
module "addons" {
source = "clouddrove/eks-addons/aws"
version = "0.0.4"
version = "0.1.0"
depends_on = [module.eks.cluster_id]
depends_on = [module.eks]
eks_cluster_name = module.eks.cluster_name
filebeat = true
Expand Down
7 changes: 2 additions & 5 deletions addons/filebeat/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ locals {
lint = try(var.filebeat_extra_configs.lint, "false")
repository_key_file = try(var.filebeat_extra_configs.repository_key_file, "")
repository_cert_file = try(var.filebeat_extra_configs.repository_cert_file, "")
repository_username = try(var.filebeat_extra_configs.repository_password, "")
repository_username = try(var.filebeat_extra_configs.repository_username, "")
repository_password = try(var.filebeat_extra_configs.repository_password, "")
verify = try(var.filebeat_extra_configs.verify, "false")
keyring = try(var.filebeat_extra_configs.keyring, "")
Expand All @@ -34,11 +34,8 @@ locals {
replace = try(var.filebeat_extra_configs.replace, "false")
}

filebeat_extra_configs = var.filebeat_extra_configs

helm_config = merge(
local.default_helm_config,
var.helm_config,
local.filebeat_extra_configs
var.helm_config
)
}

0 comments on commit b4662a4

Please sign in to comment.