Skip to content

Commit beb30be

Browse files
authored
chore: update operator to version 0.21.0 and adjust CRD annotations (#1416)
* add github user in release note Signed-off-by: yangw <[email protected]> * chore: update operator to version 0.21.0 and adjust CRD annotations Signed-off-by: yangw <[email protected]> --------- Signed-off-by: yangw <[email protected]>
1 parent 8499c3f commit beb30be

File tree

7 files changed

+183
-328
lines changed

7 files changed

+183
-328
lines changed

.github/workflows/auto-release.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,20 @@ jobs:
4848
run: |
4949
PREVIOUS_TAG=$(git describe --tags --abbrev=0 ${{ steps.get_version.outputs.VERSION }}^ 2>/dev/null || git rev-list --max-parents=0 HEAD)
5050
51-
CHANGELOG=$(git log --pretty=format:"* %s" ${PREVIOUS_TAG}..${{ steps.get_version.outputs.VERSION }})
51+
CHANGELOG=""
52+
while IFS= read -r line; do
53+
commit_hash=$(echo "$line" | cut -d' ' -f1)
54+
commit_msg=$(echo "$line" | cut -d' ' -f2-)
55+
author_login=$(gh api repos/${{ github.repository }}/commits/$commit_hash --jq '.author.login' 2>/dev/null || echo "unknown")
56+
if [ "$author_login" != "null" ] && [ "$author_login" != "unknown" ]; then
57+
CHANGELOG="$CHANGELOG* $commit_msg (@$author_login)"$'\n'
58+
else
59+
author_name=$(git show --pretty=format:"%an" -s $commit_hash)
60+
CHANGELOG="$CHANGELOG* $commit_msg (@$author_name)"$'\n'
61+
fi
62+
done < <(git log --pretty=format:"%H %s" ${PREVIOUS_TAG}..${{ steps.get_version.outputs.VERSION }})
5263
5364
cat > release_notes.md << EOF
54-
# Redis Operator ${{ steps.get_version.outputs.VERSION }}
55-
5665
## Changes
5766
${CHANGELOG}
5867
EOF

charts/redis-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
apiVersion: v2
3-
version: 0.20.3
4-
appVersion: "0.20.2"
3+
version: 0.21.0
4+
appVersion: "0.21.0"
55
description: Provides easy redis setup definitions for Kubernetes services, and deployment.
66
engine: gotpl
77
maintainers:

charts/redis-operator/crds/redis.redis.opstreelabs.in_redis.yaml

Lines changed: 40 additions & 73 deletions
Large diffs are not rendered by default.

charts/redis-operator/crds/redis.redis.opstreelabs.in_redisclusters.yaml

Lines changed: 66 additions & 104 deletions
Large diffs are not rendered by default.

charts/redis-operator/crds/redis.redis.opstreelabs.in_redisreplications.yaml

Lines changed: 40 additions & 78 deletions
Large diffs are not rendered by default.

charts/redis-operator/crds/redis.redis.opstreelabs.in_redissentinels.yaml

Lines changed: 22 additions & 67 deletions
Large diffs are not rendered by default.

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ kind: Kustomization
1313
images:
1414
- name: controller
1515
newName: quay.io/opstree/redis-operator
16-
newTag: v0.20.2
16+
newTag: v0.21.0

0 commit comments

Comments
 (0)