mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.7 KiB
Markdown
58 lines
1.7 KiB
Markdown
4 years ago
|
## flux create alert-provider
|
||
4 years ago
|
|
||
|
Create or update a Provider resource
|
||
|
|
||
|
### Synopsis
|
||
|
|
||
|
The create alert-provider command generates a Provider resource.
|
||
|
|
||
|
```
|
||
4 years ago
|
flux create alert-provider [name] [flags]
|
||
4 years ago
|
```
|
||
|
|
||
|
### Examples
|
||
|
|
||
|
```
|
||
|
# Create a Provider for a Slack channel
|
||
4 years ago
|
flux create alert-provider slack \
|
||
4 years ago
|
--type slack \
|
||
|
--channel general \
|
||
|
--address https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK \
|
||
|
--secret-ref webhook-url
|
||
|
|
||
|
# Create a Provider for a Github repository
|
||
4 years ago
|
flux create alert-provider github-podinfo \
|
||
4 years ago
|
--type github \
|
||
|
--address https://github.com/stefanprodan/podinfo \
|
||
|
--secret-ref github-token
|
||
|
|
||
|
```
|
||
|
|
||
|
### Options
|
||
|
|
||
|
```
|
||
|
--address string path to either the git repository, chat provider or webhook
|
||
|
--channel string channel to send messages to in the case of a chat provider
|
||
|
-h, --help help for alert-provider
|
||
|
--secret-ref string name of secret containing authentication token
|
||
|
--type string type of provider
|
||
|
--username string bot username used by the provider
|
||
|
```
|
||
|
|
||
|
### Options inherited from parent commands
|
||
|
|
||
|
```
|
||
|
--export export in YAML format to stdout
|
||
|
--interval duration source sync interval (default 1m0s)
|
||
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||
4 years ago
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||
4 years ago
|
--timeout duration timeout for this operation (default 5m0s)
|
||
|
--verbose print generated objects
|
||
|
```
|
||
|
|
||
|
### SEE ALSO
|
||
|
|
||
4 years ago
|
* [flux create](flux_create.md) - Create or update sources and resources
|
||
4 years ago
|
|