Skip to content

Releases: openmcp-project/controller-utils

Release v0.23.0

07 Oct 14:29
57cba28

Choose a tag to compare

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 the ReconcileResult and return a smart requeue value, which will then overwrite the value from the ReconcileResult. This allows determining the smart requeue value based on the object's updated conditions, which was complicated to achieve before this change.
  • 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

Release v0.22.0

18 Sep 09:13
60c1340

Choose a tag to compare

Changes included in v0.22.0:

🚀 Features

  • add exact name predicate #149
    • [DEVELOPER][FEATURE] The pkg/controller library now has an ExactNamePredicate that allows to filter for a specific name and namespace.
  • add constant for k8s max name length #148
    • [DEVELOPER][FEATURE] The pkg/controller package now has a constant K8sMaxNameLength that holds the maximum length for k8s resource names. This is useful in combination with the package's ShortenToXCharacters function.
    • [DEVELOPER][FEATURE] In addition to the pkg/controller package's ShortenToXCharacters function, there is now also a ShortenToXCharactersUnsafe function which panics instead of returning an error if something goes wrong.
  • add func to shorten strings, deprecate old hash funcs #145
    • [DEVELOPER][FEATURE] feat: add func to shorten strings
      chore: deprecate old hash funcs

Release v0.21.0

18 Sep 09:13
0bf878c

Choose a tag to compare

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

Release v0.20.0

11 Sep 09:14
a7d231f

Choose a tag to compare

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's Logger now has a LogRequeue function that can be used to easily log a message if the object that was just reconciled is going to be requeued.

Release v0.19.0

01 Sep 11:17
203a320

Choose a tag to compare

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

26 Aug 13:00
ab737d7

Choose a tag to compare

Changes included in v0.18.0:

🚀 Features

  • release v0.18.0 #121.
  • [feature] [developer] add unsafe k8s uuid functions #115: Added K8sNameUUIDUnsafe and K8sObjectUUIDUnsafe alternatives for the K8sNameUUID and K8sObjectUUID 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

12 Aug 13:42
d278ace

Choose a tag to compare

Changes included in v0.17.0:

🚀 Features

  • release v0.17.0 #110.
  • [feature] [developer] add function to generate oidc-based kubeconfig #108: The pkg/clusteraccess package now contains a CreateOIDCKubeconfig function that can be used to generate a kubeconfig that uses the oidc-login kubectl plugin to authenticate via OIDC.

Release v0.16.0

07 Aug 17:34
8d3c959

Choose a tag to compare

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 the pkg/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

05 Aug 10:49
c0325d3

Choose a tag to compare

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 the ReconcileResult.

🚀 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 a ConditionsToRemove 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.

Release v0.14.0

30 Jul 12:23
769686d

Choose a tag to compare

Changes included in v0.14.0:

🚀 Features

  • release v0.14.0 #100.
  • add map containment utility functions #98.
  • move smartrequeue lib from kind clusterprovider #99.