Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[patch] Do not validate storage class for mongo update #1050

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a74002a
[patch] do not validate storage class for update
racree Oct 16, 2023
1c8894a
[patch] do not validate storage class for update
racree Oct 16, 2023
f21fc4c
[patch] do not validate storage class for update
racree Oct 16, 2023
03bc87b
[patch] create upgrade action for MongoDB
racree Oct 17, 2023
070187f
[patch] create upgrade action for MongoDB
racree Oct 17, 2023
b27f028
[patch] create upgrade action for MongoDB
racree Oct 17, 2023
669329e
[patch] create upgrade action for MongoDB
racree Oct 17, 2023
46bffca
[patch] create upgrade action for MongoDB
racree Oct 17, 2023
ea7f51b
Merge branch 'master' into mongodb-update
racree Oct 17, 2023
c7a5b7a
[patch] create upgrade action for MongoDB
racree Oct 17, 2023
17cd4a4
Merge branch 'mongodb-update' of https://github.com/ibm-mas/ansible-d…
racree Oct 17, 2023
c09197d
Merge branch 'master' into mongodb-update
durera Oct 18, 2023
f841e27
Merge branch 'master' into mongodb-update
durera Nov 10, 2023
f76c3e6
Merge branch 'master' into mongodb-update
racree Nov 10, 2023
e562ff9
use current storage class for mongodb upgrade
racree Nov 10, 2023
aa0717f
use current storage class for mongodb upgrade
racree Nov 10, 2023
6cdf3f7
use current storage class for mongodb upgrade
racree Nov 10, 2023
7d705a8
use current storage class for mongodb upgrade
racree Nov 10, 2023
d78a744
Merge branch 'master' into mongodb-update
racree Nov 13, 2023
6b4a74d
Merge branch 'master' into mongodb-update
racree Nov 14, 2023
3186d3b
[patch]reuse current storageClassName for mongodb conrolled upgrade
racree Nov 14, 2023
c7a0f57
Merge branch 'master' into mongodb-update
racree Nov 15, 2023
57a16ea
do not update entire MongoDBCommunity CR on update
racree Nov 17, 2023
12aba24
remove trailing space
racree Nov 17, 2023
ac7f60c
Merge branch 'master' into mongodb-update
racree Nov 27, 2023
3afe907
patch version for update
racree Nov 27, 2023
5152b3c
Merge branch 'mongodb-update' of https://github.com/ibm-mas/ansible-d…
racree Nov 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ibm/mas_devops/roles/mongodb/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@

# 3. Run the install / uninstall for specified provider
# -----------------------------------------------------------------------------
- include_tasks: "tasks/providers/{{ mongodb_provider }}/{{ mongodb_action }}.yml"
- include_tasks: "{{ role_path }}/tasks/providers/{{ mongodb_provider }}/{{ mongodb_action }}.yml"
when:
- mongodb_action != "none"
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,25 @@
kubernetes.core.k8s:
apply: yes
definition: "{{ lookup('template', 'templates/community/{{ mongodb_ce_version }}/cr.yml.j2') }}"
when:
- not controlled_upgrade

- name: "community : install : Update MongoDb version"
kubernetes.core.k8s_json_patch:
api_version: mongodbcommunity.mongodb.com/v1
name: "mas-mongo-ce"
namespace: "{{ mongodb_namespace }}"
kind: MongoDBCommunity
patch:
- op: replace
path: /spec/statefulSet/spec/template/spec/containers[0]/image
value: "{{ target_mongodb_image }}"
- op: replace
path: /spec/version
value: "{{ target_mongodb_version }}"
when:
- controlled_upgrade
- target_mongodb_version != current_mongodb_version

- name: "community : install : Set expected MongoDb version to {{ current_mongodb_version }}"
set_fact:
Expand Down