-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add argo-rollouts resources for notifications
- Loading branch information
Showing
14 changed files
with
334 additions
and
6 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
addons/argo-rollouts/resources/notifications/argo-rollouts-notification-configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-rollouts-notification-configmap |
16 changes: 16 additions & 0 deletions
16
addons/argo-rollouts/resources/notifications/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- configmap.yaml | ||
|
||
patchesStrategicMerge: | ||
- on-rollout-completed.yaml | ||
- on-scaling-replica-set.yaml | ||
- on-rollout-step-completed.yaml | ||
- on-rollout-updated.yaml | ||
- on-rollout-aborted.yaml | ||
- on-rollout-paused.yaml | ||
- on-analysis-run-running.yaml | ||
- on-analysis-run-error.yaml | ||
- on-analysis-run-failed.yaml |
33 changes: 33 additions & 0 deletions
33
addons/argo-rollouts/resources/notifications/on-analysis-run-error.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-rollouts-notification-configmap | ||
data: | ||
trigger.on-analysis-run-error: | | ||
- send: [analysis-run-error] | ||
template.analysis-run-error: | | ||
message: Rollout {{.rollout.metadata.name}}'s analysis run is in error state. | ||
email: | ||
subject: Rollout {{.rollout.metadata.name}}'s analysis run is in error state. | ||
slack: | ||
attachments: | | ||
[{ | ||
"title": "{{ .rollout.metadata.name}}", | ||
"color": "#ECB22E", | ||
"fields": [ | ||
{ | ||
"title": "Strategy", | ||
"value": "{{if .rollout.spec.strategy.blueGreen}}BlueGreen{{end}}{{if .rollout.spec.strategy.canary}}Canary{{end}}", | ||
"short": true | ||
} | ||
{{range $index, $c := .rollout.spec.template.spec.containers}} | ||
{{if not $index}},{{end}} | ||
{{if $index}},{{end}} | ||
{ | ||
"title": "{{$c.name}}", | ||
"value": "{{$c.image}}", | ||
"short": true | ||
} | ||
{{end}} | ||
] | ||
}] |
33 changes: 33 additions & 0 deletions
33
addons/argo-rollouts/resources/notifications/on-analysis-run-failed.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-rollouts-notification-configmap | ||
data: | ||
trigger.on-analysis-run-failed: | | ||
- send: [analysis-run-failed] | ||
template.analysis-run-failed: | | ||
message: Rollout {{.rollout.metadata.name}}'s analysis run failed. | ||
email: | ||
subject: Rollout {{.rollout.metadata.name}}'s analysis run failed. | ||
slack: | ||
attachments: | | ||
[{ | ||
"title": "{{ .rollout.metadata.name}}", | ||
"color": "#E01E5A", | ||
"fields": [ | ||
{ | ||
"title": "Strategy", | ||
"value": "{{if .rollout.spec.strategy.blueGreen}}BlueGreen{{end}}{{if .rollout.spec.strategy.canary}}Canary{{end}}", | ||
"short": true | ||
} | ||
{{range $index, $c := .rollout.spec.template.spec.containers}} | ||
{{if not $index}},{{end}} | ||
{{if $index}},{{end}} | ||
{ | ||
"title": "{{$c.name}}", | ||
"value": "{{$c.image}}", | ||
"short": true | ||
} | ||
{{end}} | ||
] | ||
}] |
33 changes: 33 additions & 0 deletions
33
addons/argo-rollouts/resources/notifications/on-analysis-run-running.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-rollouts-notification-configmap | ||
data: | ||
trigger.on-analysis-run-running: | | ||
- send: [analysis-run-running] | ||
template.analysis-run-running: | | ||
message: Rollout {{.rollout.metadata.name}}'s analysis run is running. | ||
email: | ||
subject: Rollout {{.rollout.metadata.name}}'s analysis run is running. | ||
slack: | ||
attachments: | | ||
[{ | ||
"title": "{{ .rollout.metadata.name}}", | ||
"color": "#18be52", | ||
"fields": [ | ||
{ | ||
"title": "Strategy", | ||
"value": "{{if .rollout.spec.strategy.blueGreen}}BlueGreen{{end}}{{if .rollout.spec.strategy.canary}}Canary{{end}}", | ||
"short": true | ||
} | ||
{{range $index, $c := .rollout.spec.template.spec.containers}} | ||
{{if not $index}},{{end}} | ||
{{if $index}},{{end}} | ||
{ | ||
"title": "{{$c.name}}", | ||
"value": "{{$c.image}}", | ||
"short": true | ||
} | ||
{{end}} | ||
] | ||
}] |
33 changes: 33 additions & 0 deletions
33
addons/argo-rollouts/resources/notifications/on-rollout-aborted.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-rollouts-notification-configmap | ||
data: | ||
trigger.on-rollout-aborted: | | ||
- send: [rollout-aborted] | ||
template.rollout-aborted: | | ||
message: Rollout {{.rollout.metadata.name}} has been aborted. | ||
email: | ||
subject: Rollout {{.rollout.metadata.name}} has been aborted. | ||
slack: | ||
attachments: | | ||
[{ | ||
"title": "{{ .rollout.metadata.name}}", | ||
"color": "#E01E5A", | ||
"fields": [ | ||
{ | ||
"title": "Strategy", | ||
"value": "{{if .rollout.spec.strategy.blueGreen}}BlueGreen{{end}}{{if .rollout.spec.strategy.canary}}Canary{{end}}", | ||
"short": true | ||
} | ||
{{range $index, $c := .rollout.spec.template.spec.containers}} | ||
{{if not $index}},{{end}} | ||
{{if $index}},{{end}} | ||
{ | ||
"title": "{{$c.name}}", | ||
"value": "{{$c.image}}", | ||
"short": true | ||
} | ||
{{end}} | ||
] | ||
}] |
33 changes: 33 additions & 0 deletions
33
addons/argo-rollouts/resources/notifications/on-rollout-completed.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-rollouts-notification-configmap | ||
data: | ||
trigger.on-rollout-completed: | | ||
- send: [rollout-completed] | ||
template.rollout-completed: | | ||
message: Rollout {{.rollout.metadata.name}} has been completed. | ||
email: | ||
subject: Rollout {{.rollout.metadata.name}} has been completed. | ||
slack: | ||
attachments: | | ||
[{ | ||
"title": "{{ .rollout.metadata.name}}", | ||
"color": "#18be52", | ||
"fields": [ | ||
{ | ||
"title": "Strategy", | ||
"value": "{{if .rollout.spec.strategy.blueGreen}}BlueGreen{{end}}{{if .rollout.spec.strategy.canary}}Canary{{end}}", | ||
"short": true | ||
} | ||
{{range $index, $c := .rollout.spec.template.spec.containers}} | ||
{{if not $index}},{{end}} | ||
{{if $index}},{{end}} | ||
{ | ||
"title": "{{$c.name}}", | ||
"value": "{{$c.image}}", | ||
"short": true | ||
} | ||
{{end}} | ||
] | ||
}] |
33 changes: 33 additions & 0 deletions
33
addons/argo-rollouts/resources/notifications/on-rollout-paused.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-rollouts-notification-configmap | ||
data: | ||
trigger.on-rollout-paused: | | ||
- send: [rollout-paused] | ||
template.rollout-paused: | | ||
message: Rollout {{.rollout.metadata.name}} has been paused. | ||
email: | ||
subject: Rollout {{.rollout.metadata.name}} has been paused. | ||
slack: | ||
attachments: | | ||
[{ | ||
"title": "{{ .rollout.metadata.name}}", | ||
"color": "#18be52", | ||
"fields": [ | ||
{ | ||
"title": "Strategy", | ||
"value": "{{if .rollout.spec.strategy.blueGreen}}BlueGreen{{end}}{{if .rollout.spec.strategy.canary}}Canary{{end}}", | ||
"short": true | ||
} | ||
{{range $index, $c := .rollout.spec.template.spec.containers}} | ||
{{if not $index}},{{end}} | ||
{{if $index}},{{end}} | ||
{ | ||
"title": "{{$c.name}}", | ||
"value": "{{$c.image}}", | ||
"short": true | ||
} | ||
{{end}} | ||
] | ||
}] |
38 changes: 38 additions & 0 deletions
38
addons/argo-rollouts/resources/notifications/on-rollout-step-completed.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-rollouts-notification-configmap | ||
data: | ||
trigger.on-rollout-step-completed: | | ||
- send: [rollout-step-completed] | ||
template.rollout-step-completed: | | ||
message: Rollout {{.rollout.metadata.name}} step number {{ add .rollout.status.currentStepIndex 1}}/{{len .rollout.spec.strategy.canary.steps}} has been completed. | ||
email: | ||
subject: Rollout {{.rollout.metadata.name}} step number {{ add .rollout.status.currentStepIndex 1}}/{{len .rollout.spec.strategy.canary.steps}} has been completed. | ||
slack: | ||
attachments: | | ||
[{ | ||
"title": "{{ .rollout.metadata.name}}", | ||
"color": "#18be52", | ||
"fields": [ | ||
{ | ||
"title": "Strategy", | ||
"value": "{{if .rollout.spec.strategy.blueGreen}}BlueGreen{{end}}{{if .rollout.spec.strategy.canary}}Canary{{end}}", | ||
"short": true | ||
}, | ||
{ | ||
"title": "Step completed", | ||
"value": "{{add .rollout.status.currentStepIndex 1}}/{{len .rollout.spec.strategy.canary.steps}}", | ||
"short": true | ||
} | ||
{{range $index, $c := .rollout.spec.template.spec.containers}} | ||
{{if not $index}},{{end}} | ||
{{if $index}},{{end}} | ||
{ | ||
"title": "{{$c.name}}", | ||
"value": "{{$c.image}}", | ||
"short": true | ||
} | ||
{{end}} | ||
] | ||
}] |
33 changes: 33 additions & 0 deletions
33
addons/argo-rollouts/resources/notifications/on-rollout-updated.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-rollouts-notification-configmap | ||
data: | ||
trigger.on-rollout-updated: | | ||
- send: [rollout-updated] | ||
template.rollout-updated: | | ||
message: Rollout {{.rollout.metadata.name}} has been updated. | ||
email: | ||
subject: Rollout {{.rollout.metadata.name}} has been updated. | ||
slack: | ||
attachments: | | ||
[{ | ||
"title": "{{ .rollout.metadata.name}}", | ||
"color": "#18be52", | ||
"fields": [ | ||
{ | ||
"title": "Strategy", | ||
"value": "{{if .rollout.spec.strategy.blueGreen}}BlueGreen{{end}}{{if .rollout.spec.strategy.canary}}Canary{{end}}", | ||
"short": true | ||
} | ||
{{range $index, $c := .rollout.spec.template.spec.containers}} | ||
{{if not $index}},{{end}} | ||
{{if $index}},{{end}} | ||
{ | ||
"title": "{{$c.name}}", | ||
"value": "{{$c.image}}", | ||
"short": true | ||
} | ||
{{end}} | ||
] | ||
}] |
43 changes: 43 additions & 0 deletions
43
addons/argo-rollouts/resources/notifications/on-scaling-replica-set.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argo-rollouts-notification-configmap | ||
data: | ||
trigger.on-scaling-replica-set: | | ||
- send: [scaling-replicaset] | ||
template.scaling-replicaset: | | ||
message: Scaling Rollout {{.rollout.metadata.name}}'s replicaset to {{.rollout.spec.replicas}}. | ||
email: | ||
subject: Scaling Rollout {{.rollout.metadata.name}}'s replcaset to {{.rollout.spec.replicas}}. | ||
slack: | ||
attachments: | | ||
[{ | ||
"title": "{{ .rollout.metadata.name}}", | ||
"color": "#18be52", | ||
"fields": [ | ||
{ | ||
"title": "Strategy", | ||
"value": "{{if .rollout.spec.strategy.blueGreen}}BlueGreen{{end}}{{if .rollout.spec.strategy.canary}}Canary{{end}}", | ||
"short": true | ||
}, | ||
{ | ||
"title": "Desired replica", | ||
"value": "{{.rollout.spec.replicas}}", | ||
"short": true | ||
}, | ||
{ | ||
"title": "Updated replicas", | ||
"value": "{{.rollout.status.updatedReplicas}}", | ||
"short": true | ||
} | ||
{{range $index, $c := .rollout.spec.template.spec.containers}} | ||
{{if not $index}},{{end}} | ||
{{if $index}},{{end}} | ||
{ | ||
"title": "{{$c.name}}", | ||
"value": "{{$c.image}}", | ||
"short": true | ||
} | ||
{{end}} | ||
] | ||
}] |
4 changes: 0 additions & 4 deletions
4
addons/argo-rollouts/v1.3/base/argo-rollouts-notification-secret.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters