setup

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Setup = &cobra.Command{
	Use:   "setup",
	Short: "",
	RunE: func(cmd *cobra.Command, args []string) error {
		if err := util.CheckDockerDaemon(); err != nil {
			return err
		}

		defer setup.CloseLogFollower()
		if err := DoSetupAccordingE2E(); err != nil {
			return fmt.Errorf("[Setup] %s", err)
		}

		if config.GlobalConfig.E2EConfig.Setup.Env == constant.Kind && setup.KindShouldWaitSignal() {
			wg := sync.WaitGroup{}
			wg.Add(1)
			util.AddShutDownHook(wg.Done)
			wg.Wait()

			setup.KindCleanNotify()
		}
		return nil
	},
}

Functions

func DoSetupAccordingE2E

func DoSetupAccordingE2E() error

func DoStopSetup added in v1.1.0

func DoStopSetup()

Types

This section is empty.

Jump to

Keyboard shortcuts

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