Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config/jobs: k8s-infra-apps jobs report to slack #23040

Merged
merged 1 commit into from
Jul 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion config/jobs/kubernetes/wg-k8s-infra/trusted/wg-k8s-infra-apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,20 @@ for app in "${APPS[@]}"; do
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/${app}\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying ${app}: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-${app}|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-${app}
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/${app}/deploy.sh if files change in kubernetes/k8s.io/apps/${app}'
testgrid-alert-email: k8s-infra-rbac-${app}[email protected], [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down
120 changes: 110 additions & 10 deletions config/jobs/kubernetes/wg-k8s-infra/trusted/wg-k8s-infra-apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,20 @@ postsubmits:
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/gcsweb\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying gcsweb: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-gcsweb|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-gcsweb
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/gcsweb/deploy.sh if files change in kubernetes/k8s.io/apps/gcsweb'
testgrid-alert-email: [email protected], [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down Expand Up @@ -40,10 +50,20 @@ postsubmits:
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/k8s-io\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying k8s-io: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-k8s-io|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-k8s-io
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/k8s-io/deploy.sh if files change in kubernetes/k8s.io/apps/k8s-io'
testgrid-alert-email: [email protected], [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down Expand Up @@ -71,10 +91,20 @@ postsubmits:
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/kubernetes-external-secrets\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying kubernetes-external-secrets: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-kubernetes-external-secrets|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-kubernetes-external-secrets
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/kubernetes-external-secrets/deploy.sh if files change in kubernetes/k8s.io/apps/kubernetes-external-secrets'
testgrid-alert-email: k8s-infra-rbac-kubernetes-external-secretsk8s-infra-alerts@kubernetes.io, [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down Expand Up @@ -102,10 +132,20 @@ postsubmits:
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/node-perf-dash\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying node-perf-dash: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-node-perf-dash|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-node-perf-dash
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/node-perf-dash/deploy.sh if files change in kubernetes/k8s.io/apps/node-perf-dash'
testgrid-alert-email: [email protected], [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down Expand Up @@ -133,10 +173,20 @@ postsubmits:
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/perfdash\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying perfdash: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-perfdash|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-perfdash
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/perfdash/deploy.sh if files change in kubernetes/k8s.io/apps/perfdash'
testgrid-alert-email: [email protected], [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down Expand Up @@ -164,10 +214,20 @@ postsubmits:
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/prow\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying prow: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-prow|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-prow
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/prow/deploy.sh if files change in kubernetes/k8s.io/apps/prow'
testgrid-alert-email: [email protected], [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down Expand Up @@ -195,10 +255,20 @@ postsubmits:
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/publishing-bot\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying publishing-bot: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-publishing-bot|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-publishing-bot
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/publishing-bot/deploy.sh if files change in kubernetes/k8s.io/apps/publishing-bot'
testgrid-alert-email: [email protected], [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down Expand Up @@ -226,10 +296,20 @@ postsubmits:
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/sippy\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying sippy: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-sippy|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-sippy
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/sippy/deploy.sh if files change in kubernetes/k8s.io/apps/sippy'
testgrid-alert-email: [email protected], [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down Expand Up @@ -257,10 +337,20 @@ postsubmits:
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/slack-infra\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying slack-infra: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-slack-infra|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-slack-infra
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/slack-infra/deploy.sh if files change in kubernetes/k8s.io/apps/slack-infra'
testgrid-alert-email: [email protected], [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down Expand Up @@ -288,10 +378,20 @@ postsubmits:
# intended for ignoring changes to README.md or OWNERS
run_if_changed: '^apps\/triageparty-release\/(.*.yaml|deploy.sh)$'
branches:
- ^main$
- ^main$
reporter_config:
slack:
channel: "k8s-infra-alerts"
job_states_to_report:
- success
- failure
- aborted
- error
report_template: 'Deploying triageparty-release: {{.Status.State}}. Commit: <{{.Spec.Refs.BaseLink}}|{{printf "%.7s" .Spec.Refs.BaseSHA}}> | <{{.Status.URL}}|Spyglass> | <https://testgrid.k8s.io/wg-k8s-infra-apps#deploy-triageparty-release|Testgrid> | <https://prow.k8s.io/?job={{.Spec.Job}}|Deck>'
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
testgrid-tab-name: deploy-triageparty-release
testgrid-description: 'runs https://git.k8s.io/k8s.io/apps/triageparty-release/deploy.sh if files change in kubernetes/k8s.io/apps/triageparty-release'
testgrid-alert-email: [email protected], [email protected]
testgrid-num-failures-to-alert: '1'
Expand Down