Skip to content

Commit 648e2f1

Browse files
author
Rahul Sharma
committed
address review comments
1 parent 84b666d commit 648e2f1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cloud/linode/cloud.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var Options struct {
3535
KubeconfigFlag *pflag.Flag
3636
LinodeGoDebug bool
3737
EnableRouteController bool
38-
// deprecated: use VPCNames instead
38+
// Deprecated: use VPCNames instead
3939
VPCName string
4040
VPCNames string
4141
LoadBalancerType string

deploy/chart/templates/daemonset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ spec:
3838
{{- end }}
3939
{{- if .Values.routeController }}
4040
- --enable-route-controller=true
41+
{{- if and .Values.routeController.vpcName .Values.routeController.vpcNames }}
42+
{{- fail "Both vpcName and vpcNames are set. Please use only vpcNames." }}
43+
{{- end }}
44+
{{- if not (or .Values.routeController.vpcName .Values.routeController.vpcNames) }}
45+
{{- fail "Neither vpcName nor vpcNames is set. Please set one of them." }}
46+
{{- end }}
4147
{{- if .Values.routeController.vpcName }}
4248
- --vpc-name={{ .Values.routeController.vpcName }}
4349
{{- end }}

0 commit comments

Comments
 (0)