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.
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.
Click to show internal directories.
Click to hide internal directories.