@@ -60,18 +60,34 @@ type DataVolumes struct {
60
60
}
61
61
62
62
type ValueElement struct {
63
- Value ValueValue `yaml:"value" json:"value"`
63
+ Value VolumeValues `yaml:"value" json:"value"`
64
64
}
65
65
66
- type ValueValue struct {
67
- Type ImagePullPolicy `yaml:"type" json:"type"`
68
- Name ImagePullPolicy `yaml:"name" json:"name"`
69
- Size ImagePullPolicy `yaml:"size" json:"size"`
70
- MountPath ImagePullPolicy `yaml:"mountPath" json:"mountPath"`
71
- AccessModes ImagePullPolicy `yaml:"accessModes" json:"accessModes"`
72
- Class ImagePullPolicy `yaml:"class" json:"class"`
66
+ // Structs for the yaml versions of definitions, minimalistic as it is just a default
67
+ //can't re-use structs from go since this is yaml and not json
68
+ type VolumeValues struct {
69
+ Mount string `yaml:"mount" json:"mount"`
70
+ NewPvc NewPvcYaml `yaml:"newPvc" json:"newPvc"`
73
71
}
74
72
73
+ type NewPvcMetadataYaml struct {
74
+ Name string `yaml:"name" json:"name"`
75
+ }
76
+ type NewPvcRequestsYaml struct {
77
+ Storage string `yaml:"storage" json:"storage"`
78
+ }
79
+ type NewPvcResourcesYaml struct {
80
+ Requests NewPvcRequestsYaml `yaml:"requests" json:"requests"`
81
+ }
82
+ type NewPvcSpecYaml struct {
83
+ Resources NewPvcResourcesYaml `yaml:"resources" json:"resources"`
84
+ AccessModes []corev1.PersistentVolumeAccessMode `yaml:"accessModes" json:"accessModes"`
85
+ }
86
+ type NewPvcYaml struct {
87
+ Metadata NewPvcMetadataYaml `yaml:"metadata" json:"metadata"`
88
+ Spec NewPvcSpecYaml `yaml:"spec" json:"spec"`
89
+ } // last struct for yaml versions
90
+
75
91
type ImagePullPolicy struct {
76
92
Value string `yaml:"value" json:"value"`
77
93
}
@@ -129,8 +145,8 @@ type TolerationGroupOption struct {
129
145
}
130
146
131
147
type WorkspaceVolume struct {
132
- Value ValueValue `yaml:"value" json:"value"`
133
- ReadOnly bool `yaml:"readOnly" json:"readOnly"`
148
+ Value VolumeValues `yaml:"value" json:"value"`
149
+ ReadOnly bool `yaml:"readOnly" json:"readOnly"`
134
150
}
135
151
136
152
type Configuration struct {
0 commit comments