Skip to content

Commit 2021ae6

Browse files
authored
Add script to create draft github release (#439)
1 parent dcddbfb commit 2021ae6

File tree

4 files changed

+41
-34
lines changed

4 files changed

+41
-34
lines changed

dev_notes/RELEASE_NOTES.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
*(Please use the [release template](release-notes-template.md) as the template for this document)*
2-
<!-- Next release -->
31
# MongoDB Kubernetes Operator 0.6.0
42
## Kubernetes Operator
53

@@ -27,33 +25,3 @@
2725
## Updated Image Tags
2826
* mongodb-kubernetes-operator:0.6.0
2927
* mongodb-agent:0.29.0.6830-1
30-
31-
32-
<!-- Past Releases -->
33-
# MongoDB Kubernetes Operator 0.5.2
34-
## Kubernetes Operator
35-
* Changes
36-
* Readiness probe has been moved into an init container from the Agent image.
37-
* Security context is now added when the `MANAGED_SECURITY_CONTEXT` environment variable is not set.
38-
* Bug fixes
39-
* Removed unnecessary environment variable configuration in the openshift samples.
40-
* Fixed an issue where the operator would perform unnecessary reconcilliations when Secrets were modified.
41-
* Fixed an issue where a race condition could cause the deployment to get into a bad state when TLS
42-
settings when being changed at the same time as a scaling operation was happening.
43-
* Fixed an issue where the agent pod would panic when running as a non-root user.
44-
45-
## MongoDBCommunity Resource
46-
* Changes
47-
* Added `spec.security.authentication.ignoreUnknownUsers` field. This value defaults to `true`. When enabled,
48-
any MongoDB users added through external sources will not be removed.
49-
50-
51-
## Miscellaneous
52-
* Changes
53-
* Internal code refactorings to allow libraries to be imported into other projects.
54-
55-
56-
## Updated Image Tags
57-
* mongodb-kubernetes-operator:0.5.2
58-
* mongodb-agent:10.27.0.6772-1
59-
* mongodb-kubernetes-readinessprobe:1.0.1 [new image]

dev_notes/how-to-release.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33

44
* Update any finished tickets in [kube-community-next](https://jira.mongodb.org/issues?jql=project%20%3D%20CLOUDP%20AND%20component%20%3D%20%22Kubernetes%20Community%22%20%20AND%20status%20in%20(Resolved%2C%20Closed)%20and%20fixVersion%3D%20kube-community-next%20%20ORDER%20BY%20resolved) to have the version of the release you're doing (kube-community-x.y)
55

6-
* Create github [draft release](https://github.com/mongodb/mongodb-kubernetes-operator/releases/new)
6+
* Prepare the release PR
7+
1. Increment any image version changes.
8+
2. Create a github draft release `./scripts/dev/create_github_release.sh`.
9+
3. Commit changes.
10+
11+
* Create release PR
12+
1. Reconfigure the Evergreen run to add the relevant release task(s).
713

8-
* Create release PR & and reconfigure the Evergreen run to add the release task
914

1015
* Unblock release task once everything is green
1116

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# MongoDB Kubernetes Operator 0.5.2
2+
## Kubernetes Operator
3+
* Changes
4+
* Readiness probe has been moved into an init container from the Agent image.
5+
* Security context is now added when the `MANAGED_SECURITY_CONTEXT` environment variable is not set.
6+
* Bug fixes
7+
* Removed unnecessary environment variable configuration in the openshift samples.
8+
* Fixed an issue where the operator would perform unnecessary reconcilliations when Secrets were modified.
9+
* Fixed an issue where a race condition could cause the deployment to get into a bad state when TLS
10+
settings when being changed at the same time as a scaling operation was happening.
11+
* Fixed an issue where the agent pod would panic when running as a non-root user.
12+
13+
## MongoDBCommunity Resource
14+
* Changes
15+
* Added `spec.security.authentication.ignoreUnknownUsers` field. This value defaults to `true`. When enabled,
16+
any MongoDB users added through external sources will not be removed.
17+
18+
19+
## Miscellaneous
20+
* Changes
21+
* Internal code refactorings to allow libraries to be imported into other projects.
22+
23+
24+
## Updated Image Tags
25+
* mongodb-kubernetes-operator:0.5.2
26+
* mongodb-agent:10.27.0.6772-1
27+
* mongodb-kubernetes-readinessprobe:1.0.1 [new image]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
version="$(jq -r '."mongodb-kubernetes-operator"' < ./release.json)"
4+
gh release create v"${version}" --title "MongoDB Kubernetes Operator ${version}" --draft --notes-file ./dev_notes/RELEASE_NOTES.md
5+
6+
# move the release notes
7+
cp ./dev_notes/RELEASE_NOTES.md "./dev_notes/past_release_notes/v${version}.md"

0 commit comments

Comments
 (0)