Skip to content

Fix API sync to exclude monorepo-only files and preserve Makefile#180

Merged
caseydavenport merged 5 commits intomasterfrom
casey/fix-api-sync-exclude-monorepo-dirs
Mar 3, 2026
Merged

Fix API sync to exclude monorepo-only files and preserve Makefile#180
caseydavenport merged 5 commits intomasterfrom
casey/fix-api-sync-exclude-monorepo-dirs

Conversation

@caseydavenport
Copy link
Member

Same fix as projectcalico/api#117.

The upstream calico/api directory now has config/, admission/, and patches/
directories that are monorepo-only. The blanket cp -r was copying them into the
standalone repo, and the upstream Makefile now requires kind for ut, breaking
CI.

Two fixes in Makefile.local:

  • Add rm -rf config/ admission/ patches/ after the cp -r
  • Add Makefile to KEEP_LOCAL_FILES

The upstream calico/api directory now has config/, admission/, and
patches/ dirs that are monorepo-only, and bgpfilter_test.go requires
a kind cluster. The blanket cp -r was copying them into the standalone
repo, creating noisy PR diffs and breaking CI.

Add cleanup in pull-upstream-changes for monorepo-only dirs and files,
and add Makefile to KEEP_LOCAL_FILES so the standalone version isn't
overwritten.
@caseydavenport caseydavenport force-pushed the casey/fix-api-sync-exclude-monorepo-dirs branch from e29a071 to fdb9b65 Compare March 3, 2026 21:02
Restores the standalone ut target (no kind cluster dependency), removes
CALICO_API_GROUP and KIND_CONFIG vars, removes CRD generation steps
from gen-files. Adds deepcopy-gen for usage.tigera.io/v1 which is a
new API type that needs to be generated standalone.
@caseydavenport caseydavenport merged commit e24d720 into master Mar 3, 2026
2 checks passed
@caseydavenport caseydavenport deleted the casey/fix-api-sync-exclude-monorepo-dirs branch March 3, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants