Skip to content

Commit

Permalink
add GitRepository as a default for CrossNamespaceSourceReference.Kind
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanskar Jaiswal committed Jan 21, 2022
1 parent a7d4c60 commit 1410e16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1beta1/reference.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type CrossNamespaceSourceReference struct {

// Kind of the referent.
// +kubebuilder:validation:Enum=GitRepository
// +kubebuilder:default=GitRepository
// +required
Kind string `json:"kind"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ spec:
description: API version of the referent.
type: string
kind:
default: GitRepository
description: Kind of the referent.
enum:
- GitRepository
Expand Down

0 comments on commit 1410e16

Please sign in to comment.