Skip to main content

load_network_policies

Function load_network_policies 

Source
pub(crate) fn load_network_policies(
    root: &Path,
    profile: &str,
    variables: &BTreeMap<String, String>,
) -> Result<Vec<NetworkPolicyDefinition>, ProjectError>
Expand description

Load all network policy definitions from <root>/network-policies/.

Returns an empty vec if network-policies/ doesn’t exist (the directory is optional).