gardener

package
v0.0.0-...-f99419a Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// Namespace holds the gardener project namespace used by the client.
	Namespace string
	// GClientset holds the gardener clientset.
	GClientset gclientset.Interface
	// KClientset holds the kubernetes clientset.
	KClientset kubernetes.Interface
}

Client holds the kubernetes and gardener clientset configuration.

func NewClient

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

NewClient returns a new Client with Gardener and Kubernetes clientset from the given kubeconfig.

type Cluster

type Cluster struct {
	// ProviderType is the name of the infrastructure provider.
	ProviderType string
	// Region is the region name where the Shoot is created.
	Region string
	// TechnicalID is the technical id of the Shoot that is use for tagging all the resources created in the infrastructure.
	TechnicalID string
	// CredentialData is the provider secret data.
	CredentialData map[string][]byte
	// AccountID is the SCP account id link to the cluster.
	AccountID string
	// SubAccountID is the SCP subaccount id link to the cluster.
	SubAccountID string
	// Deleted is a flag that mark the cluster has being destroyed.
	Deleted bool
	// Trial is a flag that tell if the cluster is a trial one or not
	Trial bool
}

Cluster is a representation of a SKR cluster.

type Controller

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

Controller represent the controller configuration needed to watch for shoots and secrets.

func NewController

func NewController(client *Client, provider string, clusterChannel chan<- *Cluster, logger log.Logger) (*Controller, error)

NewController return a new controller for watching shoots and secrets.

func (*Controller) Run

func (c *Controller) Run(stop <-chan struct{}) error

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