Skip to content

feat/PL 6131/operator compat#282

Merged
davidmdm merged 2 commits into
masterfrom
feat/PL-6131/operator-compat
Jun 17, 2026
Merged

feat/PL 6131/operator compat#282
davidmdm merged 2 commits into
masterfrom
feat/PL-6131/operator-compat

Conversation

@davidmdm

@davidmdm davidmdm commented Jun 17, 2026

Copy link
Copy Markdown
Contributor
  • feat(PL-6131): make Project CR operator compatible with apimachinery meta
  • fix(PL-6131): fix release.chart by making it optional for operator compat

Note

Low Risk
Two struct-tag changes affect serialization only; no runtime logic or validation paths are modified in this diff.

Overview
Aligns Project and Release API types with Kubernetes operator / apimachinery expectations via struct tag tweaks only.

Project: The embedded metav1.ObjectMeta on ProjectMetadata no longer carries a separate json:"metadata" on the inline field—only yaml:",inline"—so JSON encoding matches how nested metadata is expected for CRD-style resources.

Release: ReleaseSpec.Chart JSON encoding adds omitzero, so an unset/zero ReleaseChart is omitted from JSON instead of always serializing chart, treating chart as optional for operator consumers.

Reviewed by Cursor Bugbot for commit 18e84db. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 129468e. Configure here.

Comment thread api/v1alpha1/project.go Outdated
@davidmdm davidmdm force-pushed the feat/PL-6131/operator-compat branch from 75f9cf2 to 18e84db Compare June 17, 2026 20:40
@davidmdm davidmdm merged commit a98d7d4 into master Jun 17, 2026
7 checks passed
@davidmdm davidmdm deleted the feat/PL-6131/operator-compat branch June 17, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants