Releases: openmcp-project/controller-utils
Releases · openmcp-project/controller-utils
Release v0.23.0
Changes included in v0.23.0:
🚀 Features
- conditional smartrequeue #154
- [DEVELOPER][FEATURE] The status updater's
WithSmartRequeue
method now takes functions as optional arguments. These functions take theReconcileResult
and 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/controller
library 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/controller
library now has anExactNamePredicate
that allows to filter for a specific name and namespace.
- [DEVELOPER][FEATURE] The
- add constant for k8s max name length #148
- [DEVELOPER][FEATURE] The
pkg/controller
package now has a constantK8sMaxNameLength
that holds the maximum length for k8s resource names. This is useful in combination with the package'sShortenToXCharacters
function. - [DEVELOPER][FEATURE] In addition to the
pkg/controller
package'sShortenToXCharacters
function, there is now also aShortenToXCharactersUnsafe
function 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/logging
package'sLogger
now has aLogRequeue
function 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
K8sNameUUIDUnsafe
andK8sObjectUUIDUnsafe
alternatives for theK8sNameUUID
andK8sObjectUUID
functions 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
ProjectSliceToMap
function to thepkg/collections
package. 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.
Release v0.15.0
Changes included in v0.15.0:
🔨 Refactoring
- [other] [developer] move smart requeue action into reconcile result #103: The information, how the object should be requeued when the smart requeuing logic is used with the status updater integration has been moved from the
WithSmartRequeue
call into theReconcileResult
.
🚀 Features
- release v0.15.0 #104.
- [feature] [developer] integrate smart requeue logic into status updater #102: The smart requeuing logic is now easier to use in combination with the status updater by using
WithSmartRequeue
.
🔧 Chores
- [feature] [developer] add ConditionsToRemove field to ReconcileResult struct #101: The status updater's
ReconcileResult
struct now has aConditionsToRemove
field that takes a slice of condition types. If the condition updater is configured on the status updater, all conditions with the listed types are removed from the list of conditions.