# Functions
No description provided by the author
GetClusterLevelWithTimeout keeps polling to get the object for timeout seconds until wantFound is met (true for found, false for not found).
GetComplianceState parses status field of configurationPolicy to get compliance.
GetFieldFromSecret parses data field of secrets for the specified field.
GetLastEvaluated parses the configuration policy and returns the status.lastEvaluated and status.lastEvaluatedGeneration fields.
No description provided by the author
GetMetrics execs into the config-policy-controller pod and curls the metrics endpoint, filters the response with the given patterns, and returns the value(s) for the matching metric(s).
No description provided by the author
GetStatusMessage parses status field to get message.
GetWithTimeout keeps polling to get the object for timeout seconds until wantFound is met (true for found, false for not found).
Kubectl executes kubectl commands.
ParseYaml read given yaml file and unmarshal it to &unstructured.Unstructured{}.
Pause sleep for given seconds.