seedmanager

package
v0.0.0-...-be4dc66 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 13 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 (s *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) AssignReadyFunc

func (s *SeedManager) AssignReadyFunc(f admission.ReadyFunc)

AssignReadyFunc assigns the ready function to the admission handler.

func (*SeedManager) SetInternalGardenInformerFactory

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

SetInternalGardenInformerFactory gets Lister from SharedInformerFactory.

func (*SeedManager) ValidateInitialization

func (s *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