Skip to content

Commit

Permalink
enable validation for custom package type
Browse files Browse the repository at this point in the history
Signed-off-by: Manabu McCloskey <[email protected]>
  • Loading branch information
nabuskey committed Jun 4, 2024
1 parent 9042a52 commit 5d1cc4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/v1alpha1/custom_package_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ type ArgoCDPackageSpec struct {
ApplicationFile string `json:"applicationFile"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Type string `json:"type"`
// +kubebuilder:validation:Enum:=Application;ApplicationSet
Type string `json:"type"`
}

type CustomPackageStatus struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ spec:
namespace:
type: string
type:
enum:
- Application
- ApplicationSet
type: string
required:
- applicationFile
Expand Down

0 comments on commit 5d1cc4b

Please sign in to comment.