Skip to content

Commit ba0a38c

Browse files
CLOUDP-318799 Drop “community” from search values in the helm chart (#441)
# Summary Also update to the public Quay search repo. ## Proof of Work <!-- Enter your proof that it works here.--> ## Checklist - [x] Have you linked a jira ticket and/or is the ticket in the title? - [x] Have you checked whether your jira ticket required DOCSP changes? - [x] Have you added changelog file? - use `skip-changelog` label if not needed - refer to [Changelog files and Release Notes](https://github.com/mongodb/mongodb-kubernetes/blob/master/CONTRIBUTING.md#changelog-files-and-release-notes) section in CONTRIBUTING.md for more details --------- Co-authored-by: Łukasz Sierant <lukasz.sierant@mongodb.com>
1 parent c62cab3 commit ba0a38c

File tree

13 files changed

+57
-54
lines changed

13 files changed

+57
-54
lines changed

config/manager/manager.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,11 @@ spec:
299299
value: "quay.io/mongodb/mongodb-enterprise-server:8.0.0-ubi8"
300300
- name: RELATED_IMAGE_MONGODB_IMAGE_8_0_0_ubi9
301301
value: "quay.io/mongodb/mongodb-enterprise-server:8.0.0-ubi9"
302-
- name: MDB_SEARCH_COMMUNITY_REPO_URL
302+
- name: RELATED_IMAGE_MDB_SEARCH_IMAGE_0_53_0
303+
value: "quay.io/mongodb/mongodb-search:0.53.0"
304+
- name: MDB_SEARCH_REPO_URL
303305
value: "quay.io/mongodb"
304-
- name: MDB_SEARCH_COMMUNITY_NAME
305-
value: "mongodb-search-community"
306-
- name: MDB_SEARCH_COMMUNITY_VERSION
307-
value: "1.47.0"
306+
- name: MDB_SEARCH_NAME
307+
value: "mongodb-search"
308+
- name: MDB_SEARCH_VERSION
309+
value: "0.53.0"

helm_chart/templates/operator.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,18 @@ spec:
262262
- name: RELATED_IMAGE_{{ $mongodbImageEnv }}_{{ $version | replace "." "_" | replace "-" "_" }}
263263
value: "{{ $.Values.mongodb.repo }}/{{ $.Values.mongodb.name }}:{{ $version }}"
264264
{{- end }}
265+
{{- if .Values.search }}
266+
- name: RELATED_IMAGE_MDB_SEARCH_IMAGE_{{ .Values.search.version | replace "." "_" | replace "-" "_" }}
267+
value: "{{ .Values.search.repo }}/{{ .Values.search.name }}:{{ $.Values.search.version }}"
268+
{{- end }}
265269
{{- end }}
266270
{{- if .Values.search }}
267-
- name: MDB_SEARCH_COMMUNITY_REPO_URL
268-
value: "{{ .Values.search.community.repo }}"
269-
- name: MDB_SEARCH_COMMUNITY_NAME
270-
value: "{{ .Values.search.community.name }}"
271-
- name: MDB_SEARCH_COMMUNITY_VERSION
272-
value: "{{ .Values.search.community.version }}"
271+
- name: MDB_SEARCH_REPO_URL
272+
value: "{{ .Values.search.repo }}"
273+
- name: MDB_SEARCH_NAME
274+
value: "{{ .Values.search.name }}"
275+
- name: MDB_SEARCH_VERSION
276+
value: "{{ .Values.search.version }}"
273277
{{- end }}
274278
{{- if .Values.customEnvVars }}
275279
{{- range split "&" .Values.customEnvVars }}

helm_chart/values.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,8 @@ community:
218218

219219
# MongoDBSearch settings
220220
search:
221-
community:
222-
# Full Search container image url used for the MongoDB Community Search container will be constructed as {search.community.repo}/{search.community.name}:{search.community.version}
223-
repo: quay.io/mongodb
224-
name: mongodb-search-community
225-
# default MongoDB Search version used; can be overridden by setting MongoDBSearch.spec.version field.
226-
version: 1.47.0
221+
# Full Search container image url used for the MongoDB Search container will be constructed as {search.repo}/{search.name}:{search.version}
222+
repo: quay.io/mongodb
223+
name: mongodb-search
224+
# default MongoDB Search version used; can be overridden by setting MongoDBSearch.spec.version field.
225+
version: 0.53.0

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,9 @@ func setupMongoDBMultiClusterCRD(ctx context.Context, mgr manager.Manager, image
391391

392392
func setupMongoDBSearchCRD(ctx context.Context, mgr manager.Manager) error {
393393
return operator.AddMongoDBSearchController(ctx, mgr, searchcontroller.OperatorSearchConfig{
394-
SearchRepo: env.ReadOrPanic("MDB_SEARCH_COMMUNITY_REPO_URL"),
395-
SearchName: env.ReadOrPanic("MDB_SEARCH_COMMUNITY_NAME"),
396-
SearchVersion: env.ReadOrPanic("MDB_SEARCH_COMMUNITY_VERSION"),
394+
SearchRepo: env.ReadOrPanic("MDB_SEARCH_REPO_URL"),
395+
SearchName: env.ReadOrPanic("MDB_SEARCH_NAME"),
396+
SearchVersion: env.ReadOrPanic("MDB_SEARCH_VERSION"),
397397
})
398398
}
399399

public/mongodb-kubernetes-multi-cluster.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,12 @@ spec:
431431
- name: MDB_COMMUNITY_IMAGE_TYPE
432432
value: "ubi8"
433433
# Community Env Vars End
434-
- name: MDB_SEARCH_COMMUNITY_REPO_URL
434+
- name: MDB_SEARCH_REPO_URL
435435
value: "quay.io/mongodb"
436-
- name: MDB_SEARCH_COMMUNITY_NAME
437-
value: "mongodb-search-community"
438-
- name: MDB_SEARCH_COMMUNITY_VERSION
439-
value: "1.47.0"
436+
- name: MDB_SEARCH_NAME
437+
value: "mongodb-search"
438+
- name: MDB_SEARCH_VERSION
439+
value: "0.53.0"
440440
volumes:
441441
- name: kube-config-volume
442442
secret:

public/mongodb-kubernetes-openshift.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,11 @@ spec:
603603
value: "quay.io/mongodb/mongodb-enterprise-server:8.0.0-ubi8"
604604
- name: RELATED_IMAGE_MONGODB_IMAGE_8_0_0_ubi9
605605
value: "quay.io/mongodb/mongodb-enterprise-server:8.0.0-ubi9"
606-
- name: MDB_SEARCH_COMMUNITY_REPO_URL
606+
- name: RELATED_IMAGE_MDB_SEARCH_IMAGE_0_53_0
607+
value: "quay.io/mongodb/mongodb-search:0.53.0"
608+
- name: MDB_SEARCH_REPO_URL
607609
value: "quay.io/mongodb"
608-
- name: MDB_SEARCH_COMMUNITY_NAME
609-
value: "mongodb-search-community"
610-
- name: MDB_SEARCH_COMMUNITY_VERSION
611-
value: "1.47.0"
610+
- name: MDB_SEARCH_NAME
611+
value: "mongodb-search"
612+
- name: MDB_SEARCH_VERSION
613+
value: "0.53.0"

public/mongodb-kubernetes.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,9 @@ spec:
427427
- name: MDB_COMMUNITY_IMAGE_TYPE
428428
value: "ubi8"
429429
# Community Env Vars End
430-
- name: MDB_SEARCH_COMMUNITY_REPO_URL
430+
- name: MDB_SEARCH_REPO_URL
431431
value: "quay.io/mongodb"
432-
- name: MDB_SEARCH_COMMUNITY_NAME
433-
value: "mongodb-search-community"
434-
- name: MDB_SEARCH_COMMUNITY_VERSION
435-
value: "1.47.0"
432+
- name: MDB_SEARCH_NAME
433+
value: "mongodb-search"
434+
- name: MDB_SEARCH_VERSION
435+
value: "0.53.0"

release.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
"minimumSupportedVersion": "4.6"
1313
},
1414
"search": {
15-
"community": {
16-
"version": "1.47.0"
17-
}
15+
"version": "0.53.0"
1816
},
1917
"supportedImages": {
2018
"readinessprobe": {

scripts/dev/contexts/root-context

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ export MDB_COMMUNITY_REPO_URL=quay.io/mongodb
113113
export MDB_COMMUNITY_AGENT_IMAGE=${AGENT_IMAGE}
114114
export MDB_COMMUNITY_IMAGE_TYPE=ubi8
115115

116-
MDB_SEARCH_COMMUNITY_VERSION="$(jq -r '.search.community.version' "${PROJECT_DIR}/release.json")"
117-
export MDB_SEARCH_COMMUNITY_VERSION
116+
MDB_SEARCH_VERSION="$(jq -r '.search.version' "${PROJECT_DIR}/release.json")"
117+
export MDB_SEARCH_VERSION
118118

119-
export MDB_SEARCH_COMMUNITY_NAME="mongodb-search-community"
120-
export MDB_SEARCH_COMMUNITY_REPO_URL="quay.io/mongodb"
119+
export MDB_SEARCH_NAME="mongodb-search"
120+
export MDB_SEARCH_REPO_URL="quay.io/mongodb"
121121

122122

123123
if [[ ${MDB_BASH_DEBUG:-0} == 1 ]]; then

scripts/dev/contexts/variables/mongodb_search_dev

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
set -Eeou pipefail
44

55
# Temporary development images built from mongot master
6-
export MDB_SEARCH_COMMUNITY_VERSION="1.53.0-78-g227f2593f" # Sep 2nd mongot master
7-
export MDB_SEARCH_COMMUNITY_NAME="mongot/community"
8-
export MDB_SEARCH_COMMUNITY_REPO_URL="268558157000.dkr.ecr.eu-west-1.amazonaws.com"
6+
#export MDB_SEARCH_VERSION="1.53.0-78-g227f2593f" # Sep 2nd mongot master
7+
#export MDB_SEARCH_NAME="mongot/community"
8+
#export MDB_SEARCH_REPO_URL="268558157000.dkr.ecr.eu-west-1.amazonaws.com"

0 commit comments

Comments
 (0)