Skip to content

Commit

Permalink
Added an option deploy external DNS to apply-config pipeline job
Browse files Browse the repository at this point in the history
  • Loading branch information
satr committed Nov 4, 2024
1 parent 9fea278 commit 963f33b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions api/jobs/models/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ func GetJobFromRadixJob(job *radixv1.RadixJob, jobDeployments []*deploymentModel
jobModel.PromotedToEnvironment = job.Spec.Promote.ToEnvironment
jobModel.CommitID = job.Spec.Promote.CommitID
case radixv1.ApplyConfig:
if job.Spec.ApplyConfig.DeployExternalDNS {
jobModel.DeployExternalDNS = pointers.Ptr(true)
}
jobModel.DeployExternalDNS = pointers.Ptr(job.Spec.ApplyConfig.DeployExternalDNS)
}
return &jobModel
}
Expand Down
4 changes: 1 addition & 3 deletions api/jobs/models/job_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ func GetSummaryFromRadixJob(job *radixv1.RadixJob) *JobSummary {
pipelineJob.PromotedToEnvironment = job.Spec.Promote.ToEnvironment
pipelineJob.CommitID = job.Spec.Promote.CommitID
case radixv1.ApplyConfig:
if job.Spec.ApplyConfig.DeployExternalDNS {
pipelineJob.DeployExternalDNS = pointers.Ptr(true)
}
pipelineJob.DeployExternalDNS = pointers.Ptr(job.Spec.ApplyConfig.DeployExternalDNS)
}

return pipelineJob
Expand Down

0 comments on commit 963f33b

Please sign in to comment.