plugins

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterResourcePluginsAnnotationKey = common.DefaultPrefix + "cluster-resource-plugins"

Variables

This section is empty.

Functions

func AddKatalystPluginIntoDefaultPlugins

func AddKatalystPluginIntoDefaultPlugins()

func PluginsHash

func PluginsHash(plugins map[string]Plugin) string

func ResolvePlugins

func ResolvePlugins(annotations map[string]string) (map[string]Plugin, error)

Types

type ClusterHandle

type ClusterHandle struct {
	DynamicLister map[schema.GroupVersionResource]cache.GenericLister
}

type Plugin

type Plugin interface {
	CollectClusterResources(
		ctx context.Context,
		nodes []*corev1.Node,
		pods []*corev1.Pod,
		handle ClusterHandle,
	) (allocatable, available corev1.ResourceList, err error)

	ClusterResourcesToCollect() sets.Set[schema.GroupVersionResource]
}

Jump to

Keyboard shortcuts

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