externalplugincfg

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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