Skip to content

Commit

Permalink
add an option job that run apidiff in client-go and code-generator/ex…
Browse files Browse the repository at this point in the history
…amples folder
  • Loading branch information
aojea committed Dec 12, 2024
1 parent 5e49da5 commit 4321a11
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions config/jobs/kubernetes/sig-testing/apidiff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,7 @@ presubmits:
args:
- /bin/sh
- -c
# PULL_BASE_SHA is the revision on the target branch that the
# PR gets merged into. What we want instead is the revision at
# which the PR branch diverged from the target branch.
# We get that from "git merge-base".
- "./hack/apidiff.sh -r $(git merge-base ${PULL_BASE_SHA} ${PULL_PULL_SHA}) -t ${PULL_PULL_SHA} ./staging/src/k8s.io/code-generator/examples ./staging/src/k8s.io/client-go"
env:
- name: REPO_DIR
value: /workspace/k8s.io/kubernetes
- "./hack/apidiff.sh ./staging/src/k8s.io/code-generator/examples ./staging/src/k8s.io/client-go"
resources:
# Memory limits are derived from pull-kubernetes-verify, with less CPUs.
limits:
Expand All @@ -97,6 +90,3 @@ presubmits:
requests:
cpu: 2
memory: 12Gi

# A periodic job which shows API diffs for staging repos since the last release
# might be useful. Not done yet.

0 comments on commit 4321a11

Please sign in to comment.