Skip to content

Commit 5ff5b72

Browse files
committed
Raname CRD files as per renamed kind
Signed-off-by: jose.vazquez <[email protected]>
1 parent e20e7ed commit 5ff5b72

10 files changed

+14
-316
lines changed

PROJECT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ resources:
148148
namespaced: true
149149
domain: mongodb.com
150150
group: atlas
151-
kind: AtlasIntegration
151+
kind: AtlasThirdPartyIntegration
152152
path: github.com/mongodb/mongodb-atlas-kubernetes/v2/api/v1
153153
version: v1
154154
version: "3"

api/v1/atlasintegration_types_test.go renamed to api/v1/atlasthirdpartyintegration_types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func TestIntegrationCELChecks(t *testing.T) {
167167
unstructuredObject, err := runtime.DefaultUnstructuredConverter.ToUnstructured(&tc.obj)
168168
require.NoError(t, err)
169169

170-
crdPath := "../../config/crd/bases/atlas.mongodb.com_atlasintegrations.yaml"
170+
crdPath := "../../config/crd/bases/atlas.mongodb.com_atlasthirdpartyintegrations.yaml"
171171
validator, err := cel.VersionValidatorFromFile(t, crdPath, "v1")
172172
assert.NoError(t, err)
173173
errs := validator(unstructuredObject, nil)

api/v1/project_reference_cel_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var dualRefCRDs = []struct {
6969
Type: "DATADOG",
7070
},
7171
},
72-
filename: "atlas.mongodb.com_atlasintegrations.yaml",
72+
filename: "atlas.mongodb.com_atlasthirdpartyintegrations.yaml",
7373
},
7474
}
7575

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

Lines changed: 0 additions & 304 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# permissions for end users to edit atlasintegrations.
1+
# permissions for end users to edit atlasthirdpartyintegrations.
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
55
labels:
66
app.kubernetes.io/name: mongodb-atlas-kubernetes
77
app.kubernetes.io/managed-by: kustomize
8-
name: atlasintegration-editor-role
8+
name: atlasthirdpartyintegration-editor-role
99
rules:
1010
- apiGroups:
1111
- atlas.mongodb.com
1212
resources:
13-
- atlasintegrations
13+
- atlasthirdpartyintegrations
1414
verbs:
1515
- create
1616
- delete
@@ -22,6 +22,6 @@ rules:
2222
- apiGroups:
2323
- atlas.mongodb.com
2424
resources:
25-
- atlasintegrations/status
25+
- atlasthirdpartyintegrations/status
2626
verbs:
2727
- get
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# permissions for end users to view atlasintegrations.
1+
# permissions for end users to view atlasthirdpartyintegrations.
22
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
55
labels:
66
app.kubernetes.io/name: mongodb-atlas-kubernetes
77
app.kubernetes.io/managed-by: kustomize
8-
name: atlasintegration-viewer-role
8+
name: atlasthirdpartyintegration-viewer-role
99
rules:
1010
- apiGroups:
1111
- atlas.mongodb.com
1212
resources:
13-
- atlasintegrations
13+
- atlasthirdpartyintegrations
1414
verbs:
1515
- get
1616
- list
1717
- watch
1818
- apiGroups:
1919
- atlas.mongodb.com
2020
resources:
21-
- atlasintegrations/status
21+
- atlasthirdpartyintegrations/status
2222
verbs:
2323
- get

config/rbac/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ resources:
2222
# default, aiding admins in cluster management. Those roles are
2323
# not used by the Project itself. You can comment the following lines
2424
# if you do not want those helpers be installed with your Project.
25+
- atlasthirdpartyintegration_editor_role.yaml
26+
- atlasthirdpartyintegration_viewer_role.yaml
2527
- atlasintegration_editor_role.yaml
2628
- atlasintegration_viewer_role.yaml
2729
- atlasnetworkcontainer_editor_role.yaml

0 commit comments

Comments
 (0)