Documentation ¶
Overview ¶
Package config details configuration data structures for the FlytePropeller Manager implementation.
Index ¶
- Variables
- type Config
- type PerShardMappingsConfig
- type ShardConfig
- type ShardType
- func (i ShardType) IsAShardType() bool
- func (i ShardType) MarshalJSON() ([]byte, error)
- func (i ShardType) MarshalYAML() (interface{}, error)
- func (i ShardType) String() string
- func (i *ShardType) UnmarshalJSON(data []byte) error
- func (i *ShardType) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
var ( DefaultConfig = &Config{ PodApplication: "flytepropeller", PodTemplateContainerName: "flytepropeller", PodTemplateName: "flytepropeller-template", PodTemplateNamespace: "flyte", ScanInterval: config.Duration{ Duration: 10 * time.Second, }, ShardConfig: ShardConfig{ Type: ShardTypeHash, ShardCount: 3, }, } )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PodApplication string `json:"pod-application" pflag:",Application name for managed pods"` PodTemplateContainerName string `` /* 141-byte string literal not displayed */ PodTemplateName string `json:"pod-template-name" pflag:",K8s PodTemplate name to use for starting FlytePropeller pods"` PodTemplateNamespace string `json:"pod-template-namespace" pflag:",Namespace where the k8s PodTemplate is located"` ScanInterval config.Duration `json:"scan-interval" pflag:",Frequency to scan FlytePropeller pods and start / restart if necessary"` ShardConfig ShardConfig `json:"shard" pflag:",Configure the shard strategy for this manager"` }
Configuration for the FlytePropeller Manager instance
type PerShardMappingsConfig ¶
type PerShardMappingsConfig struct {
IDs []string `json:"ids" pflag:",The list of ids to be managed"`
}
Configuration for defining shard replicas when using project or domain shard types
type ShardConfig ¶
type ShardConfig struct { Type ShardType `json:"type" pflag:",Shard implementation to use"` PerShardMappings []PerShardMappingsConfig `json:"per-shard-mapping" pflag:"-"` ShardCount int `json:"shard-count" pflag:",The number of shards to manage for a 'hash' shard type"` }
Configuration for the FlytePropeller sharding strategy
type ShardType ¶
type ShardType int
func ShardTypeString ¶
ShardTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ShardTypeValues ¶
func ShardTypeValues() []ShardType
ShardTypeValues returns all values of the enum
func (ShardType) IsAShardType ¶
IsAShardType returns "true" if the value is listed in the enum definition. "false" otherwise
func (ShardType) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for ShardType
func (ShardType) MarshalYAML ¶
MarshalYAML implements a YAML Marshaler for ShardType
func (*ShardType) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for ShardType
func (*ShardType) UnmarshalYAML ¶
UnmarshalYAML implements a YAML Unmarshaler for ShardType