GKE Hub v1 API - Class PolicyController (2.3.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
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
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
TypeDescription
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
TypeDescription
RepeatedFieldstring

HasAuditIntervalSeconds

public bool HasAuditIntervalSeconds { get; }

Gets whether the "audit_interval_seconds" field is set

Property Value
TypeDescription
bool

HasTemplateLibraryInstalled

public bool HasTemplateLibraryInstalled { get; }

Gets whether the "template_library_installed" field is set

Property Value
TypeDescription
bool

LogDeniesEnabled

public bool LogDeniesEnabled { get; set; }

Logs all denies and dry run failures.

Property Value
TypeDescription
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
TypeDescription
bool

TemplateLibraryInstalled

public bool TemplateLibraryInstalled { get; set; }

Installs the default template library along with Policy Controller.

Property Value
TypeDescription
bool