GKE Hub v1 API - Class PolicyController (2.5.0)

public sealed class PolicyController : IMessage<PolicyController>, IEquatable<PolicyController>, IDeepCloneable<PolicyController>, IBufferMessage, IMessage

Reference documentation and code samples for the GKE Hub v1 API class PolicyController.

Configuration for Policy Controller

Inheritance

object > PolicyController

Namespace

Google.Cloud.GkeHub.V1.ConfigManagement

Assembly

Google.Cloud.GkeHub.V1.dll

Constructors

PolicyController()

public PolicyController()

PolicyController(PolicyController)

public PolicyController(PolicyController other)
Parameter
Name Description
other PolicyController

Properties

AuditIntervalSeconds

public long AuditIntervalSeconds { get; set; }

Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.

Property Value
Type Description
long

Enabled

public bool Enabled { get; set; }

Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.

Property Value
Type Description
bool

ExemptableNamespaces

public RepeatedField<string> ExemptableNamespaces { get; }

The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.

Property Value
Type Description
RepeatedFieldstring

HasAuditIntervalSeconds

public bool HasAuditIntervalSeconds { get; }

Gets whether the "audit_interval_seconds" field is set

Property Value
Type Description
bool

HasTemplateLibraryInstalled

public bool HasTemplateLibraryInstalled { get; }

Gets whether the "template_library_installed" field is set

Property Value
Type Description
bool

LogDeniesEnabled

public bool LogDeniesEnabled { get; set; }

Logs all denies and dry run failures.

Property Value
Type Description
bool

ReferentialRulesEnabled

public bool ReferentialRulesEnabled { get; set; }

Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.

Property Value
Type Description
bool

TemplateLibraryInstalled

public bool TemplateLibraryInstalled { get; set; }

Installs the default template library along with Policy Controller.

Property Value
Type Description
bool