Skip to content

Commit e8be2af

Browse files
Rahul Sharmarahulait
authored andcommitted
address review comments
1 parent d54bcee commit e8be2af

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,14 @@ sessionAffinityConfig:
294294
## Additional environment variables
295295
To tweak CCM based on needs, one can overwrite the default values set for caches and requests by setting appropriate environment variables when applying the manifest or helm chart.
296296

297-
| Environment Variable | Default | Description |
298-
|-----------------------------------|---------|-------------------------------------------------------------|
299-
| `LINODE_INSTANCE_CACHE_TTL` | `15` | Default timeout of instance cache in seconds |
300-
| `LINODE_ROUTES_CACHE_TTL_SECONDS` | `60` | Default timeout of route cache in seconds |
301-
| `LINODE_REQUEST_TIMEOUT_SECONDS` | `120` | Default timeout in seconds for http requests to linode API |
302-
| `LINODE_EXTERNAL_SUBNET` | | Mark private network as external. Example - `172.24.0.0/16` |
297+
| Environment Variable | Default | Description |
298+
|-----------------------------------|-------------|-------------------------------------------------------------|
299+
| `LINODE_INSTANCE_CACHE_TTL` | `15` | Default timeout of instance cache in seconds |
300+
| `LINODE_ROUTES_CACHE_TTL_SECONDS` | `60` | Default timeout of route cache in seconds |
301+
| `LINODE_REQUEST_TIMEOUT_SECONDS` | `120` | Default timeout in seconds for http requests to linode API |
302+
| `LINODE_EXTERNAL_SUBNET` | | Mark private network as external. Example - `172.24.0.0/16` |
303+
| `BGP_CUSTOM_ID_MAP` | | Use your own map instead of default region map for BGP |
304+
| `BGP_PEER_PREFIX` | `2600:3c0f` | Use your own BGP peer prefix instead of default one |
303305

304306
## Generating a Manifest for Deployment
305307
Use the script located at `./deploy/generate-manifest.sh` to generate a self-contained deployment manifest for the Linode CCM. Two arguments are required.

cloud/linode/cilium_loadbalancers.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@ func (l *loadbalancers) getCiliumLBIPPool(ctx context.Context, service *v1.Servi
482482

483483
// NOTE: Cilium CRDs must be installed for this to work
484484
func (l *loadbalancers) ensureCiliumBGPPeeringPolicy(ctx context.Context) error {
485-
if raw, ok := os.LookupEnv("BGPCustomIDMap"); ok {
486-
klog.Info("BGPCustomIDMap env variable specified, using it instead of the default region map")
485+
if raw, ok := os.LookupEnv("BGP_CUSTOM_ID_MAP"); ok {
486+
klog.Info("BGP_CUSTOM_ID_MAP env variable specified, using it instead of the default region map")
487487
if err := json.Unmarshal([]byte(raw), &regionIDMap); err != nil {
488488
return err
489489
}
@@ -551,8 +551,8 @@ func (l *loadbalancers) ensureCiliumBGPPeeringPolicy(ctx context.Context) error
551551
},
552552
}
553553
bgpPeerPrefix := defaultBGPPeerPrefix
554-
if raw, ok := os.LookupEnv("BGPPeerPrefix"); ok {
555-
klog.Info("BGPPeerPrefix env variable specified, using it instead of the default bgpPeer prefix")
554+
if raw, ok := os.LookupEnv("BGP_PEER_PREFIX"); ok {
555+
klog.Info("BGP_PEER_PREFIX env variable specified, using it instead of the default bgpPeer prefix")
556556
bgpPeerPrefix = raw
557557
}
558558
// As in https://github.com/linode/lelastic, there are 4 peers per DC

0 commit comments

Comments
 (0)