shootOperations

package
v1.2.1-0...-e31c98a Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ENVDnsDomainSuffix               = "AWS_DNS_DOMAIN_SUFFIX"
	ENVAwsMaintenanceAutoupdate      = "AWS_MAINTENANCE_AUTOUPDATE"
	ENVAwsMaintenanceAutoUpdateBegin = "AWS_MAINTENANCE_AUTOUPDATE_TWBEGIN"
	ENVAwsMaintenanceAutoUpdateEnd   = "AWS_MAINTENANCE_AUTOUPDATE_TWBEND"
	ENVSecretBindingRef              = "SECRET_BINDING_REF"
)

Variables

This section is empty.

Functions

func CheckReadinessAndUpdateShootClusterObj

func CheckReadinessAndUpdateShootClusterObj(gardenCs gardenClientSet.Interface, shootCluster *v1alpha1.ShootCluster) (err error)

func CreateShootCluster

func CreateShootCluster(sdkops common.SdkOperations, gardenCs gardenClientSet.Interface, shootCluster *v1alpha1.ShootCluster, log *logrus.Entry) (*v1beta1.Shoot, error)

func DefaultAwsConfig

func DefaultAwsConfig() *gApiV1beta.Shoot

func NewK8sCleaner

func NewK8sCleaner(cs kubernetes.Interface, log *logrus.Entry) *clusterCleaner

Types

type CollectionDeleter

type CollectionDeleter interface {
	DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
}

type Operator

type Operator interface {
	Sync(shootCluster *v1alpha1.ShootCluster) error
	Delete(shootCluster *v1alpha1.ShootCluster) error
}

type ShootOperator

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

func (*ShootOperator) Delete

func (so *ShootOperator) Delete(shootCluster *v1alpha1.ShootCluster) error

func (*ShootOperator) Sync

func (so *ShootOperator) Sync(shootCluster *v1alpha1.ShootCluster) error

type ShootOperatorFactory

type ShootOperatorFactory interface {
	Get(log *logrus.Entry) *ShootOperator
}

type SubnetGenerator

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

func NewSubnetGenerator

func NewSubnetGenerator(baseCIDR string) *SubnetGenerator

* Generates a new subnet generator. Requires a base subnet (baseCIDR) where all generated subnets will lie in

sng := NewsubnetGenerator("10.250.0.0/16") blockedCIDRs := map[string]struct{} {"10.250.0.0/24" : struct{}{}, "10.250.1.0/24" : struct{}{}} nextSn, _ := sng.GenerateSubnet(254)

func (*SubnetGenerator) GenerateNext24Subnet

func (sng *SubnetGenerator) GenerateNext24Subnet() (string, error)

func (*SubnetGenerator) GenerateNext25Subnet

func (sng *SubnetGenerator) GenerateNext25Subnet() (string, error)

func (*SubnetGenerator) GenerateSubnet

func (sng *SubnetGenerator) GenerateSubnet(size int) (string, error)

func (*SubnetGenerator) Init

func (sng *SubnetGenerator) Init(blockedCIDRs []*net.IPNet)

initializes the generator with the given map of CIDRs. After the call, no generated subnet will overlap with the ones given in blockedCIDRs

Directories

Path Synopsis
testUtils
Package testUtils is a generated GoMock package.
Package testUtils is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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