Skip to content

Commit

Permalink
more Deref
Browse files Browse the repository at this point in the history
Signed-off-by: kuizhiqing <[email protected]>
  • Loading branch information
kuizhiqing committed Feb 21, 2024
1 parent 224e5e2 commit 934ee87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/mpi_job_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ func newConfigMap(mpiJob *kubeflow.MPIJob, workerReplicas int32) *corev1.ConfigM
// note that pod.spec.dnsConfig also affect the svc resolution
// ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
// launcher can be reach with hostname or service name
if mpiJob.Spec.RunLauncherAsWorker != nil && *mpiJob.Spec.RunLauncherAsWorker {
if ptr.Deref(mpiJob.Spec.RunLauncherAsWorker, false) {
launcherService := mpiJob.Name + launcherSuffix
switch mpiJob.Spec.MPIImplementation {
case kubeflow.MPIImplementationOpenMPI:
Expand Down

0 comments on commit 934ee87

Please sign in to comment.