seedmanager

package
v0.0.0-...-b43e092 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName is the name of this admission plugin.
	PluginName = "ShootSeedManager"
)

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type SeedManager

type SeedManager struct {
	*admission.Handler
	// contains filtered or unexported fields
}

SeedManager contains listers and and admission handler.

func New

func New() (*SeedManager, error)

New creates a new SeedManager admission plugin.

func (*SeedManager) Admit

func (h *SeedManager) Admit(a admission.Attributes) error

Admit tries to find an adequate Seed cluster for the given cloud provider profile and region, and writes the name into the Shoot specification. It also ensures that protected Seeds are only usable by Shoots in the garden namespace.

func (*SeedManager) SetInternalGardenInformerFactory

func (h *SeedManager) SetInternalGardenInformerFactory(f gardeninformers.SharedInformerFactory)

SetInternalGardenInformerFactory gets Lister from SharedInformerFactory.

func (*SeedManager) ValidateInitialization

func (h *SeedManager) ValidateInitialization() error

ValidateInitialization checks whether the plugin was correctly initialized.

Jump to

Keyboard shortcuts

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