Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully drop etcd support #90

Merged
merged 1 commit into from
Jun 20, 2024
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
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
Loading