Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update api descriptions #134

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions apis/user/v1alpha1/accesskey_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ import (

// AccessKeyParameters are the configurable fields of a AccessKey.
type AccessKeyParameters struct {
// GroupID for the new access key.
// GroupID of the access key.
// +optional
// +immutable
GroupID string `json:"groupId,omitempty"`

// User for the new access key.
// UserId of the access key.
// +optional
// +immutable
UserID string `json:"userId,omitempty"`

// UserIDRef is a reference to a user to retrieve its userId.
// UserIDRef references a user to retrieve its userId.
// +optional
// +immutable
UserIDRef *xpv1.Reference `json:"userIdRef,omitempty"`

// UserIDSelector selects reference to a user to retrieve its userId.
// UserIDSelector selects a user to retrieve its userId.
// +optional
UserIDSelector *xpv1.Selector `json:"userIdSelector,omitempty"`
}
Expand All @@ -67,7 +67,7 @@ type AccessKeyStatus struct {

// +kubebuilder:object:root=true

// A AccessKey is an example API type.
// AccessKey represents an access key for a Cloudian user.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
Expand Down
2 changes: 1 addition & 1 deletion apis/user/v1alpha1/group_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type GroupStatus struct {

// +kubebuilder:object:root=true

// A Group is an example API type.
// Group represents a Cloudian group.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
Expand Down
8 changes: 4 additions & 4 deletions apis/user/v1alpha1/groupqualityofservicelimits_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ type QualityOfServiceLimits struct {

// GroupQualityOfServiceLimitsParameters are the configurable fields of a GroupQualityOfServiceLimits.
type GroupQualityOfServiceLimitsParameters struct {
// Group for the quality of service limits.
// GroupID of the quality of service limits.
// +optional
// +immutable
GroupID string `json:"groupId,omitempty"`

// GroupIDRef is a reference to a group to retrieve its groupId.
// GroupIDRef references a group to retrieve its groupId.
// +optional
// +immutable
GroupIDRef *xpv1.Reference `json:"groupIdRef,omitempty"`

// GroupIDSelector selects reference to a group to retrieve its groupId.
// GroupIDSelector selects a group to retrieve its groupId.
// +optional
GroupIDSelector *xpv1.Selector `json:"groupIdSelector,omitempty"`

Expand Down Expand Up @@ -114,7 +114,7 @@ type GroupQualityOfServiceLimitsStatus struct {

// +kubebuilder:object:root=true

// A GroupQualityOfServiceLimits is an example API type.
// GroupQualityOfServiceLimits represents the quality of service limits for a Cloudian group, within a region.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
Expand Down
2 changes: 1 addition & 1 deletion apis/user/v1alpha1/user_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type UserStatus struct {

// +kubebuilder:object:root=true

// A User is an example API type.
// User represents a Cloudian user.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
Expand Down
12 changes: 5 additions & 7 deletions package/crds/user.cloudian.crossplane.io_accesskeys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: A AccessKey is an example API type.
description: AccessKey represents an access key for a Cloudian user.
properties:
apiVersion:
description: |-
Expand Down Expand Up @@ -75,14 +75,13 @@ spec:
AccessKey.
properties:
groupId:
description: GroupID for the new access key.
description: GroupID of the access key.
type: string
userId:
description: User for the new access key.
description: UserId of the access key.
type: string
userIdRef:
description: UserIDRef is a reference to a user to retrieve its
userId.
description: UserIDRef references a user to retrieve its userId.
properties:
name:
description: Name of the referenced object.
Expand Down Expand Up @@ -116,8 +115,7 @@ spec:
- name
type: object
userIdSelector:
description: UserIDSelector selects reference to a user to retrieve
its userId.
description: UserIDSelector selects a user to retrieve its userId.
properties:
matchControllerRef:
description: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: A GroupQualityOfServiceLimits is an example API type.
description: GroupQualityOfServiceLimits represents the quality of service
limits for a Cloudian group, within a region.
properties:
apiVersion:
description: |-
Expand Down Expand Up @@ -76,11 +77,10 @@ spec:
fields of a GroupQualityOfServiceLimits.
properties:
groupId:
description: Group for the quality of service limits.
description: GroupID of the quality of service limits.
type: string
groupIdRef:
description: GroupIDRef is a reference to a group to retrieve
its groupId.
description: GroupIDRef references a group to retrieve its groupId.
properties:
name:
description: Name of the referenced object.
Expand Down Expand Up @@ -114,8 +114,7 @@ spec:
- name
type: object
groupIdSelector:
description: GroupIDSelector selects reference to a group to retrieve
its groupId.
description: GroupIDSelector selects a group to retrieve its groupId.
properties:
matchControllerRef:
description: |-
Expand Down
2 changes: 1 addition & 1 deletion package/crds/user.cloudian.crossplane.io_groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: A Group is an example API type.
description: Group represents a Cloudian group.
properties:
apiVersion:
description: |-
Expand Down
2 changes: 1 addition & 1 deletion package/crds/user.cloudian.crossplane.io_users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
name: v1alpha1
schema:
openAPIV3Schema:
description: A User is an example API type.
description: User represents a Cloudian user.
properties:
apiVersion:
description: |-
Expand Down
Loading