Documentation
¶
Index ¶
- Constants
- func GroupByScheme(artifacts []string) map[string][]string
- func KubeClientConfig(host string, auth Auth) (*restclient.Config, error)
- func NewFlinkCluster(config *Config, taskCtx FlinkTaskContext) (*flinkOp.FlinkCluster, error)
- func Validate(job *flinkIdl.FlinkJob) error
- func ValidateRegEx(value string, r *regexp.Regexp) error
- type Annotations
- type Auth
- type ClusterConfig
- type ClusterName
- type Config
- type Downloader
- type DownloaderRegistry
- type FlinkCluster
- type FlinkTaskContext
- type Labels
- type Properties
Constants ¶
View Source
const ( KindFlinkCluster = "FlinkCluster" // Flyte flink task type FlinkTaskType = "flink" )
Variables ¶
This section is empty.
Functions ¶
func GroupByScheme ¶
func KubeClientConfig ¶
func KubeClientConfig(host string, auth Auth) (*restclient.Config, error)
KubeClientConfig ...
func NewFlinkCluster ¶
func NewFlinkCluster(config *Config, taskCtx FlinkTaskContext) (*flinkOp.FlinkCluster, error)
Types ¶
type Annotations ¶
func GetDefaultAnnotations ¶
func GetDefaultAnnotations(taskCtx pluginsCore.TaskExecutionMetadata) Annotations
type Auth ¶
type ClusterConfig ¶
type ClusterConfig struct {
Name string `json:"name" pflag:",Friendly name of the remote cluster"`
Endpoint string `json:"endpoint" pflag:", Remote K8s cluster endpoint"`
Auth Auth `json:"auth" pflag:"-, Auth setting for the cluster"`
Enabled bool `json:"enabled" pflag:", Boolean flag to enable or disable"`
}
type ClusterName ¶
type ClusterName string
func NewClusterName ¶
func NewClusterName(name string) (ClusterName, error)
func (ClusterName) String ¶
func (cn ClusterName) String() string
func (ClusterName) Validate ¶
func (cn ClusterName) Validate() error
type Config ¶
type Config struct {
DefaultFlinkCluster flinkOp.FlinkCluster `json:"defaultFlinkCluster"`
FlinkPropertiesOverride map[string]string `json:"flinkPropertiesOverride" pflag:",Key value pairs of flink properties to be overridden in every FlinkJob"`
LogConfig logs.LogConfig `json:"logs"`
GeneratedNameMaxLength *int `json:"generatedNameMaxLength" pflag:"Specifies the length of TaskExecutionID generated name. default: 50"`
RemoteClusterConfig ClusterConfig `json:"remoteClusterConfig" pflag:"Configuration of remote K8s cluster for array jobs"`
}
Config ... Flink-specific configs
func GetFlinkConfig ¶
func GetFlinkConfig() *Config
type Downloader ¶
type DownloaderRegistry ¶
type DownloaderRegistry map[string]Downloader
func (DownloaderRegistry) GetDownloader ¶ added in v0.1.3
func (dr DownloaderRegistry) GetDownloader(scheme string) (Downloader, error)
type FlinkCluster ¶
type FlinkCluster flinkOp.FlinkCluster
type FlinkTaskContext ¶
type FlinkTaskContext struct {
ClusterName ClusterName
Namespace string
Annotations map[string]string
Labels map[string]string
Job flinkIdl.FlinkJob
}
func NewFlinkTaskContext ¶
func NewFlinkTaskContext(ctx context.Context, taskCtx pluginsCore.TaskExecutionContext) (*FlinkTaskContext, error)
type Labels ¶
func GetDefaultLabels ¶
func GetDefaultLabels(taskCtx pluginsCore.TaskExecutionMetadata) Labels
type Properties ¶
func MergeProperties ¶
func MergeProperties(maps ...Properties) Properties
Click to show internal directories.
Click to hide internal directories.