Skip to content

Commit

Permalink
Google Java Format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions authored and doks5 committed Nov 28, 2023
1 parent 3647633 commit 7b269cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2004,8 +2004,10 @@ private Optional<JobDeploymentStatus> mapV1beta1CronJobToDeploymentStatus(
var initContainers =
cronJob.getSpec().getJobTemplate().getSpec().getTemplate().getSpec().getInitContainers();
if (!CollectionUtils.isEmpty(initContainers)) {
// With the functionality to pass custom vdk images that are different from the ones specified
// in the supportedPythonVersions, we need to pass the whole image as a VdkVersion instead of
// With the functionality to pass custom vdk images that are different from the ones
// specified
// in the supportedPythonVersions, we need to pass the whole image as a VdkVersion instead
// of
// just the image tag.
String vdkImage = initContainers.get(0).getImage();
deployment.setVdkVersion(vdkImage);
Expand Down Expand Up @@ -2068,8 +2070,10 @@ private Optional<JobDeploymentStatus> mapV1CronJobToDeploymentStatus(
var initContainers =
cronJob.getSpec().getJobTemplate().getSpec().getTemplate().getSpec().getInitContainers();
if (!CollectionUtils.isEmpty(initContainers)) {
// With the functionality to pass custom vdk images that are different from the ones specified
// in the supportedPythonVersions, we need to pass the whole image as a VdkVersion instead of
// With the functionality to pass custom vdk images that are different from the ones
// specified
// in the supportedPythonVersions, we need to pass the whole image as a VdkVersion instead
// of
// just the image tag.
String vdkImage = initContainers.get(0).getImage();
deployment.setVdkVersion(vdkImage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ private void updateCronJob(DataJob dataJob, JobDeployment jobDeployment, String
"cp -r $(python -c \"from distutils.sysconfig import get_python_lib;"
+ " print(get_python_lib())\") /vdk/. && cp /usr/local/bin/vdk /vdk/.");

var jobVdkImage = (jobDeployment.getVdkVersion() != null)
var jobVdkImage =
(jobDeployment.getVdkVersion() != null)
? jobDeployment.getVdkVersion()
: supportedPythonVersions.getVdkImage(jobDeployment.getPythonVersion());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ private KubernetesService.CronJob getCronJob(
"-c",
"cp -r $(python -c \"from distutils.sysconfig import get_python_lib;"
+ " print(get_python_lib())\") /vdk/. && cp /usr/local/bin/vdk /vdk/.");
var jobVdkImage = (jobDeployment.getVdkVersion() != null)
var jobVdkImage =
(jobDeployment.getVdkVersion() != null)
? jobDeployment.getVdkVersion()
: supportedPythonVersions.getVdkImage(jobDeployment.getPythonVersion());
var jobInitContainer =
Expand Down

0 comments on commit 7b269cf

Please sign in to comment.