Skip to content

Commit 35ff9f3

Browse files
helderjsjosvazg
andauthored
CLOUDP-304797: Fix configuration to assess RH warnings (#2275)
* Fix configuration to assess RH warnings * Rebased and patched Signed-off-by: jose.vazquez <[email protected]> --------- Signed-off-by: jose.vazquez <[email protected]> Co-authored-by: jose.vazquez <[email protected]>
1 parent 8093227 commit 35ff9f3

26 files changed

+140
-35
lines changed

.github/actions/gen-install-scripts/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN cd /usr/local/bin &&\
1515
RUN CONTROLLER_GEN_TMP_DIR=$(mktemp -d) && \
1616
cd $CONTROLLER_GEN_TMP_DIR && \
1717
go mod init tmp && \
18-
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.1 && \
18+
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.17.2 && \
1919
rm -rf $CONTROLLER_GEN_TMP_DIR && \
2020
CONTROLLER_GEN=${GOBIN}/controller-gen
2121

PROJECT

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,12 @@ resources:
143143
kind: AtlasNetworkPeering
144144
path: github.com/mongodb/mongodb-atlas-kubernetes/v2/api/v1
145145
version: v1
146+
- api:
147+
crdVersion: v1
148+
namespaced: true
149+
domain: mongodb.com
150+
group: atlas
151+
kind: AtlasBackupCompliancePolicy
152+
path: github.com/mongodb/mongodb-atlas-kubernetes/v2/api/v1
153+
version: v1
146154
version: "3"

api/v1/atlasbackupcompliancepolicy_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ func init() {
3636
// +kubebuilder:subresource:status
3737
// +kubebuilder:resource:categories=atlas,shortName=abcp
3838
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].status`
39+
40+
// The AtlasBackupCompliancePolicy is a configuration that enforces specific backup and retention requirements
3941
type AtlasBackupCompliancePolicy struct {
4042
metav1.TypeMeta `json:",inline"`
4143
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -44,6 +46,7 @@ type AtlasBackupCompliancePolicy struct {
4446
Status status.BackupCompliancePolicyStatus `json:"status,omitempty"`
4547
}
4648

49+
// AtlasBackupCompliancePolicySpec is the specification of the desired configuration of backup compliance policy
4750
type AtlasBackupCompliancePolicySpec struct {
4851
// Email address of the user who authorized to update the Backup Compliance Policy settings.
4952
// +kubebuilder:validation:Required

config/crd/bases/atlas.mongodb.com_atlasbackupcompliancepolicies.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.17.2
77
name: atlasbackupcompliancepolicies.atlas.mongodb.com
88
spec:
99
group: atlas.mongodb.com
@@ -25,8 +25,8 @@ spec:
2525
name: v1
2626
schema:
2727
openAPIV3Schema:
28-
description: AtlasBackupCompliancePolicy defines the desired state of a compliance
29-
policy in Atlas.
28+
description: The AtlasBackupCompliancePolicy is a configuration that enforces
29+
specific backup and retention requirements
3030
properties:
3131
apiVersion:
3232
description: |-
@@ -46,6 +46,8 @@ spec:
4646
metadata:
4747
type: object
4848
spec:
49+
description: AtlasBackupCompliancePolicySpec is the specification of the
50+
desired configuration of backup compliance policy
4951
properties:
5052
authorizedEmail:
5153
description: Email address of the user who authorized to update the

config/crd/bases/atlas.mongodb.com_atlasbackuppolicies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.17.2
77
name: atlasbackuppolicies.atlas.mongodb.com
88
spec:
99
group: atlas.mongodb.com

config/crd/bases/atlas.mongodb.com_atlasbackupschedules.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.17.2
77
name: atlasbackupschedules.atlas.mongodb.com
88
spec:
99
group: atlas.mongodb.com

config/crd/bases/atlas.mongodb.com_atlascustomroles.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.17.2
77
name: atlascustomroles.atlas.mongodb.com
88
spec:
99
group: atlas.mongodb.com

config/crd/bases/atlas.mongodb.com_atlasdatabaseusers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.17.2
77
name: atlasdatabaseusers.atlas.mongodb.com
88
spec:
99
group: atlas.mongodb.com

config/crd/bases/atlas.mongodb.com_atlasdatafederations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.17.2
77
name: atlasdatafederations.atlas.mongodb.com
88
spec:
99
group: atlas.mongodb.com

config/crd/bases/atlas.mongodb.com_atlasdeployments.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.1
6+
controller-gen.kubebuilder.io/version: v0.17.2
77
name: atlasdeployments.atlas.mongodb.com
88
spec:
99
group: atlas.mongodb.com

0 commit comments

Comments
 (0)