Closed jvosantos closed 3 years ago
Similarly with just trying to specify linux_parameters.tmpfs
values
This is a restriction with terraform which exists in the latest 1.0. We'll be able to do it once the optional
flag is no longer an experimental feature.
If the value is defined in the variable type, it has to be set. The only way around it is to find all the necessary inputs and set all the ones that you do not care about to null
.
@nitrocode it appears this has now happened https://developer.hashicorp.com/terraform/language/expressions/type-constraints#optional-object-type-attributes
+1 to this
Describe the Bug
Capabilities cannot be defined without defining shared memory and swap values, leading to specifying options that are optional and don't have an equivalent when specified. Unable for instance to add the capability SYS_BOOT to a container without specifying shared memory. Shared memory does not allow for a value of 0, so unable to add SYS_BOOT without giving shared memory to a container.
Expected Behavior
Capacity to specify capabilities without specifying other options inside
linux_parameters
.Steps to Reproduce
Steps to reproduce the behavior: main.tf
terraform plan