k8sflink

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DiceRootDomainKEY  = "DICE_ROOT_DOMAIN"
	DiceClusterInfoKey = "dice-cluster-info"
)
View Source
const (
	AliyunPullSecret   = "aliyun-registry"
	FlinkIngressPrefix = "flinkcluster"
)

Variables

This section is empty.

Functions

func ComposeFlinkCluster

func ComposeFlinkCluster(data apistructs.BigdataConf, hostURL string) *flinkv1beta1.FlinkCluster

Types

type Flink struct {
	Client       *clientgo.ClientSet
	ExecutorName executortypes.Name
	ExecutorKind executortypes.Kind
}

func New

func New(ops ...Option) *Flink

func (*Flink) Cancel

func (f *Flink) Cancel(ctx context.Context, spec interface{}) (interface{}, error)

Cancel method cancel flinkcluster job mod and job state must is running

func (*Flink) CapacityInfo

func (f *Flink) CapacityInfo() apistructs.CapacityInfoData

func (*Flink) CleanUpBeforeDelete

func (f *Flink) CleanUpBeforeDelete()

func (*Flink) Create

func (f *Flink) Create(ctx context.Context, spec interface{}) (interface{}, error)

Create method create flinkcluster cr to flink-operator by controller-runtime client

func (*Flink) Destroy

func (f *Flink) Destroy(ctx context.Context, spec interface{}) error

Destroy method delete flinkcluster cr by Remove method

func (*Flink) GetClusterInfo

func (f *Flink) GetClusterInfo(name string) (map[string]string, error)

func (*Flink) GetFlinkClusterInfo

func (f *Flink) GetFlinkClusterInfo(ctx context.Context, data apistructs.BigdataConf) (*flinkoperatorv1beta1.FlinkCluster, error)

GetFlinkClusterInfo get flinkcluster info from controller-runtime client

func (*Flink) Inspect

func (f *Flink) Inspect(ctx context.Context, spec interface{}) (interface{}, error)

Inspect method get flinkCluster cr by controller-runtime client

func (*Flink) JobVolumeCreate

func (f *Flink) JobVolumeCreate(ctx context.Context, spec interface{}) (string, error)

func (*Flink) KillPod

func (f *Flink) KillPod(podname string) error

func (*Flink) Kind

func (f *Flink) Kind() executortypes.Kind

Kind implements executortypes.Executor interface

func (*Flink) Name

func (f *Flink) Name() executortypes.Name

Name implements executortypes.Executor interface

func (*Flink) Precheck

func (f *Flink) Precheck(ctx context.Context, spec interface{}) (apistructs.ServiceGroupPrecheckData, error)

func (*Flink) Remove

func (f *Flink) Remove(ctx context.Context, spec interface{}) error

Remove method delete flinkcluster cr by controller-runtime client

func (*Flink) ResourceInfo

func (f *Flink) ResourceInfo(brief bool) (apistructs.ClusterResourceInfoData, error)

func (*Flink) SetNodeLabels

func (f *Flink) SetNodeLabels(setting executortypes.NodeLabelSetting, hosts []string, labels map[string]string) error

func (*Flink) Status

func (f *Flink) Status(ctx context.Context, spec interface{}) (apistructs.StatusDesc, error)

Status method get status from flinkcluster cr by controller-runtime client

func (*Flink) Update

func (f *Flink) Update(ctx context.Context, spec interface{}) (interface{}, error)

Update method update flinkcluster cr by controller-runtime client. and Update method is not used in Dice 3.21

type Option

type Option func(f *Flink)

func WithClient

func WithClient(addr string) Option

func WithKind

func WithKind(kind executortypes.Kind) Option

func WithName

func WithName(name executortypes.Name) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL