Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Let openapi code-generator handle adding shortName to CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
akashshinde committed Aug 26, 2019
1 parent a585623 commit c042dc3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/crds/apps_v1alpha1_servicebindingrequest_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ spec:
kind: ServiceBindingRequest
listKind: ServiceBindingRequestList
plural: servicebindingrequests
singular: servicebindingrequest
shortNames:
- sbr
- sbrs
singular: servicebindingrequest
scope: Namespaced
subresources:
status: {}
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/apps/v1alpha1/servicebindingrequest_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type ApplicationSelector struct {
// ServiceBindingRequest is the Schema for the servicebindings API
// +k8s:openapi-gen=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:path=servicebindingrequests,shortName=sbr;sbrs
type ServiceBindingRequest struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/apps/v1alpha1/zz_generated.openapi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !ignore_autogenerated
// +build !

// This file was autogenerated by openapi-gen. Do not edit it manually!

Expand Down

0 comments on commit c042dc3

Please sign in to comment.