dataCloud

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DataCloudCreate  = *DataCloudCmd
	DataCloudDestroy = *DataCloudCmd
)

Set up pointers to support multiple distinct parents

View Source
var DataCloudCmd = &cobra.Command{
	Use:   "data-cloud",
	Short: "Deploy a Data Cloud pasture with blueprints",
	Long: "\nCreates a data-cloud landing zone in a FAST foundation " +
		"sandbox. Blueprints are deployed as features into the landing zone. " +
		"An example of how to use this pasture:\n\n\t" +
		"pasture create data-cloud --region us-central1 --pasture-size small",
	Args: cobra.NoArgs,
	Run: func(cmd *cobra.Command, args []string) {

		checkGoogleADCValidity()

		configPath := getConfigPath()

		setPersistentFlagsFromParent(cmd)

		varFile, varData := hydrateConfig(configPath)

		stages := fabric.InitializeFoundationStages(
			configPath,
			varData.Prefix,
			varFile,
		)

		seed := fabric.NewSeedStage(configPath)
		seed.HydrateSeed(cmd.Use, varData.Prefix, configPath)
		seed.AddVarFile(varFile)

		stages = append(stages, seed)

		processStages(cmd, stages, varFile)
	},
}

DataCloudCmd represents the dataCloud command

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