From 15940664bc386f257aea2458acd9b982a3204ddf Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sun, 30 Oct 2022 02:21:39 +0200 Subject: [PATCH] Add owners and prow config --- OWNERS | 4 +++ OWNERS_ALIASES | 5 ++++ config/BUILD.bazel | 0 config/jobs/BUILD.bazel | 0 config/jobs/presubmits.yaml | 26 +++++++++++++++++ config/prow/BUILD.bazel | 0 config/prow/config.yaml | 56 +++++++++++++++++++++++++++++++++++++ config/prow/plugins.yaml | 28 +++++++++++++++++++ 8 files changed, 119 insertions(+) create mode 100644 OWNERS create mode 100644 OWNERS_ALIASES create mode 100644 config/BUILD.bazel create mode 100644 config/jobs/BUILD.bazel create mode 100644 config/jobs/presubmits.yaml create mode 100644 config/prow/BUILD.bazel create mode 100644 config/prow/config.yaml create mode 100644 config/prow/plugins.yaml diff --git a/OWNERS b/OWNERS new file mode 100644 index 0000000..0a32842 --- /dev/null +++ b/OWNERS @@ -0,0 +1,4 @@ +approvers: + - alias-maintainers +reviewers: + - alias-maintainers diff --git a/OWNERS_ALIASES b/OWNERS_ALIASES new file mode 100644 index 0000000..c6537c4 --- /dev/null +++ b/OWNERS_ALIASES @@ -0,0 +1,5 @@ +aliases: + alias-maintainers: + - mstg + - nazunalika + - NeilHanlon diff --git a/config/BUILD.bazel b/config/BUILD.bazel new file mode 100644 index 0000000..e69de29 diff --git a/config/jobs/BUILD.bazel b/config/jobs/BUILD.bazel new file mode 100644 index 0000000..e69de29 diff --git a/config/jobs/presubmits.yaml b/config/jobs/presubmits.yaml new file mode 100644 index 0000000..3d182cb --- /dev/null +++ b/config/jobs/presubmits.yaml @@ -0,0 +1,26 @@ +presubmits: + rocky-linux/peridot: + - name: pull-peridot-validate-prow-yaml + run_if_changed: '^(config/prow/(config|plugins).yaml$|config/jobs/.*.yaml$)' + decorate: true + spec: + containers: + - image: gcr.io/k8s-prow/checkconfig:v20221028-a8625c1f93 + command: + - checkconfig + args: + - --config-path=config/prow/config.yaml + - --job-config-path=config/jobs + - --plugin-config=config/prow/plugins.yaml + - --strict + + - name: pull-peridot-unit-test + branches: + - main + always_run: true + decorate: true + spec: + containers: + - image: alpine + command: + - /bin/date diff --git a/config/prow/BUILD.bazel b/config/prow/BUILD.bazel new file mode 100644 index 0000000..e69de29 diff --git a/config/prow/config.yaml b/config/prow/config.yaml new file mode 100644 index 0000000..104b27d --- /dev/null +++ b/config/prow/config.yaml @@ -0,0 +1,56 @@ +prowjob_namespace: prow +pod_namespace: test-pods + +deck: + spyglass: + lenses: + - lens: + name: metadata + required_files: + - started.json|finished.json + - lens: + config: + name: buildlog + required_files: + - build-log.txt + - lens: + name: junit + required_files: + - bazel-testlogs/.*/test.xml + - lens: + name: podinfo + required_files: + - podinfo.json + +plank: + job_url_prefix_config: + "*": https://prow.build.resf.org/view/ + report_templates: + '*': >- + [Full PR test history](https://prow.build.resf.org/pr-history?org={{.Spec.Refs.Org}}&repo={{.Spec.Refs.Repo}}&pr={{with index .Spec.Refs.Pulls 0}}{{.Number}}{{end}}). + [Your PR dashboard](https://prow.build.resf.org/pr?query=is:pr+state:open+author:{{with + index .Spec.Refs.Pulls 0}}{{.Author}}{{end}}). + default_decoration_configs: + "*": + gcs_configuration: + bucket: s3://resf-prod-prow-logs + path_strategy: explicit + s3_credentials_secret: s3-credentials + utility_images: + clonerefs: gcr.io/k8s-prow/clonerefs:v20221028-a8625c1f93 + entrypoint: gcr.io/k8s-prow/entrypoint:v20221028-a8625c1f93 + initupload: gcr.io/k8s-prow/initupload:v20221028-a8625c1f93 + sidecar: gcr.io/k8s-prow/sidecar:v20221028-a8625c1f93 + +tide: + queries: + - labels: + - lgtm + - approved + missingLabels: + - needs-rebase + - do-not-merge/hold + - do-not-merge/work-in-progress + - do-not-merge/invalid-owners-file + repos: + - rocky-linux/peridot diff --git a/config/prow/plugins.yaml b/config/prow/plugins.yaml new file mode 100644 index 0000000..d1b2f11 --- /dev/null +++ b/config/prow/plugins.yaml @@ -0,0 +1,28 @@ +plugins: + rocky-linux/peridot: + plugins: + - approve + - assign + - blunderbuss + - cat + - config-updater + - dog + - help + - heart + - hold + - label + - lgtm + - trigger + - verify-owners + - wip + - yuks + +config_updater: + maps: + config/prow/config.yaml: + name: config + config/prow/plugins.yaml: + name: plugins + config/jobs/**/*.{yaml,yml}: + name: job-config + gzip: true