Skip to content

Commit 43370a2

Browse files
authored
Updated plural and short name (#39)
1 parent cc37d9d commit 43370a2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

deploy/crds/mongodb.com_mongodbs_crd.yaml renamed to deploy/crds/mongodb.com_mongodb_crd.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
apiVersion: apiextensions.k8s.io/v1beta1
22
kind: CustomResourceDefinition
33
metadata:
4-
name: mongodbs.mongodb.com
4+
name: mongodb.mongodb.com
55
spec:
66
group: mongodb.com
77
names:
88
kind: MongoDB
99
listKind: MongoDBList
10-
plural: mongodbs
10+
plural: mongodb
11+
shortNames:
12+
- mdb
1113
singular: mongodb
1214
scope: Namespaced
1315
subresources:

pkg/apis/mongodb/v1/mongodb_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type MongoDBStatus struct {
5151

5252
// MongoDB is the Schema for the mongodbs API
5353
// +kubebuilder:subresource:status
54-
// +kubebuilder:resource:path=mongodbs,scope=Namespaced
54+
// +kubebuilder:resource:path=mongodb,scope=Namespaced,shortName=mdb
5555
type MongoDB struct {
5656
metav1.TypeMeta `json:",inline"`
5757
metav1.ObjectMeta `json:"metadata,omitempty"`

0 commit comments

Comments
 (0)