Skip to content

Commit 08ef8ed

Browse files
committed
reviewed
1 parent cdfc4c5 commit 08ef8ed

23 files changed

Lines changed: 5758 additions & 618 deletions

cmd/aws-k8s-agent/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ func _main() int {
144144
}
145145
// Measure node initialization duration
146146
IPAMDNodeInitStartTime := time.Now()
147-
ipamContext, err := ipamd.New(k8sClient, withApiServer)
147+
ctx := context.Background()
148+
ipamContext, err := ipamd.New(ctx, k8sClient, withApiServer)
148149
IPAMDNodeInitDuration := time.Since(IPAMDNodeInitStartTime).Seconds()
149150

150151
if err != nil {
@@ -164,7 +165,7 @@ func _main() int {
164165
}
165166

166167
// Pool manager
167-
go ipamContext.StartNodeIPPoolManager()
168+
go ipamContext.StartNodeIPPoolManager(ctx)
168169

169170
if !utils.GetBoolAsStringEnvVar(envDisableMetrics, false) {
170171
// Prometheus metrics

cmd/routed-eni-cni-plugin/driver/mocks/driver_mocks.go

Lines changed: 33 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)