Documentation ¶
Index ¶
Constants ¶
View Source
const ( Image = "ghcr.io/risingwavelabs/risingwave" DefaultLimitCPU = "1" DefaultLimitMemory = "1Gi" DefaultRequestCPU = "100m" DefaultRequestMemory = "100Mi" )
Variables ¶
View Source
var DefaultConfig = Config{ BaseConfig: BaseConfig{ Image: Image, Resources: *defaultResource.DeepCopy(), }, MetaConfig: ComponentConfig{ Groups: []Group{ defaultGroup.deepCopy(), }, }, ComputeConfig: ComponentConfig{ Groups: []Group{ defaultGroup.deepCopy(), }, }, CompactorConfig: ComponentConfig{ Groups: []Group{ defaultGroup.deepCopy(), }, }, FrontendConfig: ComponentConfig{ Groups: []Group{ defaultGroup.deepCopy(), }, }, ConnectorConfig: ComponentConfig{ Groups: []Group{ defaultGroup.deepCopy(), }, }, }
Functions ¶
This section is empty.
Types ¶
type BaseConfig ¶
type BaseConfig struct { Image string Replicas int32 Resources corev1.ResourceRequirements }
type ComponentConfig ¶
type ComponentConfig struct {
Groups []Group
}
type Config ¶
type Config struct { BaseConfig MetaConfig ComponentConfig ComputeConfig ComponentConfig CompactorConfig ComponentConfig FrontendConfig ComponentConfig ConnectorConfig ComponentConfig }
Config contain the fields needed that creating a instance.
func ApplyConfigFile ¶
ApplyConfigFile will construct a config by config file.
Click to show internal directories.
Click to hide internal directories.