Skip to content

Commit

Permalink
feat: add shortnames for CRDs (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-yosefpor authored Oct 2, 2023
1 parent eb7d7bf commit 6e34033
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/s3bucket_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type S3BucketStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="S3USERREF",type=string,JSONPath=`.spec.s3UserRef`
// +kubebuilder:resource:shortName=s3b

// S3Bucket is the Schema for the s3buckets API
type S3Bucket struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha1/s3userclaim_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type S3UserClaimStatus struct {
// +kubebuilder:printcolumn:name="MAX SIZE",type=string,JSONPath=`.status.quota.maxSize`
// +kubebuilder:printcolumn:name="MAX BUCKETS",type=string,JSONPath=`.status.quota.maxBuckets`
// +kubebuilder:printcolumn:name="AGE",type=date,JSONPath=`.metadata.creationTimestamp`
// +kubebuilder:resource:shortName=s3u

type S3UserClaim struct {
metav1.TypeMeta `json:",inline"`
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/s3.snappcloud.io_s3buckets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
kind: S3Bucket
listKind: S3BucketList
plural: s3buckets
shortNames:
- s3b
singular: s3bucket
scope: Namespaced
versions:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/s3.snappcloud.io_s3userclaims.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ spec:
kind: S3UserClaim
listKind: S3UserClaimList
plural: s3userclaims
shortNames:
- s3u
singular: s3userclaim
scope: Namespaced
versions:
Expand Down

0 comments on commit 6e34033

Please sign in to comment.