Skip to content

Commit 84b666d

Browse files
author
Rahul Sharma
committed
fix readme and helm chart
1 parent c04ffe9 commit 84b666d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ When running k8s clusters within VPC, node specific podCIDRs need to be allowed
176176
##### Example usage in values.yaml
177177
```yaml
178178
routeController:
179-
vpcName: <name of VPC>
179+
vpcNames: <comma separated names of VPCs managed by CCM>
180180
clusterCIDR: 10.0.0.0/8
181181
configureCloudRoutes: true
182182
```

deploy/chart/templates/daemonset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ spec:
3939
{{- if .Values.routeController }}
4040
- --enable-route-controller=true
4141
{{- if .Values.routeController.vpcName }}
42-
- --vpc-name={{ "A valid .Values.routeController.vpcName is required" .Values.routeController.vpcName }}
42+
- --vpc-name={{ .Values.routeController.vpcName }}
4343
{{- end }}
4444
{{- if .Values.routeController.vpcNames }}
45-
- --vpc-names={{ "A valid .Values.routeController.vpcNames is required" .Values.routeController.vpcNames }}
45+
- --vpc-names={{ .Values.routeController.vpcNames }}
4646
{{- end }}
4747
- --configure-cloud-routes={{ default true .Values.routeController.configureCloudRoutes }}
4848
- --cluster-cidr={{ required "A valid .Values.routeController.clusterCIDR is required" .Values.routeController.clusterCIDR }}

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func main() {
8181
// Add Linode-specific flags
8282
command.Flags().BoolVar(&linode.Options.LinodeGoDebug, "linodego-debug", false, "enables debug output for the LinodeAPI wrapper")
8383
command.Flags().BoolVar(&linode.Options.EnableRouteController, "enable-route-controller", false, "enables route_controller for ccm")
84-
command.Flags().StringVar(&linode.Options.VPCName, "vpc-name", "", "[deprecated] vpc name whose routes will be managed by route-controller")
84+
command.Flags().StringVar(&linode.Options.VPCName, "vpc-name", "", "[deprecated: use vpc-names instead] vpc name whose routes will be managed by route-controller")
8585
command.Flags().StringVar(&linode.Options.VPCNames, "vpc-names", "", "comma separated vpc names whose routes will be managed by route-controller")
8686
command.Flags().StringVar(&linode.Options.LoadBalancerType, "load-balancer-type", "nodebalancer", "configures which type of load-balancing to use for LoadBalancer Services (options: nodebalancer, cilium-bgp)")
8787
command.Flags().StringVar(&linode.Options.BGPNodeSelector, "bgp-node-selector", "", "node selector to use to perform shared IP fail-over with BGP (e.g. cilium-bgp-peering=true")

0 commit comments

Comments
 (0)