gardener

package
v0.0.0-...-5f509e1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(kubeconfig []byte) (*restclient.Config, error)

func FindExtension

func FindExtension(shoot *gardener_types.Shoot) *gardener_types.Extension

Types

type AdminKubeconfigRequester

type AdminKubeconfigRequester interface {
	Create(ctx context.Context, obj gardenerClient.Object, subResource gardenerClient.Object, opts ...gardenerClient.SubResourceCreateOption) error
}

type AuditLogConfig

type AuditLogConfig struct {
	TenantID   string `json:"tenantID"`
	ServiceURL string `json:"serviceURL"`
	SecretName string `json:"secretName"`
}

type AuditLogConfigurator

type AuditLogConfigurator interface {
	CanEnableAuditLogsForShoot(seedName string) bool
	ConfigureAuditLogs(logger logrus.FieldLogger, shoot *gardener_types.Shoot, seed gardener_types.Seed) (bool, error)
}

func NewAuditLogConfigurator

func NewAuditLogConfigurator(auditLogTenantConfigPath string) AuditLogConfigurator

type AuditlogExtensionConfig

type AuditlogExtensionConfig struct {
	metav1.TypeMeta `json:",inline"`

	// Type is the type of auditlog service provider.
	Type string `json:"type"`
	// TenantID is the id of the tenant.
	TenantID string `json:"tenantID"`
	// ServiceURL is the URL of the auditlog service.
	ServiceURL string `json:"serviceURL"`
	// SecretReferenceName is the name of the reference for the secret containing the auditlog service credentials.
	SecretReferenceName string `json:"secretReferenceName"`
}

AuditlogConfig configuration resource

type Client

type Client interface {
	Create(ctx context.Context, shoot *v1beta1.Shoot, opts v1.CreateOptions) (*v1beta1.Shoot, error)
	Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Shoot, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Shoot, err error)
}

type GardenerProvisioner

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

func NewProvisioner

func NewProvisioner(
	namespace string,
	shootClient Client,
	factory dbsession.Factory,
	policyConfigMapName string, maintenanceWindowConfigPath string) *GardenerProvisioner

func (*GardenerProvisioner) DeprovisionCluster

func (g *GardenerProvisioner) DeprovisionCluster(cluster model.Cluster, operationId string) (model.Operation, apperrors.AppError)

func (*GardenerProvisioner) ProvisionCluster

func (g *GardenerProvisioner) ProvisionCluster(cluster model.Cluster, operationId string) apperrors.AppError

func (*GardenerProvisioner) UpgradeCluster

func (g *GardenerProvisioner) UpgradeCluster(clusterID string, upgradeConfig model.GardenerConfig) apperrors.AppError

type KubeconfigProvider

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

func NewKubeconfigProvider

func NewKubeconfigProvider(gardenerShootClient Client, adminKubeconfigRequest AdminKubeconfigRequester, secretsClient v12.SecretInterface) KubeconfigProvider

func (KubeconfigProvider) FetchFromRequest

func (kp KubeconfigProvider) FetchFromRequest(shootName string) ([]byte, error)

type KymaInstallationState

type KymaInstallationState string

func (KymaInstallationState) String

func (s KymaInstallationState) String() string

type ProvisioningState

type ProvisioningState string

func (ProvisioningState) String

func (s ProvisioningState) String() string

type Reconciler

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

func NewReconciler

func NewReconciler(
	mgr ctrl.Manager,
	dbsFactory dbsession.Factory,
	auditLogConfigurator AuditLogConfigurator) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

type ShootClient

type ShootClient interface {
	List(ctx context.Context, opts metav1.ListOptions) (*gardener_Types.ShootList, error)
}

type ShootController

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

func NewShootController

func NewShootController(
	mgr manager.Manager,
	dbsFactory dbsession.Factory,
	auditLogTenantConfigPath string) (*ShootController, error)

func (*ShootController) StartShootController

func (sc *ShootController) StartShootController() error

type ShootProvider

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

func NewShootProvider

func NewShootProvider(shootClient ShootClient) ShootProvider

func (ShootProvider) Get

func (s ShootProvider) Get(runtimeID string, tenant string) (gardener_Types.Shoot, apperrors.AppError)

type TimeWindow

type TimeWindow struct {
	Begin string
	End   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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