Skip to content

Commit

Permalink
bug: Fix label-sync configuration (#9382)
Browse files Browse the repository at this point in the history
/kind bug
/area ci

Fix label-sync configuration options by getting YAML file directly from git instead of from local configmap on a cluster
  • Loading branch information
Ressetkk authored Nov 24, 2023
1 parent 4cfcb94 commit c177a03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 246 deletions.
20 changes: 5 additions & 15 deletions prow/jobs/kyma-project/test-infra/prow-periodics.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# Code generated by rendertemplates. DO NOT EDIT.


postsubmits: # runs on main
kyma-project/eventing-tools:

kyma-project/test-infra:
- name: post-test-infra-markdown-index-autobump
annotations:
Expand Down Expand Up @@ -152,6 +147,10 @@ periodics: # runs on schedule
skip_report: false
decorate: true
cluster: trusted-workload
extra_refs:
- org: kyma-project
repo: test-infra
base_ref: main
spec:
containers:
- image: "europe-docker.pkg.dev/kyma-project/prod/k8s-prow/label_sync:v20231120-01b262b8"
Expand All @@ -163,21 +162,12 @@ periodics: # runs on schedule
command:
- "label_sync"
args:
- "--config=/etc/config/labels.yaml"
- "--config=prow/labels.yaml"
- "--confirm=true"
- "--orgs=kyma-project,kyma-incubator"
- "--token=/etc/github/token"
- "--endpoint=http://ghproxy"
- "--endpoint=https://api.github.com"
- "--debug"
volumeMounts:
- name: config
mountPath: /etc/config
readOnly: true
volumes:
- name: config
configMap:
name: label-config
- name: ci-prow-autobump
annotations:
description: "Autobump prow components image versions"
Expand Down
9 changes: 1 addition & 8 deletions prow/plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,8 @@ config_updater:
gzip: true
prow/config.yaml:
name: config
prow/branchprotector-config.yaml:
name: branchprotector-config
prow/plugins.yaml:
name: plugins
prow/labels.yaml:
name: label-config
clusters:
trusted-workload:
- default
configs/kaniko-build-config.yaml:
name: kaniko-build-config
clusters:
Expand Down Expand Up @@ -155,7 +148,7 @@ require_matching_label:
issues: true
missing_comment: |
There is no `kind/` label present. Please add one by using the following command:
- `/kind <kind>
- `/kind <kind>`
Available kinds:
`deprecation`, `bug`, `chore`, `feature`, `flake`, `cleanup`, `missing-test`, `failing-test`
Expand Down
223 changes: 0 additions & 223 deletions templates/data/test-infra/prow-periodics-data.yaml

This file was deleted.

0 comments on commit c177a03

Please sign in to comment.