Skip to content

Commit

Permalink
feat: added support for priorityClassName definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Nix committed Jun 15, 2022
1 parent efefb37 commit dc0b1cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ The `main.tf` file will configure a Kubernetes Secret and DaemonSet which will t
| <a name="input_pod_cpu_request"></a> [pod\_cpu\_request](#input\_pod\_cpu\_request) | The amount of CPU units to request for the Lacework datacollector pod | `string` | `"200m"` | no |
| <a name="input_pod_mem_limit"></a> [pod\_mem\_limit](#input\_pod\_mem\_limit) | The limit of Memory for the Lacework datacollector pod | `string` | `"1450Mi"` | no |
| <a name="input_pod_mem_request"></a> [pod\_mem\_request](#input\_pod\_mem\_request) | The amount of Memory to request for the Lacework datacollector pod | `string` | `"512Mi"` | no |
| <a name="input_pod_priority_class_name"></a> [pod\_priority\_class\_name](#input\_pod\_priority\_class\_name) | The Kubernetes Priority Class to use in the pod template | `string` | `""` | no |
| <a name="input_pod_service_account"></a> [pod\_service\_account](#input\_pod\_service\_account) | The Kubernetes ServiceAccount to use in the pod template | `string` | `""` | no |
| <a name="input_revision_history_limit"></a> [revision\_history\_limit](#input\_revision\_history\_limit) | The number of revision hitory to keep. | `number` | `10` | no |
| <a name="input_tolerations"></a> [tolerations](#input\_tolerations) | A list of Kubernetes Tolerations to apply to the DaemonSet definition | `list(map(string))` | <pre>[<br> {<br> "effect": "NoSchedule",<br> "key": "node-role.kubernetes.io/master"<br> }<br>]</pre> | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ resource "kubernetes_daemonset" "lacework_datacollector" {
}
}

priority_class_name = var.pod_priority_class_name
service_account_name = var.pod_service_account

container {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ variable "revision_history_limit" {
default = 10
}

variable "pod_priority_class_name" {
type = string
description = "The Kubernetes Priority Class to use in the pod template"
default = ""
}

variable "pod_service_account" {
type = string
description = "The Kubernetes ServiceAccount to use in the pod template"
Expand Down

0 comments on commit dc0b1cc

Please sign in to comment.