caik8s_impl

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterResourceInitialStateProviderTask = gcpcommon.NewCAIInitialResourceStateProviderTask(
	taskid.NewImplementationID(k8saudit.InitialResourceStateProviderRef, "cai"),
	caik8s.ClusterResourceTaskIDs,
	extractK8sIdentity,
	initialResourceStateKey,
	extractK8sResourceBody,
	func(states []gcpcommon.CAIActiveAssetState[*k8saudit.ResourceIdentity]) k8saudit.InitialResourceStateProvider {
		return buildCAIInitialResourceStateProvider(states)
	},
)

ClusterResourceInitialStateProviderTask supplies the audit log parser with the resource manifests CAI observed before the inspection window.

View Source
var ClusterResourceSuite = gcpcommon.NewCAITaskSuite(gcpcommon.CAITaskSuiteConfig[*k8saudit.ResourceIdentity]{
	TaskIDs: caik8s.ClusterResourceTaskIDs,
	FetcherDependencies: []coretask.Dependency{
		k8scommon.ClusterIdentityTaskID.Ref(),
		k8scommon.InputKindFilterTaskID.Ref(),
		k8scommon.InputNamespaceFilterTaskID.Ref(),
	},
	ResolveSearchTarget: resolveClusterResourceSearchTarget,
	PreprocessRawMap:    preprocessK8sTemporalAssetMap,
	ExtractIdentity:     extractK8sIdentity,
	IdentityGroupKey: func(identity *k8saudit.ResourceIdentity) string {
		return identity.String()
	},
	FormatLogSummary: formatClusterResourceLogSummary,
	MapperDependencies: []coretask.Dependency{
		k8scommon.ClusterIdentityTaskID.Ref(),
	},
	MapInitialRevision: mapClusterResourceInitialRevision,
})

ClusterResourceSuite bundles the 5 CAI tasks for Kubernetes cluster resource snapshots.

View Source
var GKEResourceInitialStateProviderTask = gcpcommon.NewCAIInitialResourceStateProviderTask(
	taskid.NewImplementationID(gkeapiaudit.InitialResourceStateProviderRef, "cai"),
	caik8s.GKEResourceTaskIDs,
	extractGKEIdentity,
	gkeIdentityGroupKey,
	extractGKEResourceBody,
	func(states []gcpcommon.CAIActiveAssetState[gkeResourceIdentity]) gkeapiaudit.InitialResourceStateProvider {
		return buildCAIGKEInitialResourceStateProvider(states)
	},
)

GKEResourceInitialStateProviderTask supplies initial GKE resource manifests to the audit log parser.

View Source
var GKEResourceSuite = gcpcommon.NewCAITaskSuite(gcpcommon.CAITaskSuiteConfig[gkeResourceIdentity]{
	TaskIDs: caik8s.GKEResourceTaskIDs,
	FetcherDependencies: []coretask.Dependency{
		k8scommon.ClusterIdentityTaskID.Ref(),
	},
	ResolveSearchTarget: resolveGKEResourceSearchTarget,
	ExtractIdentity:     extractGKEIdentity,
	IdentityGroupKey:    gkeIdentityGroupKey,
	FormatLogSummary:    formatGKEResourceLogSummary,
	MapperDependencies: []coretask.Dependency{
		k8scommon.ClusterIdentityTaskID.Ref(),
		caik8s.GKEResourceTaskIDs.RawLog.Ref(),
	},
	MapInitialRevision: mapGKEResourceInitialRevision,
})

GKEResourceSuite bundles the 5 CAI tasks for GKE Cluster and NodePool snapshots.

Functions

func Register

func Register(registry coreinspection.InspectionTaskRegistry) error

Register registers all googlecloudcaik8s inspection tasks to the registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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