extender

package
v0.0.0-...-ea206c9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShootRuntimeIDAnnotation          = "infrastructuremanager.kyma-project.io/runtime-id"
	ShootLicenceTypeAnnotation        = "infrastructuremanager.kyma-project.io/licence-type"
	RuntimeIDLabel                    = "kyma-project.io/runtime-id"
	ShootRestrictedEUAccessAnnotation = "support.gardener.cloud/eu-access-for-cluster-nodes"
)
View Source
const (
	DefaultAWSCloudProfileName       = "aws"
	DefaultAzureCloudProfileName     = "az"
	DefaultGCPCloudProfileName       = "gcp"
	DefaultOpenStackCloudProfileName = "converged-cloud-kyma"
)
View Source
const (
	RuntimeGlobalAccountLabel = "kyma-project.io/global-account-id"
	RuntimeSubaccountLabel    = "kyma-project.io/subaccount-id"
	ShootGlobalAccountLabel   = "account"
	ShootSubAccountLabel      = "subaccount"
)
View Source
const NetworkFilterType = "shoot-networking-filter"
View Source
const (
	OidcExtensionType = "shoot-oidc-service"
)

Variables

This section is empty.

Functions

func CanEnableExtension

func CanEnableExtension(runtime imv1.Runtime) bool

func ExtendWithAnnotations

func ExtendWithAnnotations(runtime imv1.Runtime, shoot *gardener.Shoot) error

func ExtendWithCertConfig

func ExtendWithCertConfig(_ imv1.Runtime, shoot *gardener.Shoot) error

func ExtendWithCloudProfile

func ExtendWithCloudProfile(runtime imv1.Runtime, shoot *gardener.Shoot) error

func ExtendWithExposureClassName

func ExtendWithExposureClassName(runtime imv1.Runtime, shoot *gardener.Shoot) error

ExposureClassName is required only for OpenStack

func ExtendWithLabels

func ExtendWithLabels(runtime imv1.Runtime, shoot *gardener.Shoot) error

func ExtendWithNetworkFilter

func ExtendWithNetworkFilter(runtime imv1.Runtime, shoot *gardener.Shoot) error

func ExtendWithOIDC

func ExtendWithOIDC(runtime imv1.Runtime, shoot *gardener.Shoot) error

func ExtendWithTolerations

func ExtendWithTolerations(runtime imv1.Runtime, shoot *gardener.Shoot) error

func NewDNSExtender

func NewDNSExtender(secretName, domainPrefix, dnsProviderType string) func(runtime imv1.Runtime, shoot *gardener.Shoot) error

func NewKubernetesExtender

func NewKubernetesExtender(defaultKubernetesVersion string) func(runtime imv1.Runtime, shoot *gardener.Shoot) error

NewKubernetesExtender creates a new Kubernetes extender function. It sets the Kubernetes version of the Shoot to the version specified in the Runtime. If the version is not specified in the Runtime, it sets the version to the `defaultKubernetesVersion`, set in `converter_config.json`. It sets the EnableStaticTokenKubeconfig field of the Shoot to false.

func NewMaintenanceExtender

func NewMaintenanceExtender(enableKubernetesVersionAutoUpdate, enableMachineImageVersionAutoUpdate bool) func(runtime imv1.Runtime, shoot *gardener.Shoot) error

func NewProviderExtender

func NewProviderExtender(enableIMDSv2 bool, defaultMachineImageName, defaultMachineImageVersion string) func(runtime imv1.Runtime, shoot *gardener.Shoot) error

Types

type ControlPlaneProviderFunc

type ControlPlaneProviderFunc func(zones []string) ([]byte, error)

type DNSExtensionProviderConfig

type DNSExtensionProviderConfig struct {
	// APIVersion is gardener extension api version
	APIVersion string `json:"apiVersion"`
	// DnsProviderReplication indicates whether dnsProvider replication is on
	DNSProviderReplication *DNSProviderReplication `json:"dnsProviderReplication,omitempty"`
	// Kind is extension type
	Kind string `json:"kind"`
}

type DNSProviderReplication

type DNSProviderReplication struct {
	// Enabled indicates whether replication is on
	Enabled bool `json:"enabled"`
}

type ExtensionProviderConfig

type ExtensionProviderConfig struct {
	// APIVersion is gardener extension api version
	APIVersion string `json:"apiVersion"`
	// DnsProviderReplication indicates whether dnsProvider replication is on
	DNSProviderReplication *DNSProviderReplication `json:"dnsProviderReplication,omitempty"`
	// ShootIssuers indicates whether shoot Issuers are on
	ShootIssuers *ShootIssuers `json:"shootIssuers,omitempty"`
	// Kind is extension type
	Kind string `json:"kind"`
}

func NewCertConfig

func NewCertConfig() *ExtensionProviderConfig

type InfrastructureProviderFunc

type InfrastructureProviderFunc func(workersCidr string, zones []string) ([]byte, error)

type ShootIssuers

type ShootIssuers struct {
	// Enabled indicates whether shoot Issuers are on
	Enabled bool `json:"enabled"`
}

Jump to

Keyboard shortcuts

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