Skip to content

Commit f9b8010

Browse files
authored
CLOUDP-355972: More CRD Comment Updates (#3019)
* update comments per doc team review * make api-docs
1 parent 7f1d2d6 commit f9b8010

20 files changed

+146
-144
lines changed

api/condition.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const (
134134
type Condition struct {
135135
// Type of Atlas Custom Resource condition.
136136
Type ConditionType `json:"type"`
137-
// Status of the condition, one of True, False, Unknown.
137+
// Status of the condition; one of True, False, Unknown.
138138
Status corev1.ConditionStatus `json:"status"`
139139
// Last time the condition transitioned from one status to another.
140140
// Represented in ISO 8601 format.
@@ -143,7 +143,7 @@ type Condition struct {
143143
// The reason for the condition's last transition.
144144
// +optional
145145
Reason string `json:"reason,omitempty"`
146-
// A human readable message indicating details about the transition.
146+
// A message providing details about the transition.
147147
// +optional
148148
Message string `json:"message,omitempty"`
149149
}

api/status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ type Common struct {
4444
// Conditions is the list of statuses showing the current state of the Atlas Custom Resource
4545
Conditions []Condition `json:"conditions"`
4646

47-
// ObservedGeneration indicates the generation of the resource specification that the Atlas Operator is aware of.
48-
// The Atlas Operator updates this field to the 'metadata.generation' as soon as it starts reconciliation of the resource.
47+
// ObservedGeneration indicates the generation of the resource specification of which the Atlas Operator is aware.
48+
// The Atlas Operator updates this field to the value of 'metadata.generation' as soon as it starts reconciliation of the resource.
4949
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
5050
}
5151

api/v1/atlasbackupcompliancepolicy_types.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func init() {
3030
SchemeBuilder.Register(&AtlasBackupCompliancePolicy{}, &AtlasBackupCompliancePolicyList{})
3131
}
3232

33-
// AtlasBackupCompliancePolicy defines the desired state of a compliance policy in Atlas.
33+
// AtlasBackupCompliancePolicy defines the target state of a compliance policy in Atlas.
3434
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
3535
// +kubebuilder:object:root=true
3636
// +kubebuilder:subresource:status
@@ -46,29 +46,30 @@ type AtlasBackupCompliancePolicy struct {
4646
Status status.BackupCompliancePolicyStatus `json:"status,omitempty"`
4747
}
4848

49-
// AtlasBackupCompliancePolicySpec is the specification of the desired configuration of backup compliance policy
49+
// AtlasBackupCompliancePolicySpec is the specification of the desired backup compliance policy configuration.
5050
type AtlasBackupCompliancePolicySpec struct {
51-
// Email address of the user who authorized to update the Backup Compliance Policy settings.
51+
// Email address of the user authorized to update Backup Compliance Policy settings.
5252
// +kubebuilder:validation:Required
5353
AuthorizedEmail string `json:"authorizedEmail"`
54-
// First name of the user who authorized to updated the Backup Compliance Policy settings.
54+
// First name of the user authorized to update the Backup Compliance Policy settings.
5555
// +kubebuilder:validation:Required
5656
AuthorizedUserFirstName string `json:"authorizedUserFirstName"`
57-
// Last name of the user who authorized to updated the Backup Compliance Policy settings.
57+
// Last name of the user authorized to update the Backup Compliance Policy settings.
5858
// +kubebuilder:validation:Required
5959
AuthorizedUserLastName string `json:"authorizedUserLastName"`
6060
// Flag that indicates whether to prevent cluster users from deleting backups copied to other regions, even if those additional snapshot regions are removed.
6161
// +kubebuilder:validation:default:=false
6262
CopyProtectionEnabled bool `json:"copyProtectionEnabled,omitempty"`
63-
// Flag that indicates whether Encryption at Rest using Customer Key Management is required for all clusters with a Backup Compliance Policy.
63+
// Flag that indicates whether to require Encryption at Rest using Customer Key Management for all clusters with a Backup Compliance Policy.
6464
// +kubebuilder:validation:default:=false
6565
EncryptionAtRestEnabled bool `json:"encryptionAtRestEnabled,omitempty"`
66-
// Flag that indicates whether to overwrite non-complying backup policies with the new data protection settings or not.
66+
// Flag that indicates whether to overwrite non-complying backup policies with the new data protection settings.
6767
OverwriteBackupPolicies bool `json:"overwriteBackupPolicies,omitempty"`
6868
// Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy.
6969
// +kubebuilder:validation:default:=false
7070
PITEnabled bool `json:"pointInTimeEnabled,omitempty"`
71-
// Number of previous days that you can restore back to with Continuous Cloud Backup with a Backup Compliance Policy. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
71+
// Number of previous days from which you can restore with Continuous Cloud Backup with a Backup Compliance Policy.
72+
// This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy.
7273
RestoreWindowDays int `json:"restoreWindowDays,omitempty"`
7374
// List that contains the specifications for one scheduled policy.
7475
ScheduledPolicyItems []AtlasBackupPolicyItem `json:"scheduledPolicyItems,omitempty"`

api/v1/atlasbackuppolicy_types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ import (
2121
"github.com/mongodb/mongodb-atlas-kubernetes/v2/api/v1/status"
2222
)
2323

24-
// AtlasBackupPolicySpec defines the desired state of AtlasBackupPolicy
24+
// AtlasBackupPolicySpec defines the target state of AtlasBackupPolicy.
2525
type AtlasBackupPolicySpec struct {
2626
// A list of BackupPolicy items.
2727
Items []AtlasBackupPolicyItem `json:"items"`
2828
}
2929

3030
type AtlasBackupPolicyItem struct {
31-
// Frequency associated with the backup policy item. You cannot specify multiple hourly and daily backup policy items.
31+
// Frequency associated with the backup policy item. You can specify only one each of hourly or daily backup policy items.
3232
// +kubebuilder:validation:Enum:=hourly;daily;weekly;monthly;yearly
3333
FrequencyType string `json:"frequencyType"`
3434

35-
// Desired frequency of the new backup policy item specified by FrequencyType. A value of 1 specifies the first instance of the corresponding FrequencyType.
36-
// The only accepted value you can set for frequency interval with NVMe clusters is 12.
35+
// Frequency of the new backup policy item specified by FrequencyType. A value of 1 specifies the first instance of the corresponding FrequencyType.
36+
// You can set FrequencyInterval only to 12 for NVMe clusters.
3737
// +kubebuilder:validation:Enum:=1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;40
3838
FrequencyInterval int `json:"frequencyInterval"`
3939

api/v1/atlasbackupschedule_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/mongodb/mongodb-atlas-kubernetes/v2/internal/pointer"
2727
)
2828

29-
// AtlasBackupScheduleSpec defines the desired state of AtlasBackupSchedule.
29+
// AtlasBackupScheduleSpec defines the target state of AtlasBackupSchedule.
3030
type AtlasBackupScheduleSpec struct {
3131
// Specify true to enable automatic export of cloud backup snapshots to the AWS bucket. You must also define the export policy using export. If omitted, defaults to false.
3232
// +optional

api/v1/atlascustomrole_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ type AtlasCustomRoleList struct {
6666
Items []AtlasCustomRole `json:"items"`
6767
}
6868

69-
// AtlasCustomRoleSpec defines the desired state of CustomRole in Atlas.
69+
// AtlasCustomRoleSpec defines the target state of CustomRole in Atlas.
7070
// +kubebuilder:validation:XValidation:rule="(has(self.externalProjectRef) && !has(self.projectRef)) || (!has(self.externalProjectRef) && has(self.projectRef))",message="must define only one project reference through externalProjectRef or projectRef"
7171
// +kubebuilder:validation:XValidation:rule="(has(self.externalProjectRef) && has(self.connectionSecret)) || !has(self.externalProjectRef)",message="must define a local connection secret when referencing an external project"
7272
type AtlasCustomRoleSpec struct {

api/v1/atlasdatabaseuser_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const (
4848
DataLakeScopeType ScopeType = "DATA_LAKE"
4949
)
5050

51-
// AtlasDatabaseUserSpec defines the desired state of Database User in Atlas
51+
// AtlasDatabaseUserSpec defines the target state of Database User in Atlas
5252
// +kubebuilder:validation:XValidation:rule="(has(self.externalProjectRef) && !has(self.projectRef)) || (!has(self.externalProjectRef) && has(self.projectRef))",message="must define only one project reference through externalProjectRef or projectRef"
5353
// +kubebuilder:validation:XValidation:rule="(has(self.externalProjectRef) && has(self.connectionSecret)) || !has(self.externalProjectRef)",message="must define a local connection secret when referencing an external project"
5454
type AtlasDatabaseUserSpec struct {

api/v1/atlasdatafederation_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func init() {
2828
SchemeBuilder.Register(&AtlasDataFederation{}, &AtlasDataFederationList{})
2929
}
3030

31-
// DataFederationSpec defines the desired state of AtlasDataFederation.
31+
// DataFederationSpec defines the target state of AtlasDataFederation.
3232
type DataFederationSpec struct {
3333
// Project is a reference to AtlasProject resource the deployment belongs to.
3434
Project common.ResourceRefNamespaced `json:"projectRef"`

api/v1/atlasdeployment_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const (
3939
TypeGeoSharded DeploymentType = "GEOSHARDED"
4040
)
4141

42-
// AtlasDeploymentSpec defines the desired state of AtlasDeployment.
42+
// AtlasDeploymentSpec defines the target state of AtlasDeployment.
4343
// Only one of DeploymentSpec, AdvancedDeploymentSpec and ServerlessSpec should be defined.
4444
// +kubebuilder:validation:XValidation:rule="(has(self.externalProjectRef) && !has(self.projectRef)) || (!has(self.externalProjectRef) && has(self.projectRef))",message="must define only one project reference through externalProjectRef or projectRef"
4545
// +kubebuilder:validation:XValidation:rule="(has(self.externalProjectRef) && has(self.connectionSecret)) || !has(self.externalProjectRef)",message="must define a local connection secret when referencing an external project"
@@ -185,7 +185,7 @@ func (s *AdvancedDeploymentSpec) SearchNodesToAtlas() []admin.ApiSearchDeploymen
185185
return result
186186
}
187187

188-
// ServerlessSpec defines the desired state of Atlas Serverless Instance.
188+
// ServerlessSpec defines the target state of Atlas Serverless Instance.
189189
// DEPRECATED: Serverless instances are deprecated. See https://dochub.mongodb.org/core/atlas-flex-migration for details.
190190
type ServerlessSpec struct {
191191
// Name of the serverless deployment as it appears in Atlas.

api/v1/atlasfederatedauth_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func init() {
3232
SchemeBuilder.Register(&AtlasFederatedAuth{}, &AtlasFederatedAuthList{})
3333
}
3434

35-
// AtlasFederatedAuthSpec defines the desired state of AtlasFederatedAuth.
35+
// AtlasFederatedAuthSpec defines the target state of AtlasFederatedAuth.
3636
type AtlasFederatedAuthSpec struct {
3737
// +kubebuilder:default:=false
3838
Enabled bool `json:"enabled,omitempty"`

0 commit comments

Comments
 (0)