Skip to content

Generate DeepCopy methods #99

@spolti

Description

@spolti

What would you like to be added:
When working with hard typed Workflow definition, we might need to define the base workflow struct and import the types from sdk-go.

import github.com/serverlessworkflow/sdk-go/v2
...
type WorkflowSpec struct {
	Retry      model.Retry      `json:"retry"`
}

Such scenario can thrown the following compilation error:

api/v08/zz_generated.deepcopy.go:807:13: in.Retries.DeepCopyInto undefined (type model.Retry has no field or method DeepCopyInto)

We can rely on https://pkg.go.dev/k8s.io/gengo/examples/deepcopy-gen
to have these automatically generated.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions