Skip to content

Copy only YAML files when syncing CRDs - #5309

Merged
caseydavenport merged 1 commit into
tigera:release-v1.42from
caseydavenport:casey-crd-sync-yaml-142
Sep 10, 2026
Merged

Copy only YAML files when syncing CRDs#5309
caseydavenport merged 1 commit into
tigera:release-v1.42from
caseydavenport:casey-crd-sync-yaml-142

Conversation

@caseydavenport

Copy link
Copy Markdown
Member

Description

Bug fix. The CRD sync copies every file out of the upstream CRD directories, so it picked up the Go files that sit alongside the generated YAML. The operator parses everything in those directories as CRDs, which made it panic at startup. This restricts the copy to YAML files.

Cherry-pick of #5307. This branch pins both products to tags that predate the Go files, so the sync output is unchanged here.

Affects the version sync only, not the shipped operator.

Release Note

NONE

For PR author

  • Tests for change.
  • If changing pkg/apis/, run make gen-files
  • If changing versions, run make gen-versions

For PR reviewers

A note for code reviewers - all pull requests must have the following:

  • Milestone set according to targeted release.
  • Appropriate labels:
    • kind/bug if this is a bugfix.
    • kind/enhancement if this is a a new feature.
    • enterprise if this PR applies to Calico Enterprise only.

The upstream CRD directories also hold Go source, which is not CRD content.
Copilot AI lite review requested due to automatic review settings September 10, 2026 16:59
@caseydavenport
caseydavenport requested a review from a team as a code owner September 10, 2026 16:59
@marvin-tigera marvin-tigera added this to the v1.42.7 milestone Sep 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@caseydavenport
caseydavenport merged commit 66b2080 into tigera:release-v1.42 Sep 10, 2026
4 of 5 checks passed
@caseydavenport
caseydavenport deleted the casey-crd-sync-yaml-142 branch September 10, 2026 17:57
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.

3 participants