Skip to content

Commit 1a2c65d

Browse files
authored
Merge pull request #10 from opsworks-co/feat/namespace-labels
feat: Namespace labels
2 parents ffa1852 + 72889a4 commit 1a2c65d

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ In the above diagram, you can see the components and their relations (PostgreSQL
6262
| <a name="input_database_password"></a> [database\_password](#input\_database\_password) | Password to access PostgreSQL database | `string` | n/a | yes |
6363
| <a name="input_gitlab_chart_version"></a> [gitlab\_chart\_version](#input\_gitlab\_chart\_version) | Version of the gitlab chart | `string` | `"7.8.1"` | no |
6464
| <a name="input_ldap_password"></a> [ldap\_password](#input\_ldap\_password) | LDAP password | `string` | `""` | no |
65+
| <a name="input_namespace_labels"></a> [namespace\_labels](#input\_namespace\_labels) | Labels for GitLab namespace | `map(string)` | `{}` | no |
6566
| <a name="input_omniauth_providers"></a> [omniauth\_providers](#input\_omniauth\_providers) | OmniAuth providers | `map(string)` | `{}` | no |
6667
| <a name="input_redis_password"></a> [redis\_password](#input\_redis\_password) | Password to access Redis database | `string` | n/a | yes |
6768
| <a name="input_release_max_history"></a> [release\_max\_history](#input\_release\_max\_history) | Maximum saved revisions per release | `number` | `10` | no |

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ data "aws_region" "current" {}
66

77
resource "kubernetes_namespace" "gitlab" {
88
metadata {
9-
name = local.release_namespace
9+
name = local.release_namespace
10+
labels = var.namespace_labels
1011
}
1112
}
1213

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ variable "ldap_password" {
7070
default = ""
7171
}
7272

73+
variable "namespace_labels" {
74+
description = "Labels for GitLab namespace"
75+
type = map(string)
76+
default = {}
77+
}
78+
7379
variable "buckets_lifecycles" {
7480
description = "Lifecycle rules for buckets"
7581
type = map(string)

0 commit comments

Comments
 (0)