Skip to content

Commit 0b56bc6

Browse files
authored
feat: Run hooks in parallel with aggregated responses (#855)
This commit runs lifecycle hooks in parallel and aggregates the results. All hooks are run and responses are aggregated. This removes the ordering of hooks, as any single failure will result in all hooks being called again by CAPI cluster topology controller.
1 parent 8354e0c commit 0b56bc6

File tree

11 files changed

+614
-248
lines changed

11 files changed

+614
-248
lines changed

api/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
module github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api
55

6-
go 1.21
6+
go 1.22
77

88
toolchain go1.22.5
99

common/go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
module github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/common
55

6-
go 1.21
6+
go 1.22
77

88
toolchain go1.22.5
99

@@ -15,6 +15,7 @@ require (
1515
github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api v0.0.0-00010101000000-000000000000
1616
github.com/onsi/ginkgo/v2 v2.20.0
1717
github.com/onsi/gomega v1.34.1
18+
github.com/samber/lo v1.47.0
1819
github.com/spf13/pflag v1.0.5
1920
github.com/stretchr/testify v1.9.0
2021
gomodules.xyz/jsonpatch/v2 v2.4.0

common/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k
122122
github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo=
123123
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
124124
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
125+
github.com/samber/lo v1.47.0 h1:z7RynLwP5nbyRscyvcD043DWYoOcYRv3mV8lBeqOCLc=
126+
github.com/samber/lo v1.47.0/go.mod h1:RmDH9Ct32Qy3gduHQuKJ3gW1fMHAnE/fAzQuf6He5cU=
125127
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
126128
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
127129
github.com/stoewer/go-strcase v1.2.0 h1:Z2iHWqGXH00XYgqDmNgQbIBxf3wrNq0F3feEy0ainaU=

common/pkg/capi/clustertopology/handlers/lifecycle/ordered.go

Lines changed: 0 additions & 236 deletions
This file was deleted.

0 commit comments

Comments
 (0)