-
Notifications
You must be signed in to change notification settings - Fork 83
🐛 Update Kubernetes list type markers for conditions #413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -172,8 +172,8 @@ type InstallProgression struct { | |
| ConfigReferences []InstallConfigReference `json:"configReferences,omitempty"` | ||
|
|
||
| // conditions describe the state of the managed and monitored components for the operator. | ||
| // +patchMergeKey=type | ||
| // +patchStrategy=merge | ||
| // +listType=map | ||
| // +listMapKey=type | ||
| // +optional | ||
| Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` | ||
|
Comment on lines
+175
to
178
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Search for other Conditions fields in the codebase to check the pattern
rg -n -A1 -B1 'Conditions\s+\[\]metav1\.Condition' --type=goRepository: open-cluster-management-io/api Length of output: 3360 Remove old struct tags now that new markers are in place. The new markers 🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove deprecated struct tag markers.
The struct field still contains the deprecated
patchStrategy:"merge"andpatchMergeKey:"type"in the struct tag. Since you've added the new kubebuilder markers (+listType=mapand+listMapKey=type), the old struct tag markers should be removed for consistency.🔎 Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents