externalplugincfg

package
v1.33.13 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ConfigMapName name of the config map for external plugins
	ConfigMapName = "lighthouse-external-plugins"
)

Variables

This section is empty.

Functions

func CheckResourceExists

func CheckResourceExists(ctx context.Context, client kubernetes.Interface, namespace string, r Resource) (bool, error)

CheckResourceExists checks if a service exists

func LoadDisabledPlugins

func LoadDisabledPlugins(l *logrus.Entry, client kubernetes.Interface, namespace string) ([]string, error)

Types

type ExternalPlugin

type ExternalPlugin struct {
	// Name of the plugin.
	Name string `json:"name"`
	// RequiredResources the kubernetes resources required to enable this external plugin
	RequiredResources []Resource `json:"requiredResources,omitempty"`
}

ExternalPlugin holds configuration for registering an external plugin in prow.

type Resource

type Resource struct {
	// Kind of the resource.
	Kind string `json:"kind"`
	// Name of the resource.
	Name string `json:"name"`
	// Namespace of the resource.
	Namespace string `json:"namespace"`
}

Resource represents a kubernetes resource

func (*Resource) String

func (r *Resource) String() string

Jump to

Keyboard shortcuts

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