Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
DefaultConfig = &Config{}
)
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 ¶
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"`
}
type DataCatalog ¶
type DataCatalog struct {
Disabled bool `json:"disabled" pflag:",Disables datacatalog in the single binary mode"`
}