Releases: openmcp-project/controller-utils
Releases · openmcp-project/controller-utils
Release v0.23.2
Release v0.23.1
Changes included in v0.23.1:
🔧 Chores
- replace illegal chars condition type and reason #160
- [DEVELOPER][FEATURE] Replace illegal characters in condition types and reasons
Release v0.23.0
Changes included in v0.23.0:
🚀 Features
- conditional smartrequeue #154
- [DEVELOPER][FEATURE] The status updater's
WithSmartRequeuemethod now takes functions as optional arguments. These functions take theReconcileResultand return a smart requeue value, which will then overwrite the value from theReconcileResult. This allows determining the smart requeue value based on the object's updated conditions, which was complicated to achieve before this change.
- [DEVELOPER][FEATURE] The status updater's
- add predicates for each specific type of event #151
- [DEVELOPER][FEATURE] The
pkg/controllerlibrary now contains the following new predicates:- OnCreatePredicate() reacts only on create events
- OnDeletePredicate() reacts only on delete events
- OnUpdatePredicate() reacts only on update events
- OnGenericPredicate() reacts only on generic events
- OnEventTypePredicate(eventType) allows to pass in the event type dynamically
- [DEVELOPER][FEATURE] The
Release v0.22.0
Changes included in v0.22.0:
🚀 Features
- add exact name predicate #149
- [DEVELOPER][FEATURE] The
pkg/controllerlibrary now has anExactNamePredicatethat allows to filter for a specific name and namespace.
- [DEVELOPER][FEATURE] The
- add constant for k8s max name length #148
- [DEVELOPER][FEATURE] The
pkg/controllerpackage now has a constantK8sMaxNameLengththat holds the maximum length for k8s resource names. This is useful in combination with the package'sShortenToXCharactersfunction. - [DEVELOPER][FEATURE] In addition to the
pkg/controllerpackage'sShortenToXCharactersfunction, there is now also aShortenToXCharactersUnsafefunction which panics instead of returning an error if something goes wrong.
- [DEVELOPER][FEATURE] The
- add func to shorten strings, deprecate old hash funcs #145
- [DEVELOPER][FEATURE] feat: add func to shorten strings
chore: deprecate old hash funcs
- [DEVELOPER][FEATURE] feat: add func to shorten strings
Release v0.21.0
Changes included in v0.21.0:
🚀 Features
- add func to shorten strings, deprecate old hash funcs #145
- [DEVELOPER][FEATURE] feat: add func to shorten strings
chore: deprecate old hash funcs
- [DEVELOPER][FEATURE] feat: add func to shorten strings
Release v0.20.0
Changes included in v0.20.0:
🚀 Features
- new, shorter hash function for k8s resource names #141
- [DEVELOPER][FEATURE] feat: new, shorter hash function for k8s resource names
- add helper function for logging requeues #137
- [DEVELOPER][FEATURE] The
pkg/loggingpackage'sLoggernow has aLogRequeuefunction that can be used to easily log a message if the object that was just reconciled is going to be requeued.
- [DEVELOPER][FEATURE] The
Release v0.19.0
Changes included in v0.19.0:
🚀 Features
- [feature] [developer] enable skipping clusters in CRD management #125: It is now possible to skip Clusters when using the CRD Management to create/update CRDs.
🐛 Fixes
- [bugfix] [user] avoid invalid condition reasons #127: The condition updater would produce an invalid dummy reason for a condition if that condition's type contained a
., because this is not an allowed character in the condition's reason. This is now avoided by replacing.with:when using the condition's type to construct a dummy reason.
Release v0.18.0
Changes included in v0.18.0:
🚀 Features
- release v0.18.0 #121.
- [feature] [developer] add unsafe k8s uuid functions #115: Added
K8sNameUUIDUnsafeandK8sObjectUUIDUnsafealternatives for theK8sNameUUIDandK8sObjectUUIDfunctions that panic instead of returning an error. - [feature] [user] new hash function for k8s resource names #114: feat: new hash function for k8s resource names
Release v0.17.0
Changes included in v0.17.0:
🚀 Features
Release v0.16.0
Changes included in v0.16.0:
🔧 Chores
- [other] [dependency] use ginkgo V2 and release v0.16.0 ##106: Upgrade dependency github.com/onsi/ginkgo/v2
- [feature] [developer] add ProjectSliceToMap function ##94: Added a
ProjectSliceToMapfunction to thepkg/collectionspackage. This is useful for turning lists with identifiable items into maps with the identifiers as key, for example.
```breaking developer
For better naming consistency, `ProjectSlice` has been renamed to `ProjectSliceToSlice`. The old function is deprecated and will be removed in the future.