Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Make attache-control a long running sidecar #24

Merged
merged 8 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ $ ./attache-control -help
Usage of ./attache-control:
-attempt-interval duration
Duration to wait between attempts to join or create a cluster (e.g. '1s') (default 3s)
-attempt-limit int
Number of times to join or create a cluster before exiting (default 20)
-await-service-name string
Consul Service for newly created Redis Cluster Nodes, (required)
-consul-acl-token string
Expand Down
5 changes: 0 additions & 5 deletions cmd/attache-control/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ type cliOpts struct {
// cluster.
attemptInterval time.Duration

// attemptLimit is the number of times to attempt joining or creating a cluster before Attache
// should exit as failed.
attemptLimit int

// awaitServiceName is the name of the Consul Service that newly created
// Redis Cluster nodes will join when they're first started but have yet to
// form or join a cluster. This field is required.
Expand Down Expand Up @@ -102,7 +98,6 @@ func ParseFlags() cliOpts {
// CLI
flag.StringVar(&conf.lockPath, "lock-kv-path", "service/attache/leader", "Consul KV path to use as a leader lock for Redis Cluster operations")
flag.DurationVar(&conf.attemptInterval, "attempt-interval", 3*time.Second, "Duration to wait between attempts to join or create a cluster (e.g. '1s')")
flag.IntVar(&conf.attemptLimit, "attempt-limit", 20, "Number of times to attempt join or create a cluster before exiting")
flag.StringVar(&conf.awaitServiceName, "await-service-name", "", "Consul Service for newly created Redis Cluster Nodes, (required)")
flag.StringVar(&conf.destServiceName, "dest-service-name", "", "Consul Service for healthy Redis Cluster Nodes, (required)")
flag.StringVar(&conf.logLevel, "log-level", "info", "Set the log level")
Expand Down
Loading