diff --git a/OWNERS b/OWNERS new file mode 100644 index 00000000..0a32842e --- /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 00000000..c6537c44 --- /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 00000000..e69de29b diff --git a/config/jobs/BUILD.bazel b/config/jobs/BUILD.bazel new file mode 100644 index 00000000..e69de29b diff --git a/config/jobs/presubmits.yaml b/config/jobs/presubmits.yaml new file mode 100644 index 00000000..3d182cb0 --- /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 00000000..e69de29b diff --git a/config/prow/config.yaml b/config/prow/config.yaml new file mode 100644 index 00000000..383d42a8 --- /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/labels.yaml b/config/prow/labels.yaml new file mode 100644 index 00000000..eb138bf0 --- /dev/null +++ b/config/prow/labels.yaml @@ -0,0 +1,3 @@ +labels: + - color: 00ff00 + name: lgtm diff --git a/config/prow/plugins.yaml b/config/prow/plugins.yaml new file mode 100644 index 00000000..ef151321 --- /dev/null +++ b/config/prow/plugins.yaml @@ -0,0 +1,35 @@ +plugins: + rocky-linux/peridot: + plugins: + - approve + - assign + - blunderbuss + - cat + - config-updater + - dog + - help + - heart + - hold + - label + - lgtm + - trigger + - verify-owners + - wip + - yuks + +external_plugins: + rocky-linux/peridot: + - name: needs-rebase + events: + - issue_comment + - pull_request + +config_updater: + maps: + config/prow/config.yaml: + name: config + config/prow/plugins.yaml: + name: plugins + config/jobs/**/*.{yaml,yml}: + name: job-config + gzip: true