complianceeventssync

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GVRPolicy = schema.GroupVersionResource{
		Group:    "policy.open-cluster-management.io",
		Version:  "v1",
		Resource: "policies",
	}
)

Functions

func DisabledEventsRecorder

func DisabledEventsRecorder(
	ctx context.Context,
	managedClient dynamic.Interface,
	clusterNamespace string,

	eventsQueue workqueue.RateLimitingInterface,
	initialResourceVersion string,
)

DisabledEventsRecorder watches for deleted policies and records disabled compliance events on the compliance history API. Set initialResourceVersion to the list query of policies in the managed cluster namespace from before the spec-sync starting to avoid missing events.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL