// ExportCluster exports a placemat configuration to writer from TemplateArgs
ExportCluster exports a placemat configuration to writer from TemplateArgs
// ExportCluster exports a placemat configuration to writer from TemplateArgs
func ExportCluster(w io.Writer, ta *TemplateArgs) error {
	cluster := generateCluster(ta)
	encoder := yaml.NewEncoder(w)
	for _, n := range cluster.networks {
		err := encoder.Encode(n)
		if err != nil {
			return err
		}
	}
	for _, i := range ta.Images {
		err := encoder.Encode(i)
		if err != nil {
			return err
		}
	}
	for _, f := range cluster.dataFolders {
		err := encoder.Encode(f)
		if err != nil {
			return err
		}
	}
	for _, n := range cluster.nodes {
		err := encoder.Encode(n)
		if err != nil {
			return err
		}
	}
	for _, p := range cluster.pods {
		err := encoder.Encode(p)
		if err != nil {
			return err
		}
	}
	return nil
}
func ExportCluster ( w io . Writer , ta * TemplateArgs ) error { cluster := generateCluster ( ta ) encoder := yaml . NewEncoder ( w ) for _ , n := range cluster . networks { err := encoder . Encode ( n ) if err != nil { return err } } for _ , i := range ta . Images { err := encoder . Encode ( i ) if err != nil { return err } } for _ , f := range cluster . dataFolders { err := encoder . Encode ( f ) if err != nil { return err } } for _ , n := range cluster . nodes { err := encoder . Encode ( n ) if err != nil { return err } } for _ , p := range cluster . pods { err := encoder . Encode ( p ) if err != nil { return err } } return nil }
ExportCluster exports a placemat configuration to writer from TemplateArgs
ExportCluster exports a placemat configuration to writer from TemplateArgs