Skip to content

Commit

Permalink
Fully drop etcd support (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessekempf-vsco authored Jun 20, 2024
1 parent 1d1a2a7 commit a1723e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ Distributed Feature Flags

## Pre-Release

This is pre-release software. The Consul backend support has been used in production at VSCO for a year, but the Etcd backend should be considered experimental.
This is pre-release software. The Consul backend support has been used in production at VSCO for a year.

As of version 0.4.0-rc0, the etcd backend is no longer supported.

## Overview

Decider is a [feature flag](https://en.wikipedia.org/wiki/Feature_toggle) system with adaptable backends. It supports both `percentile` and `boolean` flags for controlled infrastructure rollouts and kill switches. Decider is built to be adaptable to any backing datastore. At the moment, [Consul](https://www.consul.io/intro/getting-started/kv.html), [Etcd](https://coreos.com/etcd/), and [Redis](http://redis.io/) are supported. [ZooKeeper](https://zookeeper.apache.org/) support is planned.
Decider is a [feature flag](https://en.wikipedia.org/wiki/Feature_toggle) system with adaptable backends. It supports both `percentile` and `boolean` flags for controlled infrastructure rollouts and kill switches. Decider is built to be adaptable to any backing datastore. At the moment, [Consul](https://www.consul.io/intro/getting-started/kv.html) and [Redis](http://redis.io/) are supported.

Decider has four major components.

Expand Down Expand Up @@ -571,7 +573,7 @@ To create a new repository from scratch. Configure the `config.hcl` file with yo
Username = "twoism"
Namespace = "dcdr"
Storage = "consul" // etcd, redis
Storage = "consul" // redis
Consul {
Address = "127.0.0.1:8500"
Expand All @@ -581,10 +583,6 @@ Consul {
// Address = ":6379"
//}
//Etcd {
// Endpoints = ["http://127.0.0.1:2379"]
//}
Watcher {
OutputPath = "/etc/dcdr/decider.json"
}
Expand Down
4 changes: 0 additions & 4 deletions config/config.example.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ Username = "dcdr admin"
Namespace = "dcdr"
Storage = "consul"

//Etcd {
// Endpoints = ["http://127.0.0.1:2379"]
//}

Watcher {
OutputPath = "/etc/dcdr/decider.json"
}
Expand Down
13 changes: 1 addition & 12 deletions config/config.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package config

import (
"fmt"
"io/ioutil"
"os"
"os/user"

"fmt"

"github.com/hashicorp/hcl"
"github.com/vsco/dcdr/cli/printer"
)
Expand Down Expand Up @@ -45,10 +44,6 @@ var ExampleConfig = []byte(`
// Namespace = "dcdr"
// Storage = "consul"
// Etcd {
// Endpoints = ["http://127.0.0.1:2379"]
// }
// Consul {
// Address = "127.0.0.1:8500"
// }
Expand Down Expand Up @@ -86,11 +81,6 @@ type Consul struct {
Address string
}

// Etcd config struct for the etcd store.
type Etcd struct {
Endpoints []string
}

// Redis config struct for the redis store.
type Redis struct {
Address string
Expand Down Expand Up @@ -120,7 +110,6 @@ type Config struct {
Namespace string
Storage string
Consul Consul
Etcd Etcd
Redis Redis
Watcher Watcher
Git Git
Expand Down

0 comments on commit a1723e7

Please sign in to comment.