ArmContainerServiceModelFactory.ManagedClusterGuardrailsProfile Method

Definition

Initializes a new instance of ManagedClusterGuardrailsProfile.

public static Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfile ManagedClusterGuardrailsProfile (System.Collections.Generic.IEnumerable<string> systemExcludedNamespaces = default, string version = default, Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel level = default, System.Collections.Generic.IEnumerable<string> excludedNamespaces = default);
static member ManagedClusterGuardrailsProfile : seq<string> * string * Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfileLevel * seq<string> -> Azure.ResourceManager.ContainerService.Models.ManagedClusterGuardrailsProfile
Public Shared Function ManagedClusterGuardrailsProfile (Optional systemExcludedNamespaces As IEnumerable(Of String) = Nothing, Optional version As String = Nothing, Optional level As ManagedClusterGuardrailsProfileLevel = Nothing, Optional excludedNamespaces As IEnumerable(Of String) = Nothing) As ManagedClusterGuardrailsProfile

Parameters

systemExcludedNamespaces
IEnumerable<String>

List of namespaces specified by AKS to be excluded from Guardrails.

version
String

The version of constraints to use.

level
ManagedClusterGuardrailsProfileLevel

The guardrails level to be used. By default, Guardrails is enabled for all namespaces except those that AKS excludes via systemExcludedNamespaces.

excludedNamespaces
IEnumerable<String>

List of namespaces excluded from guardrails checks.

Returns

A new ManagedClusterGuardrailsProfile instance for mocking.

Applies to