Skip to content
This repository was archived by the owner on Apr 27, 2024. It is now read-only.

Commit 0033541

Browse files
Merge pull request #12 from benjamin-maynard/versionbump
Version Bumps and v2.3.0 release
2 parents 79804ce + 9f68db3 commit 0033541

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [v2.3.0] - 21-03-2020
8+
### Implement GCS Backend, and rename to kubernetes-cloud-mysql-backup
9+
- Added the ability to GZIP compress backup files. Thanks & credit: @LucasBG0
10+
- Added the ability to use custom S3 compatible storage endpoints. Thanks & credit: @mwienk
11+
- Bumped Google Cloud SDK version to 285.0.1
12+
- Bumped Alpine Linux version to 3.11
13+
- Corrected log filenames that were not correctly updated as part of the v2.2.0 rename
14+
15+
716
## [v2.2.0] - 28-11-2019
817
### Implement GCS Backend, and rename to kubernetes-cloud-mysql-backup
918
- Added the ability to use Google Cloud Storage (GCS) as a backend storage provider (backwards compatible)

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Set the base image
2-
FROM alpine:3.10
2+
FROM alpine:3.11
33

44
RUN apk -v --update add \
55
python3 \
@@ -24,7 +24,7 @@ RUN apk -v --update add \
2424
ENV TARGET_DATABASE_PORT=3306
2525
ENV SLACK_ENABLED=false
2626
ENV SLACK_USERNAME=kubernetes-s3-mysql-backup
27-
ENV CLOUD_SDK_VERSION=272.0.0
27+
ENV CLOUD_SDK_VERSION=285.0.1
2828
ENV BACKUP_PROVIDER=aws
2929

3030
# Set Google Cloud SDK Path

resources/perform-backup.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ do
3838
if [ "$BACKUP_PROVIDER" = "aws" ]
3939
then
4040

41+
# If the AWS_S3_ENDPOINT variable isn't empty, then populate the --endpoint-url parameter to use a custom S3 compatable endpoint
4142
if [ ! -z "$AWS_S3_ENDPOINT" ]
4243
then
4344
ENDPOINT="--endpoint-url=$AWS_S3_ENDPOINT"
@@ -49,7 +50,7 @@ do
4950
then
5051
echo -e "Database backup successfully uploaded for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S')."
5152
else
52-
echo -e "Database backup failed to upload for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $awsoutput" | tee -a /tmp/kubernetes-s3-mysql-backup.log
53+
echo -e "Database backup failed to upload for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $awsoutput" | tee -a /tmp/kubernetes-cloud-mysql-backup.log
5354
has_failed=true
5455
fi
5556

@@ -64,14 +65,14 @@ do
6465
then
6566
echo -e "Database backup successfully uploaded for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S')."
6667
else
67-
echo -e "Database backup failed to upload for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $gcpoutput" | tee -a /tmp/kubernetes-s3-mysql-backup.log
68+
echo -e "Database backup failed to upload for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $gcpoutput" | tee -a /tmp/kubernetes-cloud-mysql-backup.log
6869
has_failed=true
6970
fi
7071

7172
fi
7273

7374
else
74-
echo -e "Database backup FAILED for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $sqloutput" | tee -a /tmp/kubernetes-s3-mysql-backup.log
75+
echo -e "Database backup FAILED for $CURRENT_DATABASE at $(date +'%d-%m-%Y %H:%M:%S'). Error: $sqloutput" | tee -a /tmp/kubernetes-cloud-mysql-backup.log
7576
has_failed=true
7677
fi
7778

@@ -90,13 +91,13 @@ then
9091
if [ "$SLACK_ENABLED" = "true" ]
9192
then
9293
# Put the contents of the database backup logs into a variable
93-
logcontents=`cat /tmp/kubernetes-s3-mysql-backup.log`
94+
logcontents=`cat /tmp/kubernetes-cloud-mysql-backup.log`
9495

9596
# Send Slack alert
9697
/slack-alert.sh "One or more backups on database host $TARGET_DATABASE_HOST failed. The error details are included below:" "$logcontents"
9798
fi
9899

99-
echo -e "kubernetes-s3-mysql-backup encountered 1 or more errors. Exiting with status code 1."
100+
echo -e "kubernetes-cloud-mysql-backup encountered 1 or more errors. Exiting with status code 1."
100101
exit 1
101102

102103
else

0 commit comments

Comments
 (0)