github.com/cilium/cilium@v1.16.2/operator/cmd/provider_aws_register.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Cilium
     3  
     4  //go:build ipam_provider_aws
     5  
     6  package cmd
     7  
     8  import (
     9  	// These dependencies should be included only when this file is included in the build.
    10  	allocatorAWS "github.com/cilium/cilium/pkg/ipam/allocator/aws" // AWS allocator.
    11  	ipamOption "github.com/cilium/cilium/pkg/ipam/option"
    12  	_ "github.com/cilium/cilium/pkg/policy/groups/aws" // Register AWS policy group provider.
    13  )
    14  
    15  func init() {
    16  	allocatorProviders[ipamOption.IPAMENI] = &allocatorAWS.AllocatorAWS{}
    17  }