Class PolicyController (2.0.0)

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

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
NameDescription
otherPolicyController

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
TypeDescription
Int64

Enabled

public bool Enabled { get; set; }

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

Property Value
TypeDescription
Boolean

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
TypeDescription
RepeatedField<System.String>

HasAuditIntervalSeconds

public bool HasAuditIntervalSeconds { get; }

Gets whether the "audit_interval_seconds" field is set

Property Value
TypeDescription
Boolean

HasTemplateLibraryInstalled

public bool HasTemplateLibraryInstalled { get; }

Gets whether the "template_library_installed" field is set

Property Value
TypeDescription
Boolean

LogDeniesEnabled

public bool LogDeniesEnabled { get; set; }

Logs all denies and dry run failures.

Property Value
TypeDescription
Boolean

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
TypeDescription
Boolean

TemplateLibraryInstalled

public bool TemplateLibraryInstalled { get; set; }

Installs the default template library along with Policy Controller.

Property Value
TypeDescription
Boolean