Add a configuration handle that receives the JSON file to be included on the URL callback.

This commit is contained in:
Giancarlo Razzolini 2019-06-17 13:15:01 -03:00
parent 0f05a82284
commit 7c8659d756
No known key found for this signature in database
GPG key ID: 354AAB6377B981BC

View file

@ -169,5 +169,10 @@ func SetupCliFlags(app *cli.App) {
Usage: "URL to callback for out of band updating", Usage: "URL to callback for out of band updating",
EnvVar: "WATCHTOWER_URL_CALLBACK", EnvVar: "WATCHTOWER_URL_CALLBACK",
}, },
cli.BoolFlag{
Name: "json-extra-url-callback",
Usage: "JSON file to be sent as extra data when using URL callback",
EnvVar: "WATCHTOWER_JSON_EXTRA_URL_CALLBACK",
},
} }
} }