# Functions
RecordComplianceEvent creates an event on the "parent" policy of the given object (found through ownerReferences, which is set by the policy framework) which can be recognized by the policy framework to update the parent policy's status.
UpdateCondition sets the Compliance condition in the given status to match the ComplianceState, and to have the given reason and message.
# Constants
ComplianceConditionType is the condition type that indicates whether the policy is compliant.
No description provided by the author
No description provided by the author
ReasonNoCompliantObjects should be used when the policy requires certain objects to be present on the cluster, but they are not found.
ReasonPolicyCompliant should be used when the policy was evaluated without error, and found to be compliant.
ReasonPolicyError should be used when the policy is not compliant due to an error that occurred while evaluating the policy.
ReasonViolationsFound should be used when the policy is not compliant due to objects found on the cluster that cause violations.
No description provided by the author
# Variables
GroupVersion is group version used to register these objects.
No description provided by the author
# Structs
No description provided by the author
ObjectMetadata contains the resource metadata for an object being processed by the policy.
No description provided by the author
PolicyType is the Schema for the policytypes API.
PolicyTypeList contains a list of PolicyType.
PolicyTypeSpec includes all fields that should be implemented in the spec of all policy types in the policy framework.
PolicyTypeStatus includes fields that are useful for policy types in the policy framework to implement in order to report status.
No description provided by the author
# Interfaces
+kubebuilder:object:generate=false.
# Type aliases
ComplianceState shows the state of enforcement+kubebuilder:validation:Enum=Compliant;NonCompliant;UnknownCompliancy.
+kubebuilder:validation:MinLength=1.