forked from siderolabs/kres
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.go
More file actions
62 lines (51 loc) · 1.79 KB
/
Copy pathconfig.go
File metadata and controls
62 lines (51 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
package auto
// NamedConfig is a base type which provides config name.
type NamedConfig struct {
name string
}
// Name implements named interface.
func (cfg *NamedConfig) Name() string {
return cfg.name
}
// CommandConfig sets up settings for command build.
type CommandConfig struct {
NamedConfig
DisableImage bool `yaml:"disableImage"`
}
// CustomSteps defines custom steps to be generated.
type CustomSteps struct {
Steps []CustomStep `yaml:"steps"`
}
// CustomStep defines a custom step to be built.
type CustomStep struct {
Name string `yaml:"name"`
Inputs []string `yaml:"inputs"`
Dependants []string `yaml:"dependants"`
Toplevel bool `yaml:"toplevel"`
}
// CI defines CI settings.
type CI struct {
Provider string `yaml:"provider"`
// CompileGHWorkflowsOnly is a flag to generate only GitHub Actions.
CompileGHWorkflowsOnly bool `yaml:"compileGHWorkflowsOnly"`
}
// Helm defines helm settings.
type Helm struct {
ChartDir string `yaml:"chartDir"`
Enabled bool `yaml:"enabled"`
}
// IntegrationTests defines integration tests builder to be generated.
type IntegrationTests struct {
Tests []IntegrationTestConfig `yaml:"tests"`
}
// IntegrationTestConfig defines the integration tests build configuration.
type IntegrationTestConfig struct {
Outputs map[string]map[string]string `yaml:"outputs"`
Name string `yaml:"name"`
Path string `yaml:"path"`
ImageName string `yaml:"imageName"`
EnableDockerImage bool `yaml:"enableDockerImage"`
}