Merge pull request #160 from hwdef/cleanup-jobflow

Clean up comments in JobFlowSpec and JobTemplateSpec
This commit is contained in:
Volcano Bot 2025-04-23 17:37:24 +08:00 committed by GitHub
commit d6adedc794
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 21 deletions

View File

@ -22,15 +22,8 @@ import (
"volcano.sh/apis/pkg/apis/batch/v1alpha1"
)
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
// JobFlowSpec defines the desired state of JobFlow
type JobFlowSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file
// Foo is an example field of JobFlow. Edit jobflow_types.go to remove/update
// +optional
Flows []Flow `json:"flows,omitempty"`
// +optional
@ -93,8 +86,6 @@ type TaskStatus struct {
// JobFlowStatus defines the observed state of JobFlow
type JobFlowStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
// +optional
PendingJobs []string `json:"pendingJobs,omitempty"`
// +optional

View File

@ -21,24 +21,15 @@ import (
"volcano.sh/apis/pkg/apis/batch/v1alpha1"
)
// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
// JobTemplateSpec defines the desired state of JobTemplate
type JobTemplateSpec struct {
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
// Important: Run "make" to regenerate code after modifying this file
// Foo is an example field of JobTemplate. Edit jobtemplate_types.go to remove/update
v1alpha1.JobSpec
// JobSpec is the specification of the Job
v1alpha1.JobSpec `json:"jobSpec,omitempty"`
}
// JobTemplateStatus defines the observed state of JobTemplate
type JobTemplateStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
//Describes the Jobs generated from the JobTemplate
// JobDependsOnList is the list of jobs that this job depends on
JobDependsOnList []string `json:"jobDependsOnList,omitempty"`
}