Skip to content

Commit

Permalink
Add shortName of gr to gitrepositories
Browse files Browse the repository at this point in the history
Signed-off-by: abhinav454 <43758739+abhinav454@users.noreply.github.com>
  • Loading branch information
abhi-kapoor committed Apr 7, 2021
1 parent bf47d52 commit 9ec8412
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions api/v1beta1/gitrepository_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func (in *GitRepository) GetInterval() metav1.Duration {
// +genclient
// +genclient:Namespaced
// +kubebuilder:object:root=true
// +kubebuilder:resource:shortName=gr
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ spec:
kind: GitRepository
listKind: GitRepositoryList
plural: gitrepositories
shortNames:
- gr
singular: gitrepository
scope: Namespaced
versions:
Expand Down

0 comments on commit 9ec8412

Please sign in to comment.