func BuildCacheOptions()

in pkg/config/runtime_config.go [92:108]


func BuildCacheOptions() cache.Options {
	cacheOptions := cache.Options{
		ReaderFailOnMissingInformer: true,
		ByObject: map[client.Object]cache.ByObject{
			&corev1.Pod{}: {
				Transform: k8s.StripDownPodTransformFunc,
			},
			&corev1.Service{}: {
				Transform: k8s.StripDownServiceTransformFunc,
			},
			&corev1.Namespace{}:           {},
			&networkingv1.NetworkPolicy{}: {},
			&v1alpha1.PolicyEndpoint{}:    {},
		},
	}
	return cacheOptions
}