Documentation
¶
Index ¶
- func ClusterWorkflowTemplate(ctx context.Context, ...) error
- func CronWorkflow(ctx context.Context, ...) error
- func SubstituteResourceManifestExpressions(manifest string) string
- func VerifyResolvedVariables(obj any) error
- func Workflow(ctx context.Context, ...) error
- func WorkflowTemplate(ctx context.Context, ...) error
- func WorkflowTemplateRefFields(wfSpec wfv1.WorkflowSpec) error
- type FakeArguments
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterWorkflowTemplate ¶
func ClusterWorkflowTemplate(ctx context.Context, wftmplGetter templateresolution.WorkflowTemplateNamespacedGetter, cwftmplGetter templateresolution.ClusterWorkflowTemplateGetter, cwftmpl *wfv1.ClusterWorkflowTemplate, wfDefaults *wfv1.Workflow, opts Opts) error
ClusterWorkflowTemplate accepts a cluster workflow template and performs validation against it.
func CronWorkflow ¶
func CronWorkflow(ctx context.Context, wftmplGetter templateresolution.WorkflowTemplateNamespacedGetter, cwftmplGetter templateresolution.ClusterWorkflowTemplateGetter, cronWf *wfv1.CronWorkflow, wfDefaults *wfv1.Workflow) error
CronWorkflow validates a CronWorkflow
func VerifyResolvedVariables ¶
VerifyResolvedVariables is a helper to ensure all {{variables}} have been resolved for a object
func Workflow ¶
func Workflow(ctx context.Context, wftmplGetter templateresolution.WorkflowTemplateNamespacedGetter, cwftmplGetter templateresolution.ClusterWorkflowTemplateGetter, wf *wfv1.Workflow, wfDefaults *wfv1.Workflow, opts Opts) error
Workflow accepts a workflow and performs validation against it.
func WorkflowTemplate ¶
func WorkflowTemplate(ctx context.Context, wftmplGetter templateresolution.WorkflowTemplateNamespacedGetter, cwftmplGetter templateresolution.ClusterWorkflowTemplateGetter, wftmpl *wfv1.WorkflowTemplate, wfDefaults *wfv1.Workflow, opts Opts) error
WorkflowTemplate accepts a workflow template and performs validation against it.
func WorkflowTemplateRefFields ¶
func WorkflowTemplateRefFields(wfSpec wfv1.WorkflowSpec) error
Types ¶
type FakeArguments ¶
type FakeArguments struct{}
func (*FakeArguments) GetArtifactByName ¶
func (args *FakeArguments) GetArtifactByName(name string) *wfv1.Artifact
func (*FakeArguments) GetParameterByName ¶
func (args *FakeArguments) GetParameterByName(name string) *wfv1.Parameter
type Opts ¶
type Opts struct {
// Lint indicates if this is performing validation in the context of linting. If true, will
// skip some validations which is permissible during linting but not submission (e.g. missing
// input parameters to the workflow)
Lint bool
// IgnoreEntrypoint indicates to skip/ignore the EntryPoint validation on workflow spec.
// Entrypoint is optional for WorkflowTemplate and ClusterWorkflowTemplate
IgnoreEntrypoint bool
// WorkflowTemplateValidation indicates that the current context is validating a WorkflowTemplate or ClusterWorkflowTemplate
WorkflowTemplateValidation bool
// Submit indicates that the current operation is a workflow submission. This will impose
// more stringent requirements (e.g. require input values for all spec arguments)
Submit bool
}
Opts provides options when linting
Click to show internal directories.
Click to hide internal directories.