Skip to content

Commit

Permalink
api: add k8s validation for workflow names to be unique
Browse files Browse the repository at this point in the history
Signed-off-by: Raghavendra Talur <[email protected]>
Co-Authored-by: Annaraya Narasagond <[email protected]>
  • Loading branch information
raghavendra-talur and asn1809 committed Oct 1, 2024
1 parent 667b9d7 commit 2fe5eb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/recipe_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ type RecipeSpec struct {
//+listMapKey=name
Hooks []*Hook `json:"hooks,omitempty"`
// Workflow is the sequence of actions to take
//+listType=map
//+listMapKey=name
//+optional
Workflows []*Workflow `json:"workflows"`
}
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/ramendr.openshift.io_recipes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,9 @@ spec:
- sequence
type: object
type: array
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
required:
- appType
type: object
Expand Down

0 comments on commit 2fe5eb2

Please sign in to comment.