Skip to content

Commit 67b0ede

Browse files
committed
fix notify
1 parent cfce2cc commit 67b0ede

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ RUN apk add --no-cache mysql-client aws-cli curl
55
# Set Default Environment Variables
66
ENV TARGET_DATABASE_PORT=3306
77
ENV NOTIFY_ENABLED=false
8-
ENV NOTIFY_USERNAME=kubernetes-s3-mysql-backup
98

109
# Copy Slack Alert script and make executable
1110
COPY resources/notify.sh /

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The below table lists all of the Environment Variables that are configurable for
2828
| NOTIFY_ENABLED | **(Optional)** (true/false) Enable or disable the Slack Integration (Default False). |
2929
| NOTIFY_USERNAME | **(Optional)** (true/false) Username to use for the Slack Integration (Default: kubernetes-s3-mysql-backup). |
3030
| NOTIFY_CHANNEL | **(Required if Slack enabled)** Slack Channel the WebHook is configured for. |
31-
| NOTIFY_WEBHOOK_URL | **(Required if Slack enabled)** What is the Slack WebHook URL to post to? Should be configured using a Secret in Kubernetes. |
31+
| NOTIFICATION_WEBHOOK_URL | **(Required if Slack enabled)** What is the Slack WebHook URL to post to? Should be configured using a Secret in Kubernetes. |
3232

3333

3434
## Slack Integration
@@ -93,7 +93,7 @@ data:
9393
apiVersion: v1
9494
kind: Secret
9595
metadata:
96-
name: NOTIFY_WEBHOOK_URL
96+
name: NOTIFICATION_WEBHOOK_URL
9797
type: Opaque
9898
data:
9999
slack_webhook_url: <Your Slack WebHook URL>
@@ -143,10 +143,10 @@ spec:
143143
value: "<true/false>"
144144
- name: NOTIFY_CHANNEL
145145
value: "#chatops"
146-
- name: NOTIFY_WEBHOOK_URL
146+
- name: NOTIFICATION_WEBHOOK_URL
147147
valueFrom:
148148
secretKeyRef:
149-
name: NOTIFY_WEBHOOK_URL
149+
name: NOTIFICATION_WEBHOOK_URL
150150
key: slack_webhook_url
151151
restartPolicy: Never
152152
```

resources/notify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#/bin/sh
22

3-
curl -X POST -d $PAYLOAD $NOTIFICATION_WEBHOOK_URL
3+
curl -X POST -d $1 $NOTIFICATION_WEBHOOK_URL

0 commit comments

Comments
 (0)