Merge pull request #430 from heubeck/eventhookUrlFromEnv

Add webhookUrl env parameter
This commit is contained in:
Stefan Prodan
2020-02-11 08:48:36 +02:00
committed by GitHub
3 changed files with 9 additions and 1 deletions
+5
View File
@@ -57,6 +57,11 @@ podMonitor:
# secretKeyRef:
# name: msteams
# key: url
#- name: EVENT_WEBHOOK_URL
# valueFrom:
# secretKeyRef:
# name: eventwebhook
# key: url
env: []
leaderElection:
+1 -1
View File
@@ -202,7 +202,7 @@ func main() {
observerFactory,
meshProvider,
version.VERSION,
eventWebhook,
fromEnv("EVENT_WEBHOOK_URL", eventWebhook),
)
// leader election context
+3
View File
@@ -62,6 +62,9 @@ helm upgrade -i flagger flagger/flagger \
--set eventWebhook=https://example.com/flagger-canary-event-webhook
```
The environment variable *EVENT_WEBHOOK_URL* can be used for activating the event-webhook, too.
This is handy for using a secret to store a sensible value that could contain api keys for example.
When configured, every action that Flagger takes during a canary deployment will be sent as JSON via an HTTP POST
request. The JSON payload has the following schema: