Vinny
10/19/2024, 5:07 PMAndriy Knysh (Cloud Posse)
10/19/2024, 5:32 PMvendor.yaml file in the root of the repoAndriy Knysh (Cloud Posse)
10/19/2024, 5:33 PMatmos.yaml
vendor:
vendor_config_path: <path to vendor.yaml>Andriy Knysh (Cloud Posse)
10/19/2024, 5:33 PMVinny
10/19/2024, 5:33 PMAndriy Knysh (Cloud Posse)
10/19/2024, 5:33 PM// CliConfiguration structure represents schema for `atmos.yaml` CLI config
type CliConfiguration struct {Andriy Knysh (Cloud Posse)
10/19/2024, 5:34 PM// CliConfiguration structure represents schema for `atmos.yaml` CLI config
type CliConfiguration struct {
Vendor ...Andriy Knysh (Cloud Posse)
10/19/2024, 5:34 PMvendor.yaml from the atmos.yaml first, and use it if it existsAndriy Knysh (Cloud Posse)
10/19/2024, 5:35 PMatmos.yaml, but vendor.yaml file is not there, print an errorAndriy Knysh (Cloud Posse)
10/19/2024, 5:36 PMatmos.yaml, go back to the existing logic - search for vendor.yaml in the root of the repoVinny
10/19/2024, 5:37 PMAndriy Knysh (Cloud Posse)
10/19/2024, 5:41 PM// CliConfiguration structure represents schema for `atmos.yaml` CLI config
type CliConfiguration struct {
Vendor ...Andriy Knysh (Cloud Posse)
10/19/2024, 5:42 PMpkg/schema/schema.goVinny
10/19/2024, 5:42 PMAndriy Knysh (Cloud Posse)
10/19/2024, 5:42 PM// Atmos vendoring (`vendor.yaml` file)
type AtmosVendorSource struct {
Component string `yaml:"component" json:"component" mapstructure:"component"`
Source string `yaml:"source" json:"source" mapstructure:"source"`
Version string `yaml:"version" json:"version" mapstructure:"version"`
File string `yaml:"file" json:"file" mapstructure:"file"`
Targets []string `yaml:"targets" json:"targets" mapstructure:"targets"`
IncludedPaths []string `yaml:"included_paths,omitempty" json:"included_paths,omitempty" mapstructure:"included_paths"`
ExcludedPaths []string `yaml:"excluded_paths,omitempty" json:"excluded_paths,omitempty" mapstructure:"excluded_paths"`
Tags []string `yaml:"tags" json:"tags" mapstructure:"tags"`
}Andriy Knysh (Cloud Posse)
10/19/2024, 5:43 PMtype AtmosVendorConfig struct {
ApiVersion string `yaml:"apiVersion" json:"apiVersion" mapstructure:"apiVersion"`
Kind string `yaml:"kind" json:"kind" mapstructure:"kind"`
Metadata AtmosVendorMetadata
Spec AtmosVendorSpec `yaml:"spec" json:"spec" mapstructure:"spec"`
}