single

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 44 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = &Config{}
)
View Source
var RootCmd = &cobra.Command{
	Use:   "flyte",
	Short: "Flyte cluster",
	Long: `
Use the start subcommand which will start the Flyte cluster

    flyte start --config  flyte_config.yaml
`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		return initConfig(cmd.Flags())
	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute() error

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetConsoleFile

func GetConsoleFile(name string) string

GetConsoleFile returns the console file that should be used for the given path. For every file add a "dist" as the prefix, as every file is assumed to be packaged in "dist" folder fv

func GetConsoleHandlers

func GetConsoleHandlers() map[string]func(http.ResponseWriter, *http.Request)

GetConsoleHandlers returns a set of handlers that can be added to the Server mux and can handle all console related requests

Types

type Admin

type Admin struct {
	Disabled                      bool     `json:"disabled" pflag:",Disables flyteadmin in the single binary mode"`
	DisableScheduler              bool     `json:"disableScheduler" pflag:",Disables Native scheduler in the single binary mode"`
	DisableClusterResourceManager bool     `json:"disableClusterResourceManager" pflag:",Disables Cluster resource manager"`
	SeedProjects                  []string `json:"seedProjects" pflag:",flyte projects to create by default."`
}

type Config

type Config struct {
	Propeller   Propeller   `json:"propeller" pflag:",Configuration to disable propeller or any of its components."`
	Admin       Admin       `json:"admin" pflag:",Configuration to disable FlyteAdmin or any of its components"`
	DataCatalog DataCatalog `json:"dataCatalog" pflag:",Configuration to disable DataCatalog or any of its components"`
}

func GetConfig

func GetConfig() *Config

GetConfig returns a handle to the configuration for Flyte Single Binary

type DataCatalog

type DataCatalog struct {
	Disabled bool `json:"disabled" pflag:",Disables datacatalog in the single binary mode"`
}

type Propeller

type Propeller struct {
	Disabled       bool `json:"disabled" pflag:",Disables flytepropeller in the single binary mode"`
	DisableWebhook bool `json:"disableWebhook" pflag:",Disables webhook only"`
}

Jump to

Keyboard shortcuts

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