diff --git a/docs/generated/notification-services/slack.md b/docs/generated/notification-services/slack.md index 813d8c62a6..1781170782 100755 --- a/docs/generated/notification-services/slack.md +++ b/docs/generated/notification-services/slack.md @@ -34,56 +34,56 @@ The Slack notification service configuration includes following settings: 1. Invite your slack bot to this channel **otherwise slack bot won't be able to deliver notifications to this channel** 1. Store Oauth access token in `argo-rollouts-notification-secret` secret - ```yaml - apiVersion: v1 - kind: Secret - metadata: - name: argo-rollouts-notification-secret - stringData: - slack-token: - ``` +```yaml +apiVersion: v1 +kind: Secret +metadata: + name: argo-rollouts-notification-secret +stringData: + slack-token: +``` 1. Define service type slack in data section of `argo-rollouts-notification-configmap` configmap: - ```yaml - apiVersion: v1 - kind: ConfigMap - metadata: - name: argo-rollouts-notification-configmap - data: - service.slack: | - token: $slack-token - ``` +```yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: argo-rollouts-notification-configmap +data: + service.slack: | + token: $slack-token +``` 1. Add annotation in application yaml file to enable notifications for specific argocd app. The following example uses the [on-sync-succeeded trigger](../catalog.md#triggers): - ```yaml - apiVersion: argoproj.io/v1alpha1 - kind: Application - metadata: - annotations: - notifications.argoproj.io/subscribe.on-sync-succeeded.slack: my_channel - ``` +```yaml +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + annotations: + notifications.argoproj.io/subscribe.on-sync-succeeded.slack: my_channel +``` 1. Annotation with more than one [trigger](../catalog.md#triggers), with multiple destinations and recipients - ```yaml - apiVersion: argoproj.io/v1alpha1 - kind: Application - metadata: - annotations: - notifications.argoproj.io/subscriptions: | - - trigger: [on-scaling-replica-set, on-rollout-updated, on-rollout-step-completed] - destinations: - - service: slack - recipients: [my-channel-1, my-channel-2] - - service: email - recipients: [recipient-1, recipient-2, recipient-3 ] - - trigger: [on-rollout-aborted, on-analysis-run-failed, on-analysis-run-error] - destinations: - - service: slack - recipients: [my-channel-21, my-channel-22] - ``` +```yaml +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + annotations: + notifications.argoproj.io/subscriptions: | + - trigger: [on-scaling-replica-set, on-rollout-updated, on-rollout-step-completed] + destinations: + - service: slack + recipients: [my-channel-1, my-channel-2] + - service: email + recipients: [recipient-1, recipient-2, recipient-3 ] + - trigger: [on-rollout-aborted, on-analysis-run-failed, on-analysis-run-error] + destinations: + - service: slack + recipients: [my-channel-21, my-channel-22] +``` ## Templates