@@ -60,18 +60,34 @@ type DataVolumes struct {
6060}
6161
6262type  ValueElement  struct  {
63- 	Value  ValueValue  `yaml:"value" json:"value"` 
63+ 	Value  VolumeValues  `yaml:"value" json:"value"` 
6464}
6565
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"` 
7371}
7472
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+ 
7591type  ImagePullPolicy  struct  {
7692	Value  string  `yaml:"value" json:"value"` 
7793}
@@ -129,8 +145,8 @@ type TolerationGroupOption struct {
129145}
130146
131147type  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"` 
134150}
135151
136152type  Configuration  struct  {
0 commit comments