diff --git a/cli/cmd/inject.go b/cli/cmd/inject.go index ffb4d358b44e2..30ae4db06c675 100644 --- a/cli/cmd/inject.go +++ b/cli/cmd/inject.go @@ -297,6 +297,10 @@ func (options *injectOptions) fetchConfigsOrDefault() (*config.All, error) { // the overrideAnnotations map keeps track of which configs are overridden, by // storing the corresponding annotations and values. func (options *injectOptions) overrideConfigs(configs *config.All, overrideAnnotations map[string]string) { + if options.linkerdVersion != "" { + configs.Global.Version = options.linkerdVersion + } + if len(options.ignoreInboundPorts) > 0 { configs.Proxy.IgnoreInboundPorts = toPorts(options.ignoreInboundPorts) overrideAnnotations[k8s.ProxyIgnoreInboundPortsAnnotation] = parsePorts(configs.Proxy.IgnoreInboundPorts)