-
Notifications
You must be signed in to change notification settings - Fork 87
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
Adopt k8s standardized conditions in apis/meta #44
Conversation
apis/meta/conditions.go
Outdated
|
||
// GetCondition returns the Condition from the given slice that matches the | ||
// given type. | ||
func GetCondition(conditions []Condition, conditionType string) *Condition { |
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.
Uncertain if to keep this and refactor so it's just a wrapper for FindStatusCondition or just ditch it (as is done now) and switch to that one directly where applicable.
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.
I think this is fine, we should be using FindStatusCondition.
Use the newly introduced standardized Condition type kubernetes/enhancements#1624 Signed-off-by: Aurel Canciu <[email protected]>
Signed-off-by: Aurel Canciu <[email protected]>
Signed-off-by: Aurel Canciu <[email protected]>
21c5512
to
20138fb
Compare
Question: once this is out, will consumer API packages need a version bump (e.g. from v1alpha1 to v1alpha2)? My hunch is that it's not the case considering the interface is preserved (aside from the addition of the ObservedGeneration and that should ensure backward compatibility I assume. Example: fluxcd/image-reflector-controller#41 |
@relu this is not a break change so I would keep all the APIs versions as they are. |
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.
LGTM
Thanks @relu 🏅
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.
Next package release should be a MINOR update given the breaking changes to the API.
Use the newly introduced standardized Condition type kubernetes/enhancements#1624
Relates to fluxcd/flux2#225