Documentation ¶
Index ¶
- Constants
- func NewAWSControlPlane() *aws.ControlPlaneConfig
- func NewAWSInfrastructure(workerCIDR string, awsConfig AWSGardenerConfig) *aws.InfrastructureConfig
- func NewAzureControlPlane(zones []string) *azure.ControlPlaneConfig
- func NewAzureInfrastructure(workerCIDR string, azConfig AzureGardenerConfig) *azure.InfrastructureConfig
- func NewGCPControlPlane(zones []string) *gcp.ControlPlaneConfig
- func NewGCPInfrastructure(workerCIDR string) *gcp.InfrastructureConfig
- func NewOpenStackControlPlane(loadBalancerProvider string) *openstack.ControlPlaneConfig
- func NewOpenStackInfrastructure(floatingPoolName, workerCIDR string) *openstack.InfrastructureConfig
- type AWSGardenerConfig
- func (c AWSGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig
- func (c AWSGardenerConfig) EditShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError
- func (c AWSGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError
- type Asset
- type AzureGardenerConfig
- func (c AzureGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig
- func (c AzureGardenerConfig) EditShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError
- func (c AzureGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError
- type Cluster
- type ConfigEntry
- type Configuration
- type GCPGardenerConfig
- func (c GCPGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig
- func (c GCPGardenerConfig) EditShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError
- func (c GCPGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError
- type GardenerConfig
- type GardenerProviderConfig
- type GithubRelease
- type HibernationStatus
- type KymaComponent
- type KymaComponentConfig
- type KymaConfig
- type KymaProfile
- type OpenStackGardenerConfig
- func (c OpenStackGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig
- func (c OpenStackGardenerConfig) EditShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError
- func (c OpenStackGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError
- type Operation
- type OperationStage
- type OperationState
- type OperationType
- type OperationsCount
- type ProviderSpecificConfig
- type Release
- type RuntimeAgentConnectionStatus
- type RuntimeStatus
- type RuntimeUpgrade
- type UpgradeState
Constants ¶
View Source
const ( SubAccountLabel = "subaccount" AccountLabel = "account" LicenceTypeAnnotation = "kcp.provisioner.kyma-project.io/licence-type" )
Variables ¶
This section is empty.
Functions ¶
func NewAWSControlPlane ¶
func NewAWSControlPlane() *aws.ControlPlaneConfig
func NewAWSInfrastructure ¶
func NewAWSInfrastructure(workerCIDR string, 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 NewAWSGardenerConfig ¶
func NewAWSGardenerConfig(input *gqlschema.AWSProviderConfigInput) (*AWSGardenerConfig, apperrors.AppError)
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
type AzureGardenerConfig ¶
type AzureGardenerConfig struct { ProviderSpecificConfig // contains filtered or unexported fields }
func NewAzureGardenerConfig ¶
func NewAzureGardenerConfig(input *gqlschema.AzureProviderConfigInput) (*AzureGardenerConfig, apperrors.AppError)
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
type Cluster ¶
type Cluster struct { ID string Kubeconfig *string CreationTimestamp time.Time Deleted bool Tenant string SubAccountId *string ActiveKymaConfigId string ClusterConfig GardenerConfig `db:"-"` KymaConfig KymaConfig `db:"-"` }
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 GCPGardenerConfig ¶
type GCPGardenerConfig struct { ProviderSpecificConfig // contains filtered or unexported fields }
func NewGCPGardenerConfig ¶
func NewGCPGardenerConfig(input *gqlschema.GCPProviderConfigInput) (*GCPGardenerConfig, apperrors.AppError)
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
type GardenerConfig ¶
type GardenerConfig struct { ID string ClusterID string Name string ProjectName string KubernetesVersion string VolumeSizeGB *int DiskType *string MachineType string MachineImage *string MachineImageVersion *string Provider string Purpose *string LicenceType *string Seed string TargetSecret string Region string WorkerCidr string AutoScalerMin int AutoScalerMax int MaxSurge int EnableKubernetesVersionAutoUpdate bool EnableMachineImageVersionAutoUpdate bool AllowPrivilegedContainers bool GardenerProviderConfig GardenerProviderConfig }
func (GardenerConfig) ToShootTemplate ¶
func (c GardenerConfig) ToShootTemplate(namespace string, accountId string, subAccountId string) (*gardener_types.Shoot, apperrors.AppError)
type GardenerProviderConfig ¶
type GardenerProviderConfig interface { RawJSON() string AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError EditShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) apperrors.AppError }
func NewGardenerProviderConfigFromJSON ¶
func NewGardenerProviderConfigFromJSON(jsonData string) (GardenerProviderConfig, apperrors.AppError)
type GithubRelease ¶
type HibernationStatus ¶
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 Release Release 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 OpenStackGardenerConfig ¶
type OpenStackGardenerConfig struct { ProviderSpecificConfig // contains filtered or unexported fields }
func NewOpenStackGardenerConfig ¶
func NewOpenStackGardenerConfig(input *gqlschema.OpenStackProviderConfigInput) (*OpenStackGardenerConfig, apperrors.AppError)
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
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 }
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" Upgrade OperationType = "UPGRADE" UpgradeShoot OperationType = "UPGRADE_SHOOT" Deprovision OperationType = "DEPROVISION" 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 UpgradeState ¶
type UpgradeState string
const ( UpgradeInProgress UpgradeState = "IN_PROGRESS" UpgradeSucceeded UpgradeState = "SUCCEEDED" UpgradeFailed UpgradeState = "FAILED" UpgradeRolledBack UpgradeState = "ROLLED_BACK" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.