Skip to content

Auto: sync versions [master] - #5304

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

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

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 9, 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 9, 2026 18:10
@github-actions
github-actions Bot requested a review from a team as a code owner September 9, 2026 18:10

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.

🟡 Changes recommended

The CRD schema tightening (removing Degraded from an enum) and the new admission embed helper naming issues should be addressed/confirmed to avoid upgrade-time validation problems and reduce confusion.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Automated sync PR that refreshes generated/imported CRDs and related assets on master (via make gen-versions), including introducing small Go helpers for serving embedded YAML content.

Changes:

  • Add new embed.go helpers to expose generated Calico/Enterprise CRD YAMLs as fs.FS.
  • Add new embed.go helpers to expose generated admission policy YAMLs as fs.FS.
  • Tighten the ApplicationLayer WAF CRD schema by removing Degraded from the securityPosture enum in multiple generated CRD YAMLs.
File summaries
File Description
pkg/imports/crds/enterprise/v3.projectcalico.org/embed.go New helper package to embed Enterprise v3 projectcalico.org CRD YAMLs.
pkg/imports/crds/enterprise/v1.crd.projectcalico.org/embed.go New helper package to embed Enterprise v1 crd.projectcalico.org CRD YAMLs.
pkg/imports/crds/enterprise/v1.crd.projectcalico.org/applicationlayer.projectcalico.org_wafvalidationpolicies.yaml Removes Degraded from securityPosture enum (schema tightening).
pkg/imports/crds/enterprise/v1.crd.projectcalico.org/applicationlayer.projectcalico.org_wafpolicies.yaml Removes Degraded from securityPosture enum (schema tightening).
pkg/imports/crds/enterprise/applicationlayer.projectcalico.org/applicationlayer.projectcalico.org_wafvalidationpolicies.yaml Removes Degraded from securityPosture enum (schema tightening).
pkg/imports/crds/enterprise/applicationlayer.projectcalico.org/applicationlayer.projectcalico.org_wafpolicies.yaml Removes Degraded from securityPosture enum (schema tightening).
pkg/imports/crds/calico/v3.projectcalico.org/embed.go New helper package to embed Calico v3 projectcalico.org CRD YAMLs.
pkg/imports/crds/calico/v1.crd.projectcalico.org/embed.go New helper package to embed Calico v1 crd.projectcalico.org CRD YAMLs.
pkg/imports/admission/enterprise/embed.go New helper package to embed Enterprise admission policy YAMLs.
pkg/imports/admission/calico/embed.go New helper package to embed Calico admission policy YAMLs.
Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 6
  • 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 360 to 364
enum:
- Compliant
- Warning
- Degraded
- Critical
type: string
Comment on lines 185 to 189
enum:
- Compliant
- Warning
- Degraded
- Critical
type: string
Comment on lines 360 to 364
enum:
- Compliant
- Warning
- Degraded
- Critical
type: string
Comment on lines 185 to 189
enum:
- Compliant
- Warning
- Degraded
- Critical
type: string
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
}
Copilot AI review requested due to automatic review settings September 10, 2026 08:10
@github-actions
github-actions Bot force-pushed the auto-sync-versions-master branch from f1156f1 to 0a539fa Compare September 10, 2026 08:10
@marvin-tigera

Copy link
Copy Markdown
Contributor

Removing "merge-when-ready" label due to new commits

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.

🔵 Needs a closer look

It updates installed CRD schemas (potentially affecting upgrade/runtime validation) and should receive a final human review despite being generated.

Review details

Suppressed comments (2)

pkg/imports/admission/calico/embed.go:29

  • The embedded filesystem variable is named crds, but this package embeds admission policy YAML, not CRDs. Renaming the variable would avoid confusion for future readers.
//go:embed *.yaml
var crds embed.FS

// FS returns the admission policy YAML in this directory.
func FS() fs.FS {
	return crds

pkg/imports/admission/enterprise/embed.go:29

  • The embedded filesystem variable is named crds, but this package embeds admission policy YAML, not CRDs. Renaming the variable would avoid confusion for future readers.
//go:embed *.yaml
var crds embed.FS

// FS returns the admission policy YAML in this directory.
func FS() fs.FS {
	return crds
  • Files reviewed: 10/10 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

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