Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Commit

Permalink
Adding validation for v1beta1 apis
Browse files Browse the repository at this point in the history
  • Loading branch information
johnugeorge committed Nov 8, 2018
1 parent 775449e commit 9657d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/pytorch/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func ValidateBetaOnePyTorchJobSpec(c *torchv1beta1.PyTorchJobSpec) error {
log.Warn("Image is undefined in the container")
return fmt.Errorf("PyTorchJobSpec is not valid")
}
if container.Name == torchv2.DefaultContainerName {
if container.Name == torchv1beta1.DefaultContainerName {
defaultContainerPresent = true
}
}
Expand Down

0 comments on commit 9657d56

Please sign in to comment.