containerPolicyWithoutItem

Creates or updates a ContainerPolicyWithoutItem using a DSL builder.

This function allows building container-level policies only. If a currentPolicy is provided, its settings will be used as a base.

Example:

val policy = containerPolicyWithoutItem {
get(ContainerPolicyValues.DEFAULT)
update(...)
}

Return

ContainerPolicyWithoutItem

Parameters

currentPolicy

optional existing policy to use as a base

buildBlock

container-level policy configuration