Skip to content

Commit 9e35d2c

Browse files
authored
Release Operator v0.6.0 (#441)
1 parent 1bf5f80 commit 9e35d2c

File tree

5 files changed

+39
-6
lines changed

5 files changed

+39
-6
lines changed

config/manager/manager.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
serviceAccountName: mongodb-kubernetes-operator
1717
containers:
1818
- name: mongodb-kubernetes-operator
19-
image: quay.io/mongodb/mongodb-kubernetes-operator:0.5.2
19+
image: quay.io/mongodb/mongodb-kubernetes-operator:0.6.0
2020
command:
2121
- /usr/local/bin/entrypoint
2222
imagePullPolicy: Always
@@ -36,7 +36,7 @@ spec:
3636
- name: VERSION_UPGRADE_HOOK_IMAGE
3737
value: quay.io/mongodb/mongodb-kubernetes-operator-version-upgrade-post-start-hook:1.0.2
3838
- name: READINESS_PROBE_IMAGE
39-
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.1
39+
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.3
4040
- name: MONGODB_IMAGE
4141
value: "library/mongo"
4242
- name: MONGODB_REPO_URL

deploy/openshift/operator_openshift.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
serviceAccountName: mongodb-kubernetes-operator
1616
containers:
1717
- name: mongodb-kubernetes-operator
18-
image: quay.io/mongodb/mongodb-kubernetes-operator:0.5.2
18+
image: quay.io/mongodb/mongodb-kubernetes-operator:0.6.0
1919
command:
2020
- mongodb-kubernetes-operator
2121
imagePullPolicy: Always
@@ -35,6 +35,10 @@ spec:
3535
- name: AGENT_IMAGE # The MongoDB Agent the operator will deploy to manage MongoDB deployments
3636
value: quay.io/mongodb/mongodb-agent:10.29.0.6830-1
3737
- name: READINESS_PROBE_IMAGE
38-
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.1
38+
value: quay.io/mongodb/mongodb-kubernetes-readinessprobe:1.0.3
3939
- name: VERSION_UPGRADE_HOOK_IMAGE
4040
value: quay.io/mongodb/mongodb-kubernetes-operator-version-upgrade-post-start-hook:1.0.2
41+
- name: MONGODB_IMAGE
42+
value: "library/mongo"
43+
- name: MONGODB_REPO_URL
44+
value: "registry.hub.docker.com"

dev_notes/RELEASE_NOTES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Remove the current operator deployment
1313
- `kubectl delete deployment <operator-deployment>`
1414
Delete the existing StatefulSet for the MongoDBCommunity resource
15-
Note: to ensure existing data is not lost, ensure that the retain policy of your Persistent Volumes is configured correctly.
15+
Note: to ensure existing data is not lost, ensure that the retain policy of your Persistent Volumes is configured correctly. Please reference the [official docs](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#reclaiming) for these configuration options.
1616
- `kubectl delete statefulset <mdb-resource-name>`
1717
Install the new operator
1818
- follow the regular [installation instruction](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/install-upgrade.md)
@@ -25,3 +25,4 @@
2525
## Updated Image Tags
2626
* mongodb-kubernetes-operator:0.6.0
2727
* mongodb-agent:0.29.0.6830-1
28+
* mongodb-kubernetes-readinessprobe:1.0.3
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# MongoDB Kubernetes Operator 0.6.0
2+
## Kubernetes Operator
3+
4+
* Breaking Changes
5+
* A new VolumeClaimTemplate has been added `logs-volume`. When you deploy the operator, if there is an existing StatefulSet the operator will attempt to perform an invalid update. The existing StatefulSet must be deleted before upgrading the operator.
6+
7+
* The user of the mongod and mongodb-agent containers has changed. This means that there will be permissions
8+
issues when upgrading from an earlier version of the operator. In order to update the permissions in the volume, you can use an init container.
9+
10+
* Upgrade instructions
11+
12+
Remove the current operator deployment
13+
- `kubectl delete deployment <operator-deployment>`
14+
Delete the existing StatefulSet for the MongoDBCommunity resource
15+
Note: to ensure existing data is not lost, ensure that the retain policy of your Persistent Volumes is configured correctly.
16+
- `kubectl delete statefulset <mdb-resource-name>`
17+
Install the new operator
18+
- follow the regular [installation instruction](https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/install-upgrade.md)
19+
Patch the StatefulSet once it has been created. This will add an init container that will update the permissions of the existing volume.
20+
- `kubectl patch statefulset <sts-name> --type='json' --patch '[ {"op":"add","path":"/spec/template/spec/initContainers/-", "value": { "name": "change-data-dir-permissions", "image": "busybox", "command": [ "chown", "-R", "2000", "/data" ], "securityContext": { "runAsNonRoot": false, "runAsUser": 0, "runAsGroup":0 }, "volumeMounts": [ { "mountPath": "/data", "name" : "data-volume" } ] } } ]'`
21+
22+
* Bug fixes
23+
* Fixes an issue that prevented the agents from reaching goal state when upgrading minor version of MongoDB.
24+
25+
## Updated Image Tags
26+
* mongodb-kubernetes-operator:0.6.0
27+
* mongodb-agent:0.29.0.6830-1
28+
* mongodb-kubernetes-readinessprobe:1.0.3

release.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"mongodb-kubernetes-operator": "0.5.2",
2+
"mongodb-kubernetes-operator": "0.6.0",
33
"version-upgrade-hook": "1.0.2",
44
"readiness-probe": "1.0.3",
55
"agent": {

0 commit comments

Comments
 (0)