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

migrate label sync #32948

Merged
merged 3 commits into from
Jul 12, 2024
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
periodics:
- cron: "17 * * * *" # Every hour at 17 minutes past the hour
name: ci-test-infra-label-sync
cluster: k8s-infra-prow-build-trusted
labels:
app: label-sync
decorate: true
spec:
containers:
- name: label-sync
image: gcr.io/k8s-prow/label_sync:v20240513-a9bd71bf01
command:
- label_sync
args:
- --config=/etc/config/labels.yaml
- --confirm=true
- --orgs=kubernetes,kubernetes-client,kubernetes-csi,kubernetes-sigs
- --token=/etc/github/token
- --endpoint=http://ghproxy.default.svc.cluster.local
- --endpoint=https://api.github.com
- --debug
volumeMounts:
- name: github
mountPath: /etc/github
readOnly: true
- name: config
mountPath: /etc/config
readOnly: true
volumes:
- name: github
secret:
secretName: k8s-github-robot-github-token
- name: config
configMap:
name: label-config
annotations:
testgrid-num-failures-to-alert: '6'
testgrid-alert-stale-results-hours: '12'
testgrid-dashboards: sig-testing-misc
testgrid-tab-name: label_sync
testgrid-alert-email: [email protected], [email protected]
BenTheElder marked this conversation as resolved.
Show resolved Hide resolved
description: Runs label_sync to synchronize GitHub repo labels with the label config defined in label_sync/labels.yaml.
41 changes: 0 additions & 41 deletions config/jobs/kubernetes/test-infra/test-infra-trusted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -480,47 +480,6 @@ periodics:
testgrid-tab-name: branchprotector
testgrid-alert-email: [email protected], [email protected]
description: Runs Prow's branchprotector to apply configured GitHub status context requirements and merge policies.
- cron: "17 * * * *" # Every hour at 17 minutes past the hour
name: ci-test-infra-label-sync
cluster: test-infra-trusted
labels:
app: label-sync
decorate: true
spec:
containers:
- name: label-sync
image: gcr.io/k8s-prow/label_sync:v20240513-a9bd71bf01
command:
- label_sync
args:
- --config=/etc/config/labels.yaml
- --confirm=true
- --orgs=kubernetes,kubernetes-client,kubernetes-csi,kubernetes-sigs
- --token=/etc/github/oauth
- --endpoint=http://ghproxy.default.svc.cluster.local
- --endpoint=https://api.github.com
- --debug
volumeMounts:
- name: oauth
mountPath: /etc/github
readOnly: true
- name: config
mountPath: /etc/config
readOnly: true
volumes:
- name: oauth
secret:
secretName: oauth-token
- name: config
configMap:
name: label-config
annotations:
testgrid-num-failures-to-alert: '6'
testgrid-alert-stale-results-hours: '12'
testgrid-dashboards: sig-testing-misc
testgrid-tab-name: label_sync
testgrid-alert-email: [email protected], [email protected]
description: Runs label_sync to synchronize GitHub repo labels with the label config defined in label_sync/labels.yaml.
- cron: "17 */6 * * *" # Every 6 hours at 17 minutes past the hour
name: ci-test-infra-gencred-refresh-kubeconfig
cluster: test-infra-trusted
Expand Down
2 changes: 0 additions & 2 deletions docs/job-migration-todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ For more context, see the announcement thread at https://groups.google.com/a/kub
|config/jobs/kubernetes-sigs/cluster-api-provider-azure/cluster-api-provider-azure-presubmits-main.yaml|pull-cluster-api-provider-azure-e2e|[Search Results](https://cs.k8s.io/?q=name%3A%20pull-cluster-api-provider-azure-e2e%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes-sigs/cluster-api-provider-azure/cluster-api-provider-azure-presubmits-main.yaml|pull-cluster-api-provider-azure-e2e-aks|[Search Results](https://cs.k8s.io/?q=name%3A%20pull-cluster-api-provider-azure-e2e-aks%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes-sigs/cluster-api-provider-azure/cluster-api-provider-azure-presubmits-main.yaml|pull-cluster-api-provider-azure-e2e-optional|[Search Results](https://cs.k8s.io/?q=name%3A%20pull-cluster-api-provider-azure-e2e-optional%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes-sigs/cluster-api-provider-azure/cluster-api-provider-azure-presubmits-main.yaml|pull-cluster-api-provider-azure-e2e-with-wi-optional|[Search Results](https://cs.k8s.io/?q=name%3A%20pull-cluster-api-provider-azure-e2e-with-wi-optional%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes-sigs/cluster-api-provider-azure/cluster-api-provider-azure-presubmits-main.yaml|pull-cluster-api-provider-azure-e2e-workload-upgrade|[Search Results](https://cs.k8s.io/?q=name%3A%20pull-cluster-api-provider-azure-e2e-workload-upgrade%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes-sigs/cluster-api-provider-azure/cluster-api-provider-azure-presubmits-main.yaml|pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts-serial-slow|[Search Results](https://cs.k8s.io/?q=name%3A%20pull-cluster-api-provider-azure-windows-containerd-upstream-with-ci-artifacts-serial-slow%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes-sigs/cluster-api-provider-azure/cluster-api-provider-azure-presubmits-main.yaml|pull-cluster-api-provider-azure-windows-custom-builds|[Search Results](https://cs.k8s.io/?q=name%3A%20pull-cluster-api-provider-azure-windows-custom-builds%24&i=nope&files=&excludeFiles=&repos=)|
Expand Down Expand Up @@ -429,7 +428,6 @@ For more context, see the announcement thread at https://groups.google.com/a/kub
|config/jobs/kubernetes/test-infra/test-infra-trusted.yaml|ci-test-infra-autobump-prow-for-auto-deploy|[Search Results](https://cs.k8s.io/?q=name%3A%20ci-test-infra-autobump-prow-for-auto-deploy%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes/test-infra/test-infra-trusted.yaml|ci-test-infra-branchprotector|[Search Results](https://cs.k8s.io/?q=name%3A%20ci-test-infra-branchprotector%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes/test-infra/test-infra-trusted.yaml|ci-test-infra-gencred-refresh-kubeconfig|[Search Results](https://cs.k8s.io/?q=name%3A%20ci-test-infra-gencred-refresh-kubeconfig%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes/test-infra/test-infra-trusted.yaml|ci-test-infra-label-sync|[Search Results](https://cs.k8s.io/?q=name%3A%20ci-test-infra-label-sync%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes/test-infra/test-infra-trusted.yaml|ci-test-infra-rotate-legacy-default-build-sa-json-key|[Search Results](https://cs.k8s.io/?q=name%3A%20ci-test-infra-rotate-legacy-default-build-sa-json-key%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes/test-infra/test-infra-trusted.yaml|ci-test-infra-update-slack-oncall|[Search Results](https://cs.k8s.io/?q=name%3A%20ci-test-infra-update-slack-oncall%24&i=nope&files=&excludeFiles=&repos=)|
|config/jobs/kubernetes/test-infra/test-infra-trusted.yaml|post-test-infra-deploy-prow|[Search Results](https://cs.k8s.io/?q=name%3A%20post-test-infra-deploy-prow%24&i=nope&files=&excludeFiles=&repos=)|
Expand Down
4 changes: 1 addition & 3 deletions label_sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ go run ./label_sync \

## Our Deployment

We run this as a [`Periodic
job`](https://prow.k8s.io?job=ci-test-infra-label-sync) as configured at
[test-infra-trusted.yaml](https://github.com/kubernetes/test-infra/blob/0aa0d7b9cee8832e9eca748952131baaa809351c/config/jobs/kubernetes/test-infra/test-infra-trusted.yaml#L702).
We run this as a [`Periodic job`](https://prow.k8s.io?job=ci-test-infra-label-sync) `ci-test-infra-label-sync` configured under `config/jobs`.

This job read [`labels.yaml`](./labels.yaml) from a ConfigMap that is updated by
the [prow updateconfig plugin](/prow/plugins/updateconfig).
Expand Down