gardener

package
v0.0.0-...-ddad2a0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Name           string
	ProviderType   string
	AccountID      string
	SubAccountID   string
	TechnicalID    string
	TenantName     string
	CredentialName string
	CredentialData map[string][]byte
}

Account is a representation of the skr accounts

type Client

type Client struct {
	Namespace           string
	GardenerClientset   gclientset.Interface
	KubernetesClientset kubernetes.Interface
}

func NewClient

func NewClient(kubeconfig string) (*Client, error)

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller is the controller that watch for shoots and secrets

func NewController

func NewController(client *Client, provider string, accountsChan chan<- *Account, logger *zap.SugaredLogger) (*Controller, error)

NewController return a new controller for watching shoots and secrets

func (*Controller) Run

func (c *Controller) Run(parentCtx context.Context, parentwg *sync.WaitGroup)

Run will set up the event handlers for secrets and shoots, as well as syncing informer caches.

Jump to

Keyboard shortcuts

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