File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments