Skip to content

Commit

Permalink
config: add wg-k8s-infra-apps jobs and dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
spiffxp committed Jul 21, 2021
1 parent a15153a commit aecb2a2
Show file tree
Hide file tree
Showing 3 changed files with 417 additions and 1 deletion.
80 changes: 80 additions & 0 deletions config/jobs/kubernetes/wg-k8s-infra/trusted/wg-k8s-infra-apps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/usr/bin/env bash
# Copyright 2021 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# generates wg-k8s-infra app deployment job configs

set -o errexit
set -o nounset
set -o pipefail

SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")

readonly OUTPUT="${SCRIPT_DIR}/wg-k8s-infra-apps.yaml"
# list of subdirs in kubernetes/k8s.io/apps
readonly APPS=(
cert-manager
gcsweb
k8s-io
kubernetes-external-secrets
node-perf-dash
perfdash
prow
publishing-bot
sippy
slack-infra
triageparty-release
)

cat >"${OUTPUT}" <<EOF
# DO NOT EDIT. Automatically generated by $0
postsubmits:
kubernetes/k8s.io:
EOF

for app in "${APPS[@]}"; do
cat >>"${OUTPUT}" <<EOF
- name: post-k8sio-deploy-app-${app}
cluster: k8s-infra-prow-build-trusted
decorate: true
max_concurrency: 1
run_if_changed: '^apps\/${app}\/'
branches:
- ^main$
annotations:
testgrid-create-test-group: 'true'
testgrid-dashboards: wg-k8s-infra-apps
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: [email protected]
testgrid-num-failures-to-alert: '1'
rerun_auth_config:
github_team_slugs:
# proxy for wg-k8s-infra-oncall
- org: kubernetes
slug: wg-k8s-infra-leads
# proxy for test-infra-oncall
- org: kubernetes
slug: test-infra-admins
# TODO: sig-specific team in charge of this app
# - org: kubernetes
# slug: sig-foo-bar
spec:
serviceAccountName: prow-deployer
containers:
- image: gcr.io/k8s-staging-infra-tools/k8s-infra:latest
command:
- ./apps/${app}/deploy.sh
EOF
done
Loading

0 comments on commit aecb2a2

Please sign in to comment.