Skip to content

Commit

Permalink
feat: Add additional environment variables in hms-housekeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
javsanbel2 committed Jun 19, 2024
1 parent 39d29ec commit 5950d7a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [7.1.7] - 2024-06-19
### Added
- `hms_housekeeper_additional_environment_variables` variable to provide ability to add a list of environment variables in `hms-housekeeper` deployment.

## [7.1.7] - 2024-06-04
### Fixed
- Fixed k8s IRSA.
Expand Down
1 change: 1 addition & 0 deletions VARIABLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
| external\_database\_host | External Metastore database host to support legacy installations, MySQL database won't be created by Apiary when this option is specified. | `string` | `""` | no |
| hive\_metastore\_port | Port on which both Hive Metastore readwrite and readonly will run. | `number` | `9083` | no |
| hms\_additional\_environment\_variables | Additional environment variables for the Hive Metastore. | `map(any)` | `{}` | no |
| hms\_housekeeper\_additional\_environment\_variables | Additional environment variables for Hive Housekeeper. | `map(any)` | `{}` | no |
| hms\_autogather\_stats | Read-write Hive metastore setting to enable/disable statistics auto-gather on table/partition creation. | `bool` | `true` | no |
| hms\_docker\_image | Docker image ID for the Hive Metastore. | `string` | n/a | yes |
| hms\_docker\_version | Version of the Docker image for the Hive Metastore. | `string` | n/a | yes |
Expand Down
8 changes: 8 additions & 0 deletions k8s-housekeeper.tf
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ resource "kubernetes_deployment_v1" "apiary_hms_housekeeper" {
name = "ENABLE_HIVE_LOCK_HOUSE_KEEPER"
value = var.enable_hms_housekeeper ? "true" : ""
}
dynamic "env" {
for_each = var.hms_housekeeper_additional_environment_variables

content {
name = env.key
value = env.value
}
}

liveness_probe {
tcp_socket {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,12 @@ variable "hms_additional_environment_variables" {
default = {}
}

variable "hms_housekeeper_additional_environment_variables" {
description = "Additional environment variables for Hive metastore."
type = map(any)
default = {}
}

variable "datadog_metrics_hms_readwrite_readonly" {
description = "HMS metrics to be sent to Datadog."
type = list(string)
Expand Down

0 comments on commit 5950d7a

Please sign in to comment.