Skip to content

Auto: sync versions [master] - #5297

Open
github-actions[bot] wants to merge 1 commit into
masterfrom
auto-sync-versions-master
Open

Auto: sync versions [master]#5297
github-actions[bot] wants to merge 1 commit into
masterfrom
auto-sync-versions-master

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Automated sync of versions and CRDs from Calico and Calico Enterprise into
master via make gen-versions.

Triggered by scheduled workflow.

Copilot AI lite review requested due to automatic review settings September 2, 2026 19:07
@github-actions
github-actions Bot requested a review from a team as a code owner September 2, 2026 19:07

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.

🟢 Approval recommended

The changes are straightforward, compile-time safe embed wrappers with only minor naming clarity nits identified.

Pull request overview

This PR is an automated make gen-versions sync into master, adding small Go helper packages that embed generated Calico / Enterprise CRD YAMLs and admission policy YAMLs so other code can consume them via fs.FS.

Changes:

  • Add embed.go helpers for Calico and Enterprise CRD directories (v1.crd.projectcalico.org and v3.projectcalico.org).
  • Add embed.go helpers for Calico and Enterprise admission policy YAML directories.
File summaries
File Description
pkg/imports/crds/enterprise/v3.projectcalico.org/embed.go Embeds Enterprise v3 projectcalico.org CRD YAMLs and exposes them via FS().
pkg/imports/crds/enterprise/v1.crd.projectcalico.org/embed.go Embeds Enterprise v1 crd.projectcalico.org CRD YAMLs and exposes them via FS().
pkg/imports/crds/calico/v3.projectcalico.org/embed.go Embeds Calico v3 projectcalico.org CRD YAMLs and exposes them via FS().
pkg/imports/crds/calico/v1.crd.projectcalico.org/embed.go Embeds Calico v1 crd.projectcalico.org CRD YAMLs and exposes them via FS().
pkg/imports/admission/enterprise/embed.go Embeds Enterprise admission policy YAMLs and exposes them via FS().
pkg/imports/admission/calico/embed.go Embeds Calico admission policy YAMLs and exposes them via FS().
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +24 to +30
//go:embed *.yaml
var crds embed.FS

// FS returns the admission policy YAML in this directory.
func FS() fs.FS {
return crds
}
Comment on lines +24 to +30
//go:embed *.yaml
var crds embed.FS

// FS returns the admission policy YAML in this directory.
func FS() fs.FS {
return crds
}
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