diff --git a/flyteplugins/go/tasks/plugins/k8s/kfoperators/tensorflow/tensorflow.go b/flyteplugins/go/tasks/plugins/k8s/kfoperators/tensorflow/tensorflow.go index 69ad4390ea..4e35341841 100644 --- a/flyteplugins/go/tasks/plugins/k8s/kfoperators/tensorflow/tensorflow.go +++ b/flyteplugins/go/tasks/plugins/k8s/kfoperators/tensorflow/tensorflow.go @@ -122,7 +122,7 @@ func (tensorflowOperatorResourceHandler) BuildResource(ctx context.Context, task workerReplicaSpec := kfTensorflowTaskExtraArgs.GetWorkerReplicas() if workerReplicaSpec != nil { err := common.OverrideContainerSpec( - replicaSpecMap[kubeflowv1.MPIJobReplicaTypeWorker].PodSpec, + replicaSpecMap[kubeflowv1.TFJobReplicaTypeWorker].PodSpec, kubeflowv1.TFJobDefaultContainerName, workerReplicaSpec.GetImage(), workerReplicaSpec.GetResources(),