Skip to content

Commit

Permalink
Embedded app name optional needs to precede enum
Browse files Browse the repository at this point in the history
Without this, not specifying embeeded app name errors because it does not adhere to the enum validation.
  • Loading branch information
greghaynes committed Dec 6, 2023
1 parent 9b25a0c commit 19b48e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/gitrepository_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ type GitRepositorySpec struct {
}

type GitRepositorySource struct {
// +kubebuilder:validation:Enum:=argocd;backstage;crossplane;gitea;nginx
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Enum:=argocd;backstage;crossplane;gitea;nginx
EmbeddedAppName string `json:"embeddedAppName"`
// Path is the absolute path to directory that contains Kustomize structure or raw manifests.
// This is required when Type is set to local.
Expand Down

0 comments on commit 19b48e4

Please sign in to comment.