Skip to content

Commit ea3eeba

Browse files
authored
Merge branch 'master' into search/public-preview
2 parents 6da6497 + e370e1f commit ea3eeba

18 files changed

+2491
-23
lines changed

.evergreen-periodic-builds.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ buildvariants:
162162
display_name: periodic_build
163163
tags: [ "periodic_build" ]
164164
run_on:
165-
- ubuntu2204-large
165+
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
166166
tasks:
167167
- name: periodic_build_task_group
168168

.evergreen.yml

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,46 @@ tasks:
610610
variant: prepare_openshift_bundles
611611
task: prepare_and_upload_openshift_bundles
612612

613+
- name: backup_csv_images_dry_run
614+
commands:
615+
- func: clone
616+
- func: quay_login
617+
- command: subprocess.exec
618+
params:
619+
working_dir: src/github.com/mongodb/mongodb-kubernetes
620+
binary: python3
621+
args:
622+
- scripts/dev/release/backup_csv_images.py
623+
- scripts/dev/release/1.2.0.clusterserviceversion.yaml
624+
- --dry-run
625+
- --verbose
626+
- name: backup_csv_images_limit_3
627+
commands:
628+
- func: clone
629+
- func: quay_login
630+
- command: subprocess.exec
631+
params:
632+
working_dir: src/github.com/mongodb/mongodb-kubernetes
633+
binary: python3
634+
args:
635+
- scripts/dev/release/backup_csv_images.py
636+
- scripts/dev/release/1.2.0.clusterserviceversion.yaml
637+
- --limit
638+
- "3"
639+
- --verbose
640+
- name: backup_csv_images_all
641+
commands:
642+
- func: clone
643+
- func: quay_login
644+
- command: subprocess.exec
645+
params:
646+
working_dir: src/github.com/mongodb/mongodb-kubernetes
647+
binary: python3
648+
args:
649+
- scripts/dev/release/backup_csv_images.py
650+
- scripts/dev/release/1.2.0.clusterserviceversion.yaml
651+
- --verbose
652+
613653
task_groups:
614654
- name: unit_task_group
615655
max_hosts: -1
@@ -1206,7 +1246,6 @@ task_groups:
12061246
<<: *teardown_group
12071247

12081248
buildvariants:
1209-
12101249
## Unit tests + lint build variant
12111250

12121251
- name: unit_tests
@@ -1736,7 +1775,7 @@ buildvariants:
17361775
allowed_requesters: [ "patch", "github_tag" ]
17371776
max_hosts: -1
17381777
run_on:
1739-
- ubuntu2204-large
1778+
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
17401779
depends_on:
17411780
- name: build_operator_ubi
17421781
variant: init_test_run
@@ -1795,7 +1834,7 @@ buildvariants:
17951834
display_name: (Static Containers) Release Agent matrix
17961835
tags: [ "release_agent" ]
17971836
run_on:
1798-
- ubuntu2204-large
1837+
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
17991838
depends_on:
18001839
- variant: init_release_agents_on_ecr
18011840
name: '*'
@@ -1881,11 +1920,21 @@ buildvariants:
18811920

18821921
### Build variants for manual patch only
18831922

1923+
- name: backup_csv_images
1924+
display_name: "Backup CSV Images"
1925+
allowed_requesters: [ "patch" ]
1926+
run_on:
1927+
- ubuntu2204-small
1928+
tasks:
1929+
- name: backup_csv_images_dry_run
1930+
- name: backup_csv_images_limit_3
1931+
- name: backup_csv_images_all
1932+
18841933
- name: publish_om60_images
18851934
display_name: publish_om60_images
18861935
allowed_requesters: [ "patch", "github_pr" ]
18871936
run_on:
1888-
- ubuntu2204-large
1937+
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
18891938
depends_on:
18901939
- variant: e2e_om60_kind_ubi
18911940
name: '*'
@@ -1899,7 +1948,7 @@ buildvariants:
18991948
display_name: publish_om70_images
19001949
allowed_requesters: [ "patch", "github_pr" ]
19011950
run_on:
1902-
- ubuntu2204-large
1951+
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
19031952
depends_on:
19041953
- variant: e2e_om70_kind_ubi
19051954
name: '*'
@@ -1913,7 +1962,7 @@ buildvariants:
19131962
display_name: publish_om80_images
19141963
allowed_requesters: [ "patch", "github_pr" ]
19151964
run_on:
1916-
- ubuntu2204-large
1965+
- release-ubuntu2204-large # This is required for CISA attestation https://jira.mongodb.org/browse/DEVPROD-17780
19171966
depends_on:
19181967
- variant: e2e_om80_kind_ubi
19191968
name: '*'

config/rbac/operator-roles.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ rules:
1313
- clustermongodbroles
1414
---
1515
# Source: mongodb-kubernetes/templates/operator-roles.yaml
16-
---
1716
# Additional ClusterRole for clusterVersionDetection
1817
kind: ClusterRole
1918
apiVersion: rbac.authorization.k8s.io/v1

helm_chart/templates/operator-roles.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ subjects:
142142
namespace: {{ include "mongodb-kubernetes-operator.namespace" $ }}
143143
{{- end }}
144144

145-
---
146145

147146
{{- if .Values.operator.enableClusterMongoDBRoles }}
147+
---
148148
kind: ClusterRole
149149
apiVersion: rbac.authorization.k8s.io/v1
150150
metadata:
@@ -173,11 +173,11 @@ subjects:
173173
{{- end }}
174174

175175
{{- end }}
176-
---
177176

178177
{{/* This cluster role and binding is necessary to allow the operator to automatically register ValidatingWebhookConfiguration. */}}
179178
{{- if and .Values.operator.webhook.registerConfiguration .Values.operator.webhook.installClusterRole }}
180179
{{- if not (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "mongodb-kubernetes-operator-mongodb-webhook") }}
180+
---
181181
kind: ClusterRole
182182
apiVersion: rbac.authorization.k8s.io/v1
183183
metadata:
@@ -255,7 +255,6 @@ rules:
255255
- nodes
256256
verbs:
257257
- list
258-
{{- end}}
259258
---
260259
# ClusterRoleBinding for clusterVersionDetection
261260
kind: ClusterRoleBinding
@@ -270,4 +269,5 @@ subjects:
270269
- kind: ServiceAccount
271270
name: {{ .Values.operator.name }}
272271
namespace: {{ include "mongodb-kubernetes-operator.namespace" . }}
273-
{{- end }}
272+
{{- end}}{{/* if ne $telemetry.installClusterRole false */}}
273+
{{- end }}{{/* if ne $telemetry.enabled false */}}

helm_chart/templates/operator-sa.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,4 @@ metadata:
99
imagePullSecrets:
1010
- name: {{ .Values.registry.imagePullSecrets }}
1111
{{- end }}
12-
13-
{{- $watchNamespace := include "mongodb-kubernetes-operator.namespace" . | list }}
14-
{{- if .Values.operator.watchNamespace }}
15-
{{- $watchNamespace = regexSplit "," .Values.operator.watchNamespace -1 }}
16-
{{- $watchNamespace = concat $watchNamespace (include "mongodb-kubernetes-operator.namespace" . | list) | uniq }}
17-
{{- end }}
18-
19-
{{- $roleScope := "Role" -}}
20-
{{- if or (gt (len $watchNamespace) 1) (eq (first $watchNamespace) "*") }}
21-
{{- $roleScope = "ClusterRole" }}
22-
{{- end }}
2312
{{- end }} {{/* if .Values.operator.createOperatorServiceAccount */}}

scripts/dev/contexts/e2e_multi_cluster_2_clusters

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ export test_pod_cluster=kind-e2e-cluster-1
1515
export TEST_POD_CLUSTER=kind-e2e-cluster-1
1616
export ops_manager_version="cloud_qa"
1717

18+
# MCK is capable of deploying a webhook (optional).
19+
# To do so it needs know which pods to select for routing traffic
20+
# in the Service and operator name currently serves as a selector.
21+
# This value must be different for multi cluster setup,
22+
# but we can unify once we are done with unified operator
23+
# installation for both multicluster and single cluster setups.
24+
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"

scripts/dev/contexts/e2e_multi_cluster_kind

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ export CENTRAL_CLUSTER=kind-e2e-operator
1515
export TEST_POD_CLUSTER=kind-e2e-cluster-1
1616
export test_pod_cluster=kind-e2e-cluster-1
1717
export ops_manager_version="cloud_qa"
18+
19+
# MCK is capable of deploying a webhook (optional).
20+
# To do so it needs know which pods to select for routing traffic
21+
# in the Service and operator name currently serves as a selector.
22+
# This value must be different for multi cluster setup,
23+
# but we can unify once we are done with unified operator
24+
# installation for both multicluster and single cluster setups.
25+
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"

scripts/dev/contexts/e2e_multi_cluster_om_appdb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ export CENTRAL_CLUSTER=kind-e2e-cluster-1
2020
export TEST_POD_CLUSTER=kind-e2e-cluster-1
2121
export test_pod_cluster=kind-e2e-cluster-1
2222
export ops_manager_version="${CUSTOM_OM_VERSION}"
23+
24+
# MCK is capable of deploying a webhook (optional).
25+
# To do so it needs know which pods to select for routing traffic
26+
# in the Service and operator name currently serves as a selector.
27+
# This value must be different for multi cluster setup,
28+
# but we can unify once we are done with unified operator
29+
# installation for both multicluster and single cluster setups.
30+
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"

scripts/dev/contexts/e2e_multi_cluster_om_operator_not_in_mesh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,11 @@ export CENTRAL_CLUSTER=kind-e2e-operator
1515
export test_pod_cluster=kind-e2e-cluster-1
1616
export TEST_POD_CLUSTER=kind-e2e-cluster-1
1717
export ops_manager_version="${CUSTOM_OM_VERSION}"
18+
19+
# MCK is capable of deploying a webhook (optional).
20+
# To do so it needs know which pods to select for routing traffic
21+
# in the Service and operator name currently serves as a selector.
22+
# This value must be different for multi cluster setup,
23+
# but we can unify once we are done with unified operator
24+
# installation for both multicluster and single cluster setups.
25+
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"

scripts/dev/contexts/e2e_static_multi_cluster_2_clusters

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@ export ops_manager_version="cloud_qa"
1616

1717
export MDB_DEFAULT_ARCHITECTURE=static
1818
export CUSTOM_MDB_VERSION=6.0.5
19+
20+
# MCK is capable of deploying a webhook (optional).
21+
# To do so it needs know which pods to select for routing traffic
22+
# in the Service and operator name currently serves as a selector.
23+
# This value must be different for multi cluster setup,
24+
# but we can unify once we are done with unified operator
25+
# installation for both multicluster and single cluster setups.
26+
export OPERATOR_NAME="mongodb-kubernetes-operator-multi-cluster"

0 commit comments

Comments
 (0)