Skip to content

Commit

Permalink
ipam: use existing CNPPluralName const
Browse files Browse the repository at this point in the history
Use the const already defined in pkg/k8s/apis/cilium.io/v2 instead of
duplicating the "ciliumnodes" string.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  • Loading branch information
tklauser authored and aanm committed Aug 20, 2020
1 parent 18ac5b5 commit c4e4263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ipam/crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func newNodeStore(nodeName string, conf Configuration, owner Owner, k8sEventReg
ciliumNodeStore := cache.NewStore(cache.DeletionHandlingMetaNamespaceKeyFunc)
ciliumNodeInformer := informer.NewInformerWithStore(
cache.NewListWatchFromClient(ciliumClient.CiliumV2().RESTClient(),
"ciliumnodes", corev1.NamespaceAll, ciliumNodeSelector),
ciliumv2.CNPluralName, corev1.NamespaceAll, ciliumNodeSelector),
&ciliumv2.CiliumNode{},
0,
cache.ResourceEventHandlerFuncs{
Expand Down

0 comments on commit c4e4263

Please sign in to comment.