Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ConfigFileKey is key of config file in ConfigMap
ConfigFileKey = "cyclone-server.json"
)
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶ added in v0.9.3
LoadConfig loads configuration from ConfigMap
Types ¶
type CycloneServerConfig ¶ added in v0.9.3
type CycloneServerConfig struct { // Logging configuration, such as log level. Logging LoggingConfig `json:"logging"` // CycloneServerHost represents the host for cyclone server to serve on CycloneServerHost string `json:"cyclone_server_host"` // CycloneServerPort represents the port for cyclone server to serve on CycloneServerPort uint16 `json:"cyclone_server_port"` // DefaultPVCConfig represents the config of pvc for default tenant DefaultPVCConfig PVCConfig `json:"default_pvc_config"` // WorkerNamespaceQuota describes the resource quota of the namespace which will be used to run workflows, // eg map[core_v1.ResourceName]string{"cpu": "2", "memory": "4Gi"} WorkerNamespaceQuota map[core_v1.ResourceName]string `json:"worker_namespace_quota"` }
CycloneServerConfig configures Cyclone Server
var Config CycloneServerConfig
Config is Workflow Controller config instance
type LoggingConfig ¶ added in v0.9.3
type LoggingConfig struct {
Level string `json:"level"`
}
LoggingConfig configures logging
type PVCConfig ¶ added in v0.9.3
type PVCConfig struct { // StorageClass represents the strorageclass used to create pvc StorageClass string `json:"storage_class"` // Size represents the capacity of the pvc, unit supports 'Gi' or 'Mi' // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity Size string `json:"size"` }
PVCConfig contains the PVC information
Click to show internal directories.
Click to hide internal directories.