github.com/cilium/cilium@v1.16.2/operator/cmd/provider_operator_register.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright Authors of Cilium 3 4 //go:build ipam_provider_operator 5 6 package cmd 7 8 import ( 9 // These dependencies should be included only when this file is included in the build. 10 "github.com/cilium/cilium/pkg/ipam/allocator/clusterpool" 11 "github.com/cilium/cilium/pkg/ipam/allocator/multipool" 12 ipamOption "github.com/cilium/cilium/pkg/ipam/option" 13 ) 14 15 func init() { 16 allocatorProviders[ipamOption.IPAMClusterPool] = &clusterpool.AllocatorOperator{} 17 allocatorProviders[ipamOption.IPAMMultiPool] = &multipool.Allocator{} 18 }