Skip to content

Commit

Permalink
Move update-ec2-apdater-limit-via-api flag to be on the cilium-operat…
Browse files Browse the repository at this point in the history
…or-aws binary

Signed-off-by: Vlad Ungureanu <vladu@palantir.com>
  • Loading branch information
ungureanuvladvictor authored and aanm committed Jul 6, 2020
1 parent 9c08abd commit 9bc07f4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Documentation/cmdref/cilium-operator-azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ cilium-operator-azure [flags]
--synchronize-k8s-nodes Synchronize Kubernetes nodes to kvstore and perform CNP GC (default true)
--synchronize-k8s-services Synchronize Kubernetes services to kvstore (default true)
--unmanaged-pod-watcher-interval int Interval to check for unmanaged kube-dns pods (0 to disable) (default 15)
--update-ec2-apdater-limit-via-api Use the EC2 API to update the instance type to adapter limits
--version Print version information
```

1 change: 0 additions & 1 deletion Documentation/cmdref/cilium-operator-generic.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ cilium-operator-generic [flags]
--synchronize-k8s-nodes Synchronize Kubernetes nodes to kvstore and perform CNP GC (default true)
--synchronize-k8s-services Synchronize Kubernetes services to kvstore (default true)
--unmanaged-pod-watcher-interval int Interval to check for unmanaged kube-dns pods (0 to disable) (default 15)
--update-ec2-apdater-limit-via-api Use the EC2 API to update the instance type to adapter limits
--version Print version information
```

3 changes: 0 additions & 3 deletions operator/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ func init() {
flags.Int64(operatorOption.ParallelAllocWorkers, defaults.ParallelAllocWorkers, "Maximum number of parallel IPAM workers")
option.BindEnv(operatorOption.ParallelAllocWorkers)

flags.Bool(operatorOption.UpdateEC2AdapterLimitViaAPI, false, "Use the EC2 API to update the instance type to adapter limits")
option.BindEnv(operatorOption.UpdateEC2AdapterLimitViaAPI)

// Clustermesh dedicated flags
flags.Int(option.ClusterIDName, 0, "Unique identifier of the cluster")
option.BindEnv(option.ClusterIDName)
Expand Down
3 changes: 3 additions & 0 deletions operator/provider_aws_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ func init() {
flags.Var(option.NewNamedMapOptions(operatorOption.ENITags, &operatorOption.Config.ENITags, nil),
operatorOption.ENITags, "ENI tags in the form of k1=v1 (multiple k/v pairs can be passed by repeating the CLI flag)")
option.BindEnv(operatorOption.ENITags)

flags.Bool(operatorOption.UpdateEC2AdapterLimitViaAPI, false, "Use the EC2 API to update the instance type to adapter limits")
option.BindEnv(operatorOption.UpdateEC2AdapterLimitViaAPI)
}

0 comments on commit 9bc07f4

Please sign in to comment.