Documentation ¶
Index ¶
- Variables
- func CheckCacheSync[T comparable](logger logr.Logger, status map[T]bool) bool
- func CreateAggregatorClient(logger logr.Logger, opts ...agg.NewOption) aggregator.Interface
- func ExceptionNamespace() string
- func LeaderElectionRetryPeriod() time.Duration
- func NewConfigMapResolver(ctx context.Context, logger logr.Logger, kubeClient kubernetes.Interface, ...) engineapi.ConfigmapResolver
- func NewEngine(ctx context.Context, logger logr.Logger, configuration config.Configuration, ...) engineapi.Engine
- func NewExceptionSelector(ctx context.Context, logger logr.Logger, kyvernoClient versioned.Interface, ...) engineapi.PolicyExceptionSelector
- func ParseFlags(config Configuration, opts ...Option)
- func PolicyExceptionEnabled() bool
- func SetupMetrics(ctx context.Context, logger logr.Logger, ...) (metrics.MetricsConfigManager, context.CancelFunc)
- func SetupTracing(logger logr.Logger, name string, kubeClient kubernetes.Interface) context.CancelFunc
- func StartInformers[T startable](ctx context.Context, informers ...T)
- func StartInformersAndWaitForCacheSync(ctx context.Context, logger logr.Logger, informers ...informer) bool
- func WaitForCacheSync(ctx context.Context, logger logr.Logger, informers ...informer) bool
- type Configuration
- type ConfigurationOption
- func WithApiServerClient() ConfigurationOption
- func WithConfigMapCaching() ConfigurationOption
- func WithCosign() ConfigurationOption
- func WithDynamicClient() ConfigurationOption
- func WithFlagSets(flagsets ...*flag.FlagSet) ConfigurationOption
- func WithKubeconfig() ConfigurationOption
- func WithKyvernoClient() ConfigurationOption
- func WithKyvernoDynamicClient() ConfigurationOption
- func WithLeaderElection() ConfigurationOption
- func WithMetadataClient() ConfigurationOption
- func WithMetrics() ConfigurationOption
- func WithPolicyExceptions() ConfigurationOption
- func WithProfiling() ConfigurationOption
- func WithRegistryClient() ConfigurationOption
- func WithTracing() ConfigurationOption
- type Controller
- type Option
- type SetupResult
Constants ¶
This section is empty.
Variables ¶
View Source
var Context = context.Background()
Functions ¶
func CheckCacheSync ¶
func CheckCacheSync[T comparable](logger logr.Logger, status map[T]bool) bool
func CreateAggregatorClient ¶ added in v1.10.0
func ExceptionNamespace ¶ added in v1.10.0
func ExceptionNamespace() string
func LeaderElectionRetryPeriod ¶ added in v1.10.0
func NewConfigMapResolver ¶ added in v1.10.0
func NewConfigMapResolver( ctx context.Context, logger logr.Logger, kubeClient kubernetes.Interface, resyncPeriod time.Duration, ) engineapi.ConfigmapResolver
func NewEngine ¶ added in v1.10.0
func NewEngine( ctx context.Context, logger logr.Logger, configuration config.Configuration, metricsConfiguration config.MetricsConfiguration, jp jmespath.Interface, client dclient.Interface, rclient registryclient.Client, kubeClient kubernetes.Interface, kyvernoClient versioned.Interface, ) engineapi.Engine
func NewExceptionSelector ¶ added in v1.10.0
func ParseFlags ¶
func ParseFlags(config Configuration, opts ...Option)
func PolicyExceptionEnabled ¶ added in v1.10.0
func PolicyExceptionEnabled() bool
func SetupMetrics ¶
func SetupMetrics(ctx context.Context, logger logr.Logger, metricsConfiguration config.MetricsConfiguration, kubeClient kubernetes.Interface) (metrics.MetricsConfigManager, context.CancelFunc)
func SetupTracing ¶
func SetupTracing(logger logr.Logger, name string, kubeClient kubernetes.Interface) context.CancelFunc
func StartInformers ¶
Types ¶
type Configuration ¶
type Configuration interface { UsesMetrics() bool UsesTracing() bool UsesProfiling() bool UsesKubeconfig() bool UsesPolicyExceptions() bool UsesConfigMapCaching() bool UsesCosign() bool UsesRegistryClient() bool UsesLeaderElection() bool UsesKyvernoClient() bool UsesDynamicClient() bool UsesApiServerClient() bool UsesMetadataClient() bool UsesKyvernoDynamicClient() bool FlagSets() []*flag.FlagSet }
func NewConfiguration ¶
func NewConfiguration(options ...ConfigurationOption) Configuration
type ConfigurationOption ¶
type ConfigurationOption func(c *configuration)
func WithApiServerClient ¶ added in v1.10.0
func WithApiServerClient() ConfigurationOption
func WithConfigMapCaching ¶ added in v1.10.0
func WithConfigMapCaching() ConfigurationOption
func WithCosign ¶ added in v1.10.0
func WithCosign() ConfigurationOption
func WithDynamicClient ¶ added in v1.10.0
func WithDynamicClient() ConfigurationOption
func WithFlagSets ¶
func WithFlagSets(flagsets ...*flag.FlagSet) ConfigurationOption
func WithKubeconfig ¶
func WithKubeconfig() ConfigurationOption
func WithKyvernoClient ¶ added in v1.10.0
func WithKyvernoClient() ConfigurationOption
func WithKyvernoDynamicClient ¶ added in v1.10.0
func WithKyvernoDynamicClient() ConfigurationOption
func WithLeaderElection ¶ added in v1.10.0
func WithLeaderElection() ConfigurationOption
func WithMetadataClient ¶ added in v1.10.0
func WithMetadataClient() ConfigurationOption
func WithMetrics ¶
func WithMetrics() ConfigurationOption
func WithPolicyExceptions ¶ added in v1.10.0
func WithPolicyExceptions() ConfigurationOption
func WithProfiling ¶
func WithProfiling() ConfigurationOption
func WithRegistryClient ¶ added in v1.10.0
func WithRegistryClient() ConfigurationOption
func WithTracing ¶
func WithTracing() ConfigurationOption
type Controller ¶
func NewController ¶
func NewController(name string, c controllers.Controller, w int) Controller
type Option ¶ added in v1.10.0
type Option = func(*options)
func WithDefaultBurst ¶ added in v1.10.0
func WithDefaultQps ¶ added in v1.10.0
type SetupResult ¶ added in v1.10.0
type SetupResult struct { Logger logr.Logger Configuration config.Configuration MetricsConfiguration config.MetricsConfiguration MetricsManager metrics.MetricsConfigManager Jp jmespath.Interface KubeClient kubernetes.Interface LeaderElectionClient kubernetes.Interface RegistryClient registryclient.Client KyvernoClient versioned.Interface DynamicClient dynamic.Interface ApiServerClient apiserver.Interface MetadataClient metadata.Interface KyvernoDynamicClient dclient.Interface }
func Setup ¶
func Setup(config Configuration, name string, skipResourceFilters bool) (context.Context, SetupResult, context.CancelFunc)
Click to show internal directories.
Click to hide internal directories.