Skip to content

Commit

Permalink
Fix a mistake with the last commit to update the docs
Browse files Browse the repository at this point in the history
Signed-off-by: Darkfella91 <[email protected]>
  • Loading branch information
Darkfella91 committed Jan 26, 2025
1 parent e075536 commit a17a07f
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions docs/spec/v1beta3/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -922,12 +922,6 @@ and [TLS certificates](#tls-certificates).
To configure a Provider for Prometheus Alertmanager, you can authenticate using Basic Authentication or a Bearer Token.
Both authentication methods are supported, and you can choose the one that best fits your setup.

To configure a Provider for Prometheus Alertmanager, create a Secret with [the
`address`](#address-example) set to the Prometheus Alertmanager [HTTP API
URL](https://prometheus.io/docs/alerting/latest/https/#http-traffic)
including Basic Auth credentials, and a `alertmanager` Provider with a [Secret
reference](#secret-reference).

Basic Authentication:
Create a Secret with [the `address`](#address-example) set to the Prometheus Alertmanager [HTTP API
URL](https://prometheus.io/docs/alerting/latest/https/#http-traffic)
Expand Down Expand Up @@ -955,7 +949,30 @@ stringData:
address: https://username:password@<alertmanager-url>/api/v2/alerts/"
```
Bearer Token Authentication:
Create a Secret with [the `token`](#token-example)
Create a Secret with [the `token`](#token-example), and a `alertmanager` Provider with a [Secret
reference](#secret-reference) and the address set directly in the spec.address field.

```yaml
---
apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Provider
metadata:
name: alertmanager
namespace: default
spec:
type: alertmanager
address: <alertmanager-url>/api/v2/alerts/
secretRef:
name: alertmanager-token
---
apiVersion: v1
kind: Secret
metadata:
name: alertmanager-token
namespace: default
stringData:
token: <token>
```

##### Webex

Expand Down

0 comments on commit a17a07f

Please sign in to comment.