transition

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TransitionCmd = &cobra.Command{
	Use:     "transition",
	Aliases: []string{"change"},
	Short:   "Load a fixture into the cluster",
	Long:    `Load a fixture into the cluster `,
	Example: "kubefixtures load -f example.yaml",
	Run: func(cmd *cobra.Command, args []string) {
		ctx := cmd.Context()
		log := pkg.SetupLogging(os.Stdout)
		kubeconfig, err := cmd.Root().PersistentFlags().GetString("kubeconfig")
		if err != nil {
			log.Fatalf("Failed to get kubeconfig: %v", err)
		}

		dynamic, err := pkg.SetupDynamicClient(&kubeconfig)
		if err != nil {
			log.Fatalf("Failed to setup dynamic client: %v", err)
		}

		transition(ctx, dynamic, os.Stdout)
	},
}

TransitionCmd is the command for transitioning fixtures

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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