Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support JobFlowTemplate CRD #4098

Open
dongjiang1989 opened this issue Mar 14, 2025 · 3 comments
Open

Support JobFlowTemplate CRD #4098

dongjiang1989 opened this issue Mar 14, 2025 · 3 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@dongjiang1989
Copy link
Contributor

dongjiang1989 commented Mar 14, 2025

What is the problem you're trying to solve

JobFlowTemplate supports the pre-definition of numerous sets of job flows.
These jobFlows can be triggered by specific events, such as scheduled triggers or triggers based on changes in input data.

Describe the solution you'd like

Add JobFlowTemplate CRD

type JobFlowTemplate struct {
        metav1.TypeMeta   `json:",inline"`
        metav1.ObjectMeta `json:"metadata,omitempty"`

        Spec   v1alpha1.JobSpec  `json:"spec,omitempty"`

        TriggerList []Trigger `json:"trigger,omitempty"`  # Trigger event queue waiting for jobflow run

        Status JobTemplateStatus `json:"status,omitempty"`  # JobFlow DependsOn List
}

type JobFlowTemplateList struct {
        metav1.TypeMeta `json:",inline"`
        metav1.ListMeta `json:"metadata,omitempty"`
        Items           []JobFlowTemplate `json:"items"`
}

type JobFlowTemplateStatus struct {
        JobFlowDependsOnList []string `json:"jobFlowDependsOnList,omitempty"`
}

type JobFlowTemplateStatus struct {
        JobFlowDependsOnList []string `json:"jobFlowDependsOnList,omitempty"`
}

type Trigger struct {
        Name        string `json:"name,omitempty"`
        Condition   string `json:"condition,omitempty"`
        Description string `json:"description,omitempty"`
        Enabled     *bool  `json:"enabled,omitempty"`
}

Additional context

No response

@dongjiang1989 dongjiang1989 added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 14, 2025
@Monokaix
Copy link
Member

cc @hwdef

@hwdef
Copy link
Member

hwdef commented Mar 14, 2025

We need more scenes.

@hwdef
Copy link
Member

hwdef commented Mar 14, 2025

If you want to contribute to the jobflow, I have some scenarios that can provide:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants