func DestroyNetworksStage()

in helpers/foundation-deployer/stages/destroy.go [115:128]


func DestroyNetworksStage(t testing.TB, s steps.Steps, outputs BootstrapOutputs, c CommonConf) error {
	step := GetNetworkStep(c.EnableHubAndSpoke)
	stageConf := StageConf{
		Stage:         NetworksRepo,
		StageSA:       outputs.NetworkSA,
		CICDProject:   outputs.CICDProject,
		Step:          step,
		Repo:          NetworksRepo,
		HasManualStep: true,
		GroupingUnits: []string{"envs"},
		Envs:          []string{"development", "non-production", "production"},
	}
	return destroyStage(t, stageConf, s, c)
}