Skip to content

Commit

Permalink
fix: setvice pvcs
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Dec 12, 2024
1 parent b85e274 commit fd2dd60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/mapper/testworkflows/kube_openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@ func MapIndependentServiceSpecKubeToAPI(v testworkflowsv1.IndependentServiceSpec
Logs: MapStringToBoxedString(v.Logs),
RestartPolicy: string(v.RestartPolicy),
ReadinessProbe: common.MapPtr(v.ReadinessProbe, MapProbeKubeToAPI),
Pvcs: common.MapMap(v.Pvcs, MapPvcConfigKubeToAPI),
}
}

Expand Down Expand Up @@ -1059,6 +1060,7 @@ func MapServiceSpecKubeToAPI(v testworkflowsv1.ServiceSpec) testkube.TestWorkflo
Logs: MapStringToBoxedString(v.Logs),
RestartPolicy: string(v.RestartPolicy),
ReadinessProbe: common.MapPtr(v.ReadinessProbe, MapProbeKubeToAPI),
Pvcs: common.MapMap(v.Pvcs, MapPvcConfigKubeToAPI),
}
}

Expand Down Expand Up @@ -1213,7 +1215,6 @@ func MapTestWorkflowTagSchemaKubeToAPI(v testworkflowsv1.TestWorkflowTagSchema)

func MapPvcConfigKubeToAPI(v testworkflowsv1.TestWorkflowPvcConfig) testkube.TestWorkflowPvcConfig {
return testkube.TestWorkflowPvcConfig{
Shared: v.Shared,
AccessModes: v.AccessModes,
VolumeMode: v.VolumeMode,
Resources: common.MapPtr(v.Resources, MapResourcesKubeToAPI),
Expand Down
3 changes: 2 additions & 1 deletion pkg/mapper/testworkflows/openapi_kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ func MapIndependentServiceSpecAPIToKube(v testkube.TestWorkflowIndependentServic
Logs: MapBoxedStringToString(v.Logs),
RestartPolicy: testworkflowsv1.ServiceRestartPolicy(v.RestartPolicy),
ReadinessProbe: common.MapPtr(v.ReadinessProbe, MapProbeAPIToKube),
Pvcs: common.MapMap(v.Pvcs, MapPvcConfigAPIToKube),
}
}

Expand Down Expand Up @@ -1136,6 +1137,7 @@ func MapServiceSpecAPIToKube(v testkube.TestWorkflowServiceSpec) testworkflowsv1
Logs: MapBoxedStringToString(v.Logs),
RestartPolicy: testworkflowsv1.ServiceRestartPolicy(v.RestartPolicy),
ReadinessProbe: common.MapPtr(v.ReadinessProbe, MapProbeAPIToKube),
Pvcs: common.MapMap(v.Pvcs, MapPvcConfigAPIToKube),
},
}
}
Expand Down Expand Up @@ -1492,7 +1494,6 @@ func MapTestWorkflowTagSchemaAPIToKube(v testkube.TestWorkflowTagSchema) testwor

func MapPvcConfigAPIToKube(v testkube.TestWorkflowPvcConfig) testworkflowsv1.TestWorkflowPvcConfig {
return testworkflowsv1.TestWorkflowPvcConfig{
Shared: v.Shared,
AccessModes: v.AccessModes,
VolumeMode: v.VolumeMode,
Resources: common.MapPtr(v.Resources, MapResourcesAPIToKube),
Expand Down

0 comments on commit fd2dd60

Please sign in to comment.