Skip to content

Commit

Permalink
Merge pull request #11 from DrFaust92/r/labels
Browse files Browse the repository at this point in the history
optional extra labels
  • Loading branch information
DrFaust92 authored May 16, 2021
2 parents e3aeda1 + d9e86c6 commit 58b0e50
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ No modules.
| <a name="input_annotations"></a> [annotations](#input\_annotations) | Optional annotations to add to EFS CSI driver resources | `map(string)` | `{}` | no |
| <a name="input_csi_controller_tolerations"></a> [csi\_controller\_tolerations](#input\_csi\_controller\_tolerations) | CSI driver controller tolerations | `list(map(string))` | `[]` | no |
| <a name="input_extra_node_selectors"></a> [extra\_node\_selectors](#input\_extra\_node\_selectors) | A map of extra node selectors for all components | `map(string)` | `{}` | no |
| <a name="input_labels"></a> [labels](#input\_labels) | A map of extra labels for all resources | `map(string)` | `{}` | no |
| <a name="input_log_level"></a> [log\_level](#input\_log\_level) | The log level for the CSI Driver controller | `number` | `5` | no |
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace for EFS CSI driver resources | `string` | `"kube-system"` | no |
| <a name="input_node_extra_node_selectors"></a> [node\_extra\_node\_selectors](#input\_node\_extra\_node\_selectors) | A map of extra node selectors for node pods | `map(string)` | `{}` | no |
Expand Down
2 changes: 1 addition & 1 deletion daemonset.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "kubernetes_daemonset" "efs" {

template {
metadata {
labels = local.labels
labels = merge(local.labels, var.labels)
annotations = var.annotations
}

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ variable "node_extra_node_selectors" {
description = "A map of extra node selectors for node pods"
default = {}
type = map(string)
}

variable "labels" {
description = "A map of extra labels for all resources"
default = {}
type = map(string)
}

0 comments on commit 58b0e50

Please sign in to comment.