model

package
v0.0.0-...-9dbba9d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SubAccountLabel = "subaccount"
	AccountLabel    = "account"

	LicenceTypeAnnotation                = "kcp.provisioner.kyma-project.io/licence-type"
	EuAccessAnnotation                   = "support.gardener.cloud/eu-access-for-cluster-nodes"
	ShootNetworkingFilterExtensionType   = "shoot-networking-filter"
	ShootNetworkingFilterDisabledDefault = true
)

Variables

This section is empty.

Functions

func NewAWSControlPlane

func NewAWSControlPlane() *aws.ControlPlaneConfig

func NewAWSInfrastructure

func NewAWSInfrastructure(awsConfig AWSGardenerConfig) *aws.InfrastructureConfig

func NewAzureControlPlane

func NewAzureControlPlane(zones []string) *azure.ControlPlaneConfig

func NewAzureInfrastructure

func NewAzureInfrastructure(workerCIDR string, azConfig AzureGardenerConfig) *azure.InfrastructureConfig

func NewGCPControlPlane

func NewGCPControlPlane(zones []string) *gcp.ControlPlaneConfig

func NewGCPInfrastructure

func NewGCPInfrastructure(workerCIDR string) *gcp.InfrastructureConfig

func NewOpenStackControlPlane

func NewOpenStackControlPlane(loadBalancerProvider string) *openstack.ControlPlaneConfig

func NewOpenStackInfrastructure

func NewOpenStackInfrastructure(floatingPoolName, workerCIDR string) *openstack.InfrastructureConfig

Types

type AWSGardenerConfig

type AWSGardenerConfig struct {
	ProviderSpecificConfig
	// contains filtered or unexported fields
}

func (AWSGardenerConfig) AsProviderSpecificConfig

func (c AWSGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig

func (AWSGardenerConfig) EditShootConfig

func (c AWSGardenerConfig) EditShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError

func (AWSGardenerConfig) ExtendShootConfig

func (c AWSGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError

func (AWSGardenerConfig) NodeCIDR

func (AWSGardenerConfig) ValidateShootConfigChange

func (c AWSGardenerConfig) ValidateShootConfigChange(shoot *gardener_types.Shoot) apperrors.AppError

type Asset

type Asset struct {
	Name string `json:"name"`
	Url  string `json:"browser_download_url"`
}

type AzureGardenerConfig

type AzureGardenerConfig struct {
	ProviderSpecificConfig
	// contains filtered or unexported fields
}

func (AzureGardenerConfig) AsProviderSpecificConfig

func (c AzureGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig

func (AzureGardenerConfig) EditShootConfig

func (c AzureGardenerConfig) EditShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError

func (AzureGardenerConfig) ExtendShootConfig

func (c AzureGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError

func (AzureGardenerConfig) NodeCIDR

func (AzureGardenerConfig) ValidateShootConfigChange

func (c AzureGardenerConfig) ValidateShootConfigChange(shoot *gardener_types.Shoot) apperrors.AppError

type Cluster

type Cluster struct {
	ID                 string
	Kubeconfig         *string
	CreationTimestamp  time.Time
	Deleted            bool
	Tenant             string
	SubAccountId       *string
	ActiveKymaConfigId *string
	Administrators     []string

	ClusterConfig GardenerConfig `db:"-"`
	KymaConfig    *KymaConfig    `db:"-"`

	IsKubeconfigEncrypted bool
}

type ClusterAdministrator

type ClusterAdministrator struct {
	ID                string
	ClusterId         *string
	UserId            string
	IsUserIdEncrypted bool
}

type ConfigEntry

type ConfigEntry struct {
	Key    string `json:"key"`
	Value  string `json:"value"`
	Secret bool   `json:"secret"`
}

func NewConfigEntry

func NewConfigEntry(key, val string, secret bool) ConfigEntry

type Configuration

type Configuration struct {
	ConfigEntries    []ConfigEntry `json:"configEntries"`
	ConflictStrategy string        `json:"conflictStrategy"`
}

type DNSConfig

type DNSConfig struct {
	Domain    string         `json:"domain"`
	Providers []*DNSProvider `json:"providers"`
}

type DNSProvider

type DNSProvider struct {
	DomainsInclude []string `json:"domainsInclude" db:"-"`
	Primary        bool     `json:"primary" db:"is_primary"`
	SecretName     string   `json:"secretName" db:"secret_name"`
	Type           string   `json:"type" db:"type"`
}

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

func NewDNSConfig

func NewDNSConfig() *ExtensionProviderConfig

type GCPGardenerConfig

type GCPGardenerConfig struct {
	ProviderSpecificConfig
	// contains filtered or unexported fields
}

func (GCPGardenerConfig) AsProviderSpecificConfig

func (c GCPGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig

func (GCPGardenerConfig) EditShootConfig

func (c GCPGardenerConfig) EditShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError

func (GCPGardenerConfig) ExtendShootConfig

func (c GCPGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError

func (GCPGardenerConfig) NodeCIDR

func (c GCPGardenerConfig) NodeCIDR(gardenerConfig GardenerConfig) string

func (GCPGardenerConfig) ValidateShootConfigChange

func (c GCPGardenerConfig) ValidateShootConfigChange(*gardener_types.Shoot) apperrors.AppError

type GardenerConfig

type GardenerConfig struct {
	AutoScalerMax                       int
	AutoScalerMin                       int
	ClusterID                           string
	ControlPlaneFailureTolerance        *string
	DNSConfig                           *DNSConfig
	DiskType                            *string
	EnableKubernetesVersionAutoUpdate   bool
	EnableMachineImageVersionAutoUpdate bool
	EuAccess                            bool
	ExposureClassName                   *string
	GardenerProviderConfig              GardenerProviderConfig
	ID                                  string
	KubernetesVersion                   string
	LicenceType                         *string
	MachineImage                        *string
	MachineImageVersion                 *string
	MachineType                         string
	MaxSurge                            int
	MaxUnavailable                      int
	Name                                string
	OIDCConfig                          *OIDCConfig
	PodsCIDR                            *string
	ProjectName                         string
	Provider                            string
	Purpose                             *string
	Region                              string
	Seed                                string
	ServicesCIDR                        *string
	ShootNetworkingFilterDisabled       *bool
	TargetSecret                        string
	VolumeSizeGB                        *int
	WorkerCidr                          string
}

func (GardenerConfig) ToShootTemplate

func (c GardenerConfig) ToShootTemplate(namespace string, accountId string, subAccountId string, oidcConfig *OIDCConfig, dnsInputConfig *DNSConfig) (*gardener_types.Shoot, apperrors.AppError)

type GardenerProviderConfig

type GardenerProviderConfig interface {
	RawJSON() string
	NodeCIDR(gardenerConfig GardenerConfig) string
	AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig
	ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError
	EditShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError
	ValidateShootConfigChange(shoot *gardener_types.Shoot) apperrors.AppError
}

func NewGardenerProviderConfigFromJSON

func NewGardenerProviderConfigFromJSON(jsonData string) (GardenerProviderConfig, apperrors.AppError)

type GithubRelease

type GithubRelease struct {
	Id         int     `json:"id"`
	Name       string  `json:"name"`
	Prerelease bool    `json:"prerelease"`
	Assets     []Asset `json:"assets"`
}

type HibernationStatus

type HibernationStatus struct {
	Hibernated          bool
	HibernationPossible bool
}

type KymaComponent

type KymaComponent string

type KymaComponentConfig

type KymaComponentConfig struct {
	ID             string
	Component      KymaComponent
	Namespace      string
	SourceURL      *string
	Configuration  Configuration
	ComponentOrder int
	KymaConfigID   string
}

type KymaConfig

type KymaConfig struct {
	ID                  string
	Profile             *KymaProfile
	Components          []KymaComponentConfig
	GlobalConfiguration Configuration
	ClusterID           string
	Active              bool
}

func (KymaConfig) GetComponentConfig

func (c KymaConfig) GetComponentConfig(name string) (KymaComponentConfig, bool)

type KymaProfile

type KymaProfile string
const (
	EvaluationProfile KymaProfile = "EVALUATION"
	ProductionProfile KymaProfile = "PRODUCTION"
)

type LastError

type LastError struct {
	ErrMessage string
	Reason     string
	Component  string
}

type OIDCConfig

type OIDCConfig struct {
	ClientID       string   `json:"clientID"`
	GroupsClaim    string   `json:"groupsClaim"`
	IssuerURL      string   `json:"issuerURL"`
	SigningAlgs    []string `json:"signingAlgs"`
	UsernameClaim  string   `json:"usernameClaim"`
	UsernamePrefix string   `json:"usernamePrefix"`
}

type OpenStackGardenerConfig

type OpenStackGardenerConfig struct {
	ProviderSpecificConfig
	// contains filtered or unexported fields
}

func (OpenStackGardenerConfig) AsProviderSpecificConfig

func (c OpenStackGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig

func (OpenStackGardenerConfig) EditShootConfig

func (c OpenStackGardenerConfig) EditShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError

func (OpenStackGardenerConfig) ExtendShootConfig

func (c OpenStackGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError

func (OpenStackGardenerConfig) NodeCIDR

func (c OpenStackGardenerConfig) NodeCIDR(gardenerConfig GardenerConfig) string

func (OpenStackGardenerConfig) ValidateShootConfigChange

func (c OpenStackGardenerConfig) ValidateShootConfigChange(*gardener_types.Shoot) apperrors.AppError

type Operation

type Operation struct {
	ID             string
	Type           OperationType
	StartTimestamp time.Time
	EndTimestamp   *time.Time
	State          OperationState
	Message        string
	ClusterID      string
	Stage          OperationStage
	LastTransition *time.Time
	LastError
}

type OperationStage

type OperationStage string
const (
	WaitingForClusterDomain      OperationStage = "WaitingForClusterDomain"
	WaitingForClusterCreation    OperationStage = "WaitingForClusterCreation"
	CreatingBindingsForOperators OperationStage = "CreatingBindingsForOperators"
	StartingInstallation         OperationStage = "StartingInstallation"
	WaitingForInstallation       OperationStage = "WaitingForInstallation"
	ConnectRuntimeAgent          OperationStage = "ConnectRuntimeAgent"
	WaitForAgentToConnect        OperationStage = "WaitForAgentToConnect"

	TriggerKymaUninstall   OperationStage = "TriggerKymaUninstall"
	WaitForClusterDeletion OperationStage = "WaitForClusterDeletion"
	DeleteCluster          OperationStage = "DeprovisionCluster"
	CleanupCluster         OperationStage = "CleanupCluster"

	StartingUpgrade      OperationStage = "StartingUpgrade"
	UpdatingUpgradeState OperationStage = "UpdatingUpgradeState"

	WaitingForShootUpgrade    OperationStage = "WaitingForShootUpgrade"
	WaitingForShootNewVersion OperationStage = "WaitingForShootNewVersion"

	WaitForHibernation OperationStage = "WaitForHibernation"

	FinishedStage OperationStage = "Finished"
)

type OperationState

type OperationState string
const (
	InProgress OperationState = "IN_PROGRESS"
	Succeeded  OperationState = "SUCCEEDED"
	Failed     OperationState = "FAILED"
)

type OperationType

type OperationType string
const (
	Provision            OperationType = "PROVISION"
	ProvisionNoInstall   OperationType = "PROVISION_NO_INSTALL"
	Upgrade              OperationType = "UPGRADE"
	UpgradeShoot         OperationType = "UPGRADE_SHOOT"
	Deprovision          OperationType = "DEPROVISION"
	DeprovisionNoInstall OperationType = "DEPROVISION_NO_INSTALL"
	ReconnectRuntime     OperationType = "RECONNECT_RUNTIME"
	Hibernate            OperationType = "HIBERNATE"
)

type OperationsCount

type OperationsCount struct {
	Count map[OperationType]int
}

type ProviderSpecificConfig

type ProviderSpecificConfig string

func (ProviderSpecificConfig) RawJSON

func (c ProviderSpecificConfig) RawJSON() string

type RuntimeAgentConnectionStatus

type RuntimeAgentConnectionStatus int
const (
	RuntimeAgentConnectionStatusPending      RuntimeAgentConnectionStatus = iota
	RuntimeAgentConnectionStatusConnected    RuntimeAgentConnectionStatus = iota
	RuntimeAgentConnectionStatusDisconnected RuntimeAgentConnectionStatus = iota
)

type RuntimeStatus

type RuntimeStatus struct {
	LastOperationStatus     Operation
	RuntimeConnectionStatus RuntimeAgentConnectionStatus
	RuntimeConfiguration    Cluster
	HibernationStatus       HibernationStatus
}

type RuntimeUpgrade

type RuntimeUpgrade struct {
	Id                      string
	State                   UpgradeState
	OperationId             string
	PreUpgradeKymaConfigId  string
	PostUpgradeKymaConfigId string

	PreUpgradeKymaConfig  KymaConfig `db:"-"`
	PostUpgradeKymaConfig KymaConfig `db:"-"`
}

type ShootIssuers

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

type UpgradeState

type UpgradeState string
const (
	UpgradeInProgress UpgradeState = "IN_PROGRESS"
	UpgradeSucceeded  UpgradeState = "SUCCEEDED"
	UpgradeFailed     UpgradeState = "FAILED"
	UpgradeRolledBack UpgradeState = "ROLLED_BACK"
)

Directories

Path Synopsis
infrastructure
aws
gcp

Jump to

Keyboard shortcuts

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