Skip to content

Commit

Permalink
daemon: remove deprecated and hidden --sidecar-http-proxy option
Browse files Browse the repository at this point in the history
The --sidecar-http-proxy has been hidden and deprecated since Cilium
1.2.  Using it has no effect apart from a warning being logged. It's
also hidden and doesn't appear in documentation anymore, so remove it.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
  • Loading branch information
tklauser authored and aanm committed Mar 4, 2020
1 parent 6d7f7e1 commit 3b581fe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions daemon/daemon_main.go
Expand Up @@ -566,10 +566,6 @@ func init() {
flags.Bool(option.Restore, true, "Restores state, if possible, from previous daemon")
option.BindEnv(option.Restore)

flags.Bool(option.SidecarHTTPProxy, false, "Disable host HTTP proxy, assuming proxies in sidecar containers")
flags.MarkHidden(option.SidecarHTTPProxy)
option.BindEnv(option.SidecarHTTPProxy)

flags.String(option.SidecarIstioProxyImage, k8s.DefaultSidecarIstioProxyImageRegexp,
"Regular expression matching compatible Istio sidecar istio-proxy container image names")
option.BindEnv(option.SidecarIstioProxyImage)
Expand Down Expand Up @@ -1041,10 +1037,6 @@ func initEnv(cmd *cobra.Command) {
}
}

if option.Config.SidecarHTTPProxy {
log.Warn(`"sidecar-http-proxy" flag is deprecated and has no effect`)
}

k8s.SidecarIstioProxyImageRegexp, err = regexp.Compile(option.Config.SidecarIstioProxyImage)
if err != nil {
log.WithError(err).Fatal("Invalid sidecar-istio-proxy-image regular expression")
Expand Down
5 changes: 0 additions & 5 deletions pkg/option/config.go
Expand Up @@ -330,9 +330,6 @@ const (
// Restore restores state, if possible, from previous daemon
Restore = "restore"

// SidecarHTTPProxy disable host HTTP proxy, assuming proxies in sidecar containers
SidecarHTTPProxy = "sidecar-http-proxy"

// SidecarIstioProxyImage regular expression matching compatible Istio sidecar istio-proxy container image names
SidecarIstioProxyImage = "sidecar-istio-proxy-image"

Expand Down Expand Up @@ -1188,7 +1185,6 @@ type DaemonConfig struct {
PreAllocateMaps bool
IPv6NodeAddr string
IPv4NodeAddr string
SidecarHTTPProxy bool
SidecarIstioProxyImage string
SocketPath string
TracePayloadlen int
Expand Down Expand Up @@ -2149,7 +2145,6 @@ func (c *DaemonConfig) Populate() {
c.DisableEnvoyVersionCheck = viper.GetBool(DisableEnvoyVersionCheck)
c.K8sNamespace = viper.GetString(K8sNamespaceName)
c.MaxControllerInterval = viper.GetInt(MaxCtrlIntervalName)
c.SidecarHTTPProxy = viper.GetBool(SidecarHTTPProxy)
c.PolicyQueueSize = sanitizeIntParam(PolicyQueueSize, defaults.PolicyQueueSize)
c.EndpointQueueSize = sanitizeIntParam(EndpointQueueSize, defaults.EndpointQueueSize)
c.SelectiveRegeneration = viper.GetBool(SelectiveRegeneration)
Expand Down

0 comments on commit 3b581fe

Please sign in to comment.