@@ -5,81 +5,12 @@ const Version string = "v1"
55
66//Config defines the configuration
77type Config struct {
8- Version * string `yaml:"version"`
9- DevSpace * DevSpaceConfig `yaml:"devSpace,omitempty"`
10- Image * ImageConfig `yaml:"image,omitempty"`
11- Cluster * Cluster `yaml:"cluster,omitempty"`
12- Services * ServiceConfig `yaml:"services,omitempty"`
13- }
14-
15- //ImageConfig defines the image specification
16- type ImageConfig struct {
17- Name * string `yaml:"name"`
18- Tag * string `yaml:"tag"`
19- BuildTime * string `yaml:"buildTime"`
20- Registry * RegistryConfig `yaml:"registry"`
21- }
22-
23- //DevSpaceConfig defines the devspace deployment
24- type DevSpaceConfig struct {
25- Release * Release `yaml:"release"`
26- PortForwarding * []* PortForwardingConfig `yaml:"portForwarding"`
27- Sync * []* SyncConfig `yaml:"sync"`
28- }
29-
30- //ServiceConfig defines additional services
31- type ServiceConfig struct {
32- Tiller * TillerConfig `yaml:"tiller,omitempty"`
33- InternalRegistry * InternalRegistry `yaml:"internalRegistry,omitempty"`
34- }
35-
36- //TillerConfig defines the tiller service
37- type TillerConfig struct {
38- Release * Release `yaml:"release"`
39- AppNamespaces * []* string `yaml:"appNamespaces"`
40- }
41-
42- //RegistryConfig defines the registry service
43- type RegistryConfig struct {
44- URL * string `yaml:"url,omitempty"`
45- Auth * RegistryAuth `yaml:"auth,omitempty"`
46- Insecure * bool `yaml:"insecure,omitempty"`
47- }
48-
49- //InternalRegistry defines the deployment of an internal registry
50- type InternalRegistry struct {
51- Release * Release `yaml:"release,omitempty"`
52- Host * string `yaml:"host,omitempty"`
53- }
54-
55- //RegistryAuth is a user for the registry
56- type RegistryAuth struct {
57- Username * string `yaml:"username"`
58- Password * string `yaml:"password"`
59- }
60-
61- //PortForwardingConfig defines the ports for a port forwarding to a DevSpace
62- type PortForwardingConfig struct {
63- ResourceType * string `yaml:"resourceType"`
64- LabelSelector * map [string ]* string `yaml:"labelSelector"`
65- PortMappings * []* PortMapping `yaml:"portMappings"`
66- }
67-
68- //PortMapping defines the ports for a PortMapping
69- type PortMapping struct {
70- LocalPort * int `yaml:"localPort"`
71- RemotePort * int `yaml:"remotePort"`
72- }
73-
74- //SyncConfig defines the paths for a SyncFolder
75- type SyncConfig struct {
76- ResourceType * string `yaml:"resourceType"`
77- LabelSelector * map [string ]* string `yaml:"labelSelector"`
78- LocalSubPath * string `yaml:"localSubPath"`
79- ContainerPath * string `yaml:"containerPath"`
80- ExcludePaths * []string `yaml:"excludePaths"`
81- DownloadExcludePaths * []string `yaml:"downloadExcludePaths"`
82- UploadExcludePaths * []string `yaml:"uploadExcludePaths"`
8+ Version * string `yaml:"version"`
9+ DevSpace * DevSpaceConfig `yaml:"devSpace,omitempty"`
10+ Images * map [string ]* ImageConfig `yaml:"images,omitempty"`
11+ Registries * map [string ]* RegistryConfig `yaml:"registries,omitempty"`
12+ Cluster * Cluster `yaml:"cluster,omitempty"`
13+ Services * ServiceConfig `yaml:"services,omitempty"`
8314}
8415
8516//Release defines running version of a project
@@ -88,18 +19,3 @@ type Release struct {
8819 Namespace * string `yaml:"namespace"`
8920 Values * map [interface {}]interface {} `yaml:"values,omitempty"`
9021}
91-
92- //Cluster is a struct that contains data for a Kubernetes-Cluster
93- type Cluster struct {
94- UseKubeConfig * bool `yaml:"useKubeConfig,omitempty"`
95- APIServer * string `yaml:"apiServer,omitempty"`
96- CaCert * string `yaml:"caCert,omitempty"`
97- User * User `yaml:"user,omitempty"`
98- }
99-
100- //User is a user with its username and its client certificate
101- type User struct {
102- Username * string `yaml:"username,omitempty"`
103- ClientCert * string `yaml:"clientCert,omitempty"`
104- ClientKey * string `yaml:"clientKey,omitempty"`
105- }
0 commit comments