validate

package
v3.7.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 24 Imported by: 4 modules, 17 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubstituteResourceManifestExpressions added in v3.4.8

func SubstituteResourceManifestExpressions(manifest string) string

func ValidateClusterWorkflowTemplate

func ValidateClusterWorkflowTemplate(wftmplGetter templateresolution.WorkflowTemplateNamespacedGetter, cwftmplGetter templateresolution.ClusterWorkflowTemplateGetter, cwftmpl *wfv1.ClusterWorkflowTemplate, wfDefaults *wfv1.Workflow, opts ValidateOpts) error

ValidateClusterWorkflowTemplate accepts a cluster workflow template and performs validation against it.

func ValidateCronWorkflow

ValidateCronWorkflow validates a CronWorkflow

func ValidateWorkflow

ValidateWorkflow accepts a workflow and performs validation against it.

func ValidateWorkflowTemplate

func ValidateWorkflowTemplate(wftmplGetter templateresolution.WorkflowTemplateNamespacedGetter, cwftmplGetter templateresolution.ClusterWorkflowTemplateGetter, wftmpl *wfv1.WorkflowTemplate, wfDefaults *wfv1.Workflow, opts ValidateOpts) error

ValidateWorkflowTemplate accepts a workflow template and performs validation against it.

func ValidateWorkflowTemplateRefFields

func ValidateWorkflowTemplateRefFields(wfSpec wfv1.WorkflowSpec) error

func VerifyResolvedVariables added in v3.6.0

func VerifyResolvedVariables(obj interface{}) error

VerifyResolvedVariables is a helper to ensure all {{variables}} have been resolved for a object

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 ValidateOpts

type ValidateOpts 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
}

ValidateOpts provides options when linting

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL