system

package
v0.5.0-rc-5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemCmd = &cobra.Command{
	Use:   "system",
	Short: "Meshery Lifecycle Management",
	Long:  `Manage the state and configuration of Meshery server, adapters, and client.`,
	Args:  cobra.MinimumNArgs(1),
	RunE: func(cmd *cobra.Command, args []string) error {
		if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok {
			return errors.New(utils.SystemError(fmt.Sprintf("invalid command: \"%s\"", args[0])))
		}
		mctlCfg, err := config.GetMesheryCtl(viper.GetViper())
		if err != nil {
			return errors.Wrap(err, "error processing config")
		}
		url = mctlCfg.GetBaseMesheryURL()
		return nil
	},
}

SystemCmd represents Meshery Lifecycle Management cli commands

Functions

func ApplyManifestFiles added in v0.5.1

func ApplyManifestFiles(manifestArr []utils.Manifest, requestedAdapters []string, client *meshkitkube.Client) error

ApplyManifestFiles applies all the required manifests into the Kubernetes cluster

func DeleteManifestFiles

func DeleteManifestFiles(manifestArr []utils.Manifest, requestedAdapters []string, client *meshkitkube.Client) error

DeleteManifestFiles deletes all the specified deployments in the meshery namespace

func IsBetaOrStable added in v0.5.1

func IsBetaOrStable(str string) bool

IsBetaOrStable to determine which release channel is being used

func PrintChannelAndVersionToStdout added in v0.5.1

func PrintChannelAndVersionToStdout(ctx config.Context, contextName string) string

PrintChannelAndVersionToStdout to return curren release channel details

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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