Skip to content

Commit

Permalink
add kubebuilder markers for resource path and shortname
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-pampattiwar committed May 9, 2024
1 parent 537dc28 commit 91fb3ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/nonadminbackup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type NonAdminBackupStatus struct {

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:path=nonadminbackups,shortName=nab

// NonAdminBackup is the Schema for the nonadminbackups API
type NonAdminBackup struct {
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/nac.oadp.openshift.io_nonadminbackups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
kind: NonAdminBackup
listKind: NonAdminBackupList
plural: nonadminbackups
shortNames:
- nab
singular: nonadminbackup
scope: Namespaced
versions:
Expand Down

0 comments on commit 91fb3ae

Please sign in to comment.