Skip to content

Commit

Permalink
Merge pull request #5 from streamnative/feat/pulsar_namespace
Browse files Browse the repository at this point in the history
Made Pulsar namespace management optional
  • Loading branch information
jrsdav authored Jul 13, 2021
2 parents bb99769 + 0aaeb65 commit b1320ee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ sn-platform \
| <a name="input_prometheus_operator_settings"></a> [prometheus\_operator\_settings](#input\_prometheus\_operator\_settings) | Additional settings which will be passed to the Helm chart values | `map(any)` | `null` | no |
| <a name="input_prometheus_operator_timeout"></a> [prometheus\_operator\_timeout](#input\_prometheus\_operator\_timeout) | Time in seconds to wait for any individual kubernetes operation | `number` | `600` | no |
| <a name="input_public_subnet_ids"></a> [public\_subnet\_ids](#input\_public\_subnet\_ids) | The ids of existing public subnets | `list(string)` | `[]` | no |
| <a name="input_pulsar_namespace"></a> [pulsar\_namespace](#input\_pulsar\_namespace) | The Kubernetes namespace used for the Pulsar workload | `string` | n/a | yes |
| <a name="input_pulsar_namespace"></a> [pulsar\_namespace](#input\_pulsar\_namespace) | The Kubernetes namespace that will be used for the Pulsar workload. This does not get created automatically, but is needed in order to create the scoped access policies in AWS. Can be enabled by setting `var.pulsar_namespace_create` to `true`. | `string` | n/a | yes |
| <a name="input_pulsar_namespace_create"></a> [pulsar\_namespace\_create](#input\_pulsar\_namespace\_create) | Whether to create the Pulsar namespace if it doesn't already exist | `bool` | `false` | no |
| <a name="input_pulsar_operator_chart_name"></a> [pulsar\_operator\_chart\_name](#input\_pulsar\_operator\_chart\_name) | The name of the Helm chart to install | `string` | `"pulsar-operator"` | no |
| <a name="input_pulsar_operator_chart_repository"></a> [pulsar\_operator\_chart\_repository](#input\_pulsar\_operator\_chart\_repository) | The repository containing the Helm chart to install | `string` | `"https://charts.streamnative.io"` | no |
| <a name="input_pulsar_operator_chart_version"></a> [pulsar\_operator\_chart\_version](#input\_pulsar\_operator\_chart\_version) | The version of the Helm chart to install | `string` | `"0.7.2"` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ resource "kubernetes_namespace" "sn_system" {
}

resource "kubernetes_namespace" "pulsar" {
count = var.pulsar_namespace_create ? 1 : 0
metadata {
name = var.pulsar_namespace
}
Expand Down
8 changes: 7 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,14 @@ variable "public_subnet_ids" {
}

variable "pulsar_namespace" {
description = "The Kubernetes namespace that will be used for the Pulsar workload. This does not get created automatically, but is needed in order to create the scoped access policies in AWS. Can be enabled by setting `var.pulsar_namespace_create` to `true`."
type = string
description = "The Kubernetes namespace used for the Pulsar workload"
}

variable "pulsar_namespace_create" {
default = false
description = "Whether to create the Pulsar namespace if it doesn't already exist"
type = bool
}

variable "pulsar_operator_chart_name" {
Expand Down

0 comments on commit b1320ee

Please sign in to comment.