github.com/cilium/cilium@v1.16.2/pkg/ipam/option/option.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright Authors of Cilium 3 4 package option 5 6 const ( 7 // IPAMKubernetes is the value to select the Kubernetes PodCIDR based 8 // hostscope IPAM mode 9 IPAMKubernetes = "kubernetes" 10 11 // IPAMCRD is the value to select the CRD-backed IPAM plugin for 12 // option.IPAM 13 IPAMCRD = "crd" 14 15 // IPAMENI is the value to select the AWS ENI IPAM plugin for option.IPAM 16 IPAMENI = "eni" 17 18 // IPAMAzure is the value to select the Azure IPAM plugin for 19 // option.IPAM 20 IPAMAzure = "azure" 21 22 // IPAMClusterPool is the value to select the cluster pool mode for 23 // option.IPAM 24 IPAMClusterPool = "cluster-pool" 25 26 // IPAMMultiPool is the value to select the multi pool IPAM mode 27 IPAMMultiPool = "multi-pool" 28 29 // IPAMAlibabaCloud is the value to select the AlibabaCloud ENI IPAM plugin for option.IPAM 30 IPAMAlibabaCloud = "alibabacloud" 31 32 // IPAMDelegatedPlugin is the value to select CNI delegated IPAM plugin mode. 33 // In this mode, Cilium CNI invokes another CNI binary (the delegated plugin) for IPAM. 34 // See https://www.cni.dev/docs/spec/#section-4-plugin-delegation 35 IPAMDelegatedPlugin = "delegated-plugin" 36 ) 37 38 const ( 39 IPAMMarkForRelease = "marked-for-release" 40 IPAMReadyForRelease = "ready-for-release" 41 IPAMDoNotRelease = "do-not-release" 42 IPAMReleased = "released" 43 ) 44 45 // ENIPDBlockSizeIPv4 is the number of IPs available on an ENI IPv4 prefix. Currently, AWS only supports /28 fixed size 46 // prefixes. Every /28 prefix contains 16 IP addresses. 47 // See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-prefix-eni.html#ec2-prefix-basics for more details 48 const ENIPDBlockSizeIPv4 = 16