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
- type AWSGardenerConfig
- type Asset
- type AzureGardenerConfig
- type Cluster
- type ConfigEntry
- type Configuration
- type GCPGardenerConfig
- type GardenerConfig
- type GardenerProviderConfig
- type GithubRelease
- type KymaComponent
- type KymaComponentConfig
- type KymaConfig
- 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 = "compass.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
Types ¶
type AWSGardenerConfig ¶
type AWSGardenerConfig struct { ProviderSpecificConfig // contains filtered or unexported fields }
func NewAWSGardenerConfig ¶
func NewAWSGardenerConfig(input *gqlschema.AWSProviderConfigInput) (*AWSGardenerConfig, error)
func (*AWSGardenerConfig) AsMap ¶
func (c *AWSGardenerConfig) AsMap() (map[string]interface{}, error)
func (AWSGardenerConfig) AsProviderSpecificConfig ¶
func (c AWSGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig
func (AWSGardenerConfig) ExtendShootConfig ¶
func (c AWSGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) error
type AzureGardenerConfig ¶
type AzureGardenerConfig struct { ProviderSpecificConfig // contains filtered or unexported fields }
func NewAzureGardenerConfig ¶
func NewAzureGardenerConfig(input *gqlschema.AzureProviderConfigInput) (*AzureGardenerConfig, error)
func (*AzureGardenerConfig) AsMap ¶
func (c *AzureGardenerConfig) AsMap() (map[string]interface{}, error)
func (AzureGardenerConfig) AsProviderSpecificConfig ¶
func (c AzureGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig
func (AzureGardenerConfig) ExtendShootConfig ¶
func (c AzureGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) error
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"`
}
type GCPGardenerConfig ¶
type GCPGardenerConfig struct { ProviderSpecificConfig // contains filtered or unexported fields }
func NewGCPGardenerConfig ¶
func NewGCPGardenerConfig(input *gqlschema.GCPProviderConfigInput) (*GCPGardenerConfig, error)
func (*GCPGardenerConfig) AsMap ¶
func (c *GCPGardenerConfig) AsMap() (map[string]interface{}, error)
func (GCPGardenerConfig) AsProviderSpecificConfig ¶
func (c GCPGardenerConfig) AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig
func (GCPGardenerConfig) ExtendShootConfig ¶
func (c GCPGardenerConfig) ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) error
type GardenerConfig ¶
type GardenerConfig struct { ID string ClusterID string Name string ProjectName string KubernetesVersion string VolumeSizeGB int DiskType string MachineType string Provider string Purpose *string LicenceType *string Seed string TargetSecret string Region string WorkerCidr string AutoScalerMin int AutoScalerMax int MaxSurge int GardenerProviderConfig GardenerProviderConfig }
func (GardenerConfig) ToShootTemplate ¶
func (c GardenerConfig) ToShootTemplate(namespace string, accountId string, subAccountId string) (*gardener_types.Shoot, error)
type GardenerProviderConfig ¶
type GardenerProviderConfig interface { AsMap() (map[string]interface{}, error) RawJSON() string AsProviderSpecificConfig() gqlschema.ProviderSpecificConfig ExtendShootConfig(gardenerConfig GardenerConfig, shoot *gardener_types.Shoot) error }
func NewGardenerProviderConfigFromJSON ¶
func NewGardenerProviderConfigFromJSON(jsonData string) (GardenerProviderConfig, error)
type GithubRelease ¶
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 Components []KymaComponentConfig GlobalConfiguration Configuration ClusterID string Active bool }
func (KymaConfig) GetComponentConfig ¶
func (c KymaConfig) GetComponentConfig(name string) (KymaComponentConfig, bool)
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" 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" 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" Deprovision OperationType = "DEPROVISION" ReconnectRuntime OperationType = "RECONNECT_RUNTIME" )
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 }
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.