Class V1AuthorizationPolicySpec
Describes the V1AuthorizationPolicy spec.
Namespace: Neon.Kube.Resources.Istio
Assembly: Neon.Kube.Resources.dll
Syntax
public class V1AuthorizationPolicySpec
Constructors
V1AuthorizationPolicySpec()
Constructor.
Declaration
public V1AuthorizationPolicySpec()
Properties
Action
The action to take if the request is matched with the rules. Default is ALLOW if not specified.
Declaration
public AuthorizationPolicyAction Action { get; set; }
Property Value
Type | Description |
---|---|
AuthorizationPolicyAction |
Provider
Specifies detailed configuration of the CUSTOM action. Must be used only with CUSTOM action.
Declaration
public ExtensionProvider Provider { get; set; }
Property Value
Type | Description |
---|---|
ExtensionProvider |
Rules
A list of rules to match the request. A match occurs when at least one rule matches the request. If not set, the match will never occur. This is equivalent to setting a default of deny for the target workloads if the action is ALLOW.
Declaration
public List<AuthorizationPolicyRule> Rules { get; set; }
Property Value
Type | Description |
---|---|
List<AuthorizationPolicyRule> |
Selector
The selector decides where to apply the authorization policy. The selector will match with workloads in the same namespace as the authorization policy. If the authorization policy is in the root namespace, the selector will additionally match with workloads in all namespaces.
Declaration
public WorkloadSelector Selector { get; set; }
Property Value
Type | Description |
---|---|
WorkloadSelector |