Terraform k8s deployments - Handle runAsUser/runAsGroup/run_as_non_root when not defined for (#53)
Handling use-case where kubernetes platform is openshift and runAsUser/runAsGroup is not defined by a user; Openshift automatically assigns runAsUser/runAsGroup.
This commit is contained in:
1 parent
770afe9cd3
commit
2b8b75199a
6 files changed
+52
-18
No files matched your search
+4
-3
@@ -242,8 +242,9 @@ variable "fleet" {
|
||||
extra_volumes = optional(list(any), [])
|
||||
extra_volume_mounts = optional(list(any), [])
|
||||
security_context = object({
|
||||
run_as_user = optional(number, 3333)
|
||||
run_as_group = optional(number, 3333)
|
||||
run_as_user = optional(number, null)
|
||||
run_as_group = optional(number, null)
|
||||
run_as_non_root = optional(bool, true)
|
||||
})
|
||||
})
|
||||
description = "Used to configure Fleet specific values for use in the Fleet deployment, migration job, and vuln-processing cron job."
|
||||
@@ -353,4 +354,4 @@ variable "gke" {
|
||||
})
|
||||
})
|
||||
description = "Used to configure gke specific values for use in the Fleet deployment, migration job, and vuln-processing cron job."
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user