Skip to content

Commit

Permalink
Remove default value for ManagedBy
Browse files Browse the repository at this point in the history
  • Loading branch information
mszadkow committed Oct 7, 2024
1 parent 08a3ac8 commit 26d3283
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions pkg/apis/kubeflow/v2beta1/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ func setDefaultsRunPolicy(policy *RunPolicy) {
if policy.CleanPodPolicy == nil {
policy.CleanPodPolicy = ptr.To(CleanPodPolicyNone)
}
if policy.ManagedBy == nil {
policy.ManagedBy = ptr.To(KubeflowJobController)
}
// The remaining fields are passed as-is to the k8s Job API, which does its
// own defaulting.
}
Expand Down
7 changes: 0 additions & 7 deletions pkg/apis/kubeflow/v2beta1/default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func TestSetDefaults_MPIJob(t *testing.T) {
SlotsPerWorker: ptr.To[int32](1),
RunPolicy: RunPolicy{
CleanPodPolicy: ptr.To(CleanPodPolicyNone),
ManagedBy: ptr.To(KubeflowJobController),
},
SSHAuthMountPath: "/root/.ssh",
MPIImplementation: MPIImplementationOpenMPI,
Expand All @@ -49,7 +48,6 @@ func TestSetDefaults_MPIJob(t *testing.T) {
TTLSecondsAfterFinished: ptr.To[int32](2),
ActiveDeadlineSeconds: ptr.To[int64](3),
BackoffLimit: ptr.To[int32](4),
ManagedBy: ptr.To(MultiKueueController),
},
SSHAuthMountPath: "/home/mpiuser/.ssh",
MPIImplementation: MPIImplementationIntel,
Expand All @@ -64,7 +62,6 @@ func TestSetDefaults_MPIJob(t *testing.T) {
TTLSecondsAfterFinished: ptr.To[int32](2),
ActiveDeadlineSeconds: ptr.To[int64](3),
BackoffLimit: ptr.To[int32](4),
ManagedBy: ptr.To(MultiKueueController),
},
SSHAuthMountPath: "/home/mpiuser/.ssh",
MPIImplementation: MPIImplementationIntel,
Expand All @@ -81,7 +78,6 @@ func TestSetDefaults_MPIJob(t *testing.T) {
TTLSecondsAfterFinished: ptr.To[int32](2),
ActiveDeadlineSeconds: ptr.To[int64](3),
BackoffLimit: ptr.To[int32](4),
ManagedBy: ptr.To(KubeflowJobController),
},
SSHAuthMountPath: "/home/mpiuser/.ssh",
MPIImplementation: MPIImplementationMPICH,
Expand All @@ -96,7 +92,6 @@ func TestSetDefaults_MPIJob(t *testing.T) {
TTLSecondsAfterFinished: ptr.To[int32](2),
ActiveDeadlineSeconds: ptr.To[int64](3),
BackoffLimit: ptr.To[int32](4),
ManagedBy: ptr.To(KubeflowJobController),
},
SSHAuthMountPath: "/home/mpiuser/.ssh",
MPIImplementation: MPIImplementationMPICH,
Expand All @@ -117,7 +112,6 @@ func TestSetDefaults_MPIJob(t *testing.T) {
SlotsPerWorker: ptr.To[int32](1),
RunPolicy: RunPolicy{
CleanPodPolicy: ptr.To(CleanPodPolicyNone),
ManagedBy: ptr.To(KubeflowJobController),
},
SSHAuthMountPath: "/root/.ssh",
MPIImplementation: MPIImplementationOpenMPI,
Expand All @@ -144,7 +138,6 @@ func TestSetDefaults_MPIJob(t *testing.T) {
SlotsPerWorker: ptr.To[int32](1),
RunPolicy: RunPolicy{
CleanPodPolicy: ptr.To(CleanPodPolicyNone),
ManagedBy: ptr.To(KubeflowJobController),
},
SSHAuthMountPath: "/root/.ssh",
MPIImplementation: MPIImplementationOpenMPI,
Expand Down

0 comments on commit 26d3283

Please sign in to comment.