single

package
v1.3.0-b3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 38 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. Every path has a '/console' as the prefix. After dropping this prefix, the following 3 rules are checked Rule 1: If path is now "" or "/" then return index.html Rule 2: If path contains no "assets" sub-string and has an additional substring "/", then return "index.html".

This is to allow vanity urls in React

Rule 3: Finally return every file path as is 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"`
}

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