func (s *TrainingJob) Elastic() bool {
	return s.Spec.Trainer.MinInstance < s.Spec.Trainer.MaxInstance
}
Elastic returns true if the job can scale to more workers.
package v1alpha1
import (
	"encoding/json"
	"fmt"
	"k8s.io/apimachinery/pkg/api/resource"
)