Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessOPA ¶
func ProcessOPA(ctx context.Context, obj map[string]any, req admission.Request, configuration models.Configuration, iConfig models.InsightsConfig) (models.ReportInfo, error)
ProcessOPA runs all CustomChecks against the provided Kubernetes object.
func ProcessOPAV1 ¶
func ProcessOPAV1(ctx context.Context, obj map[string]any, resourceName, apiGroup, resourceKind, resourceNamespace string, check opa.OPACustomCheck, checkInstances []opa.CheckSetting, insightsInfo *rego.InsightsInfo) ([]opa.ActionItem, error)
ProcessOPAV1 runs a V1 CustomCheck against a Kubernetes object, returning action items and potentially multiple wrapped errors (as returned by multiple instances; CheckSettings associated with a CustomCheck).
func ProcessOPAV2 ¶
func ProcessOPAV2(ctx context.Context, obj map[string]any, resourceName, apiGroup, resourceKind, resourceNamespace string, check opa.OPACustomCheck, opaCustomLibs []opa.OPACustomLibrary, insightsInfo *rego.InsightsInfo) ([]opa.ActionItem, error)
ProcessOPAV2 runs a V2 CustomCheck against a Kubernetes object, returning action items and any error encountered while processing the check.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.