Skip to content

Commit c00c8c6

Browse files
authored
Merge pull request kubernetes#33866 from aojea/apidiff
add optional presubmit job to run apidiff on the client-go module
2 parents df4f042 + 83e5649 commit c00c8c6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

config/jobs/kubernetes/sig-testing/apidiff.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,40 @@ presubmits:
5656
cpu: 2
5757
memory: 12Gi
5858

59+
- name: pull-kubernetes-apidiff-client-go
60+
cluster: eks-prow-build-cluster
61+
# A job which automatically runs for changes in client-go or the generated code
62+
# to have visibility on the changes that will impact the external projects
63+
# that are using the Kubernetes golang clients
64+
run_if_changed: '(^staging\/src\/k8s.io\/client-go)|(^staging\/src\/k8s.io\/code-generator\/examples)'
65+
optional: true
66+
decorate: true
67+
annotations:
68+
# The apidiff.sh script uses the latest revision of apidiff.
69+
# There is no guarantee that this will continue to work for
70+
# older branches, so let's not even create per-release
71+
# copies of this job.
72+
fork-per-release: "false"
73+
testgrid-dashboards: sig-testing-misc
74+
testgrid-create-test-group: 'true'
75+
path_alias: k8s.io/kubernetes
76+
spec:
77+
containers:
78+
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241128-8df65c072f-master
79+
command:
80+
- runner.sh
81+
args:
82+
- /bin/sh
83+
- -c
84+
- "./hack/apidiff.sh ./staging/src/k8s.io/code-generator/examples ./staging/src/k8s.io/client-go"
85+
resources:
86+
# Memory limits are derived from pull-kubernetes-verify, with less CPUs.
87+
limits:
88+
cpu: 2
89+
memory: 12Gi
90+
requests:
91+
cpu: 2
92+
memory: 12Gi
93+
5994
# A periodic job which shows API diffs for staging repos since the last release
6095
# might be useful. Not done yet.

0 commit comments

Comments
 (0)