Skip to content
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

🐛 Revert alpha2 crd #735

Merged
merged 16 commits into from
Jul 24, 2024
Merged

🐛 Revert alpha2 crd #735

merged 16 commits into from
Jul 24, 2024

Conversation

jortel
Copy link
Contributor

@jortel jortel commented Jul 23, 2024

Removed v1alpha2.
Adds 0.5 fields to v1alpha1 as optional.
Update the hub to use v1alpah1.
Updates CR status to support conditions.
The addon controller will perform migration to ensure the addon.Container is populated.
The task manager will wait until resources have been reconciled.


Moved api/reflect/field.go Fields() to new reflect package at the root.
Added new functions:

  • HasField()
  • Select()
  • Omit

My main concern was the the task manager is using Select() to restrict Save() specific fields. The "Error" fields as incorrect (should be "Errors") and silently didn't update the field.


This won't pass CI without operator changes.

jortel added 11 commits July 23, 2024 08:58
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
@jortel jortel marked this pull request as ready for review July 23, 2024 22:53
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
@jortel jortel added this to the v0.5.0 milestone Jul 24, 2024
@jortel jortel requested a review from mansam July 24, 2024 03:01
}

// Migrate specification as needed.
func (r *Addon) Migrate() (updated bool) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

hint: moved this from the controller here.

Copy link
Collaborator

@mansam mansam left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants