Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions cmd/ipam/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,16 @@ func (o *IPAMServerOptions) Config() (*ipamapiserver.Config, error) {
// healthchecks.
o.RecommendedOptions.Etcd = nil

// Delegating aggregated apiservers defer API Priority and Fairness to the
// main kube-apiserver. Disabling APF here avoids the FlowSchema and
// PriorityLevelConfiguration informers that would otherwise block readyz.
genericConfig.FlowControl = nil

if err := o.RecommendedOptions.ApplyTo(genericConfig); err != nil {
return nil, fmt.Errorf("apply recommended options: %w", err)
}

// Delegating aggregated apiservers defer API Priority and Fairness to the
// main kube-apiserver. ApplyTo may re-initialize FlowControl, so nil it
// out here (after ApplyTo) to prevent the FlowSchema and
// PriorityLevelConfiguration informers from blocking readyz.
genericConfig.FlowControl = nil

codec := ipamapiserver.Codecs.LegacyCodec(ipamapiserver.Scheme.PrioritizedVersionsAllGroups()...)

pgGetter, err := pgstore.NewRESTOptionsGetter(o.PostgresDSN)
Expand Down
Loading