mirror of https://github.com/status-im/consul.git
Remove service_subset field from ingress config entry
We decided that this was not a useful MVP feature, and just added unnecessary complexity
This commit is contained in:
parent
711d1389aa
commit
b73a13fc9e
|
@ -389,9 +389,7 @@ func ConfigEntryDecodeRulesForKind(kind string) (skipWhenPatching []string, tran
|
|||
"Listeners",
|
||||
"listeners.services",
|
||||
"Listeners.Services",
|
||||
}, map[string]string{
|
||||
"service_subset": "servicesubset",
|
||||
}, nil
|
||||
}, nil, nil
|
||||
case TerminatingGateway:
|
||||
return []string{
|
||||
"services",
|
||||
|
|
|
@ -51,11 +51,6 @@ type IngressService struct {
|
|||
// protocol and means that the listener will forward traffic to all services.
|
||||
Name string
|
||||
|
||||
// ServiceSubset declares the specific service subset to which traffic should
|
||||
// be sent. This must match an existing service subset declared in a
|
||||
// service-resolver config entry.
|
||||
ServiceSubset string
|
||||
|
||||
EnterpriseMeta `hcl:",squash" mapstructure:",squash"`
|
||||
}
|
||||
|
||||
|
|
|
@ -566,7 +566,6 @@ func TestDecodeConfigEntry(t *testing.T) {
|
|||
services = [
|
||||
{
|
||||
name = "postgres"
|
||||
service_subset = "v1"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -603,7 +602,6 @@ func TestDecodeConfigEntry(t *testing.T) {
|
|||
Services = [
|
||||
{
|
||||
Name = "postgres"
|
||||
ServiceSubset = "v1"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -640,7 +638,6 @@ func TestDecodeConfigEntry(t *testing.T) {
|
|||
Services: []IngressService{
|
||||
IngressService{
|
||||
Name: "postgres",
|
||||
ServiceSubset: "v1",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -60,11 +60,6 @@ type IngressService struct {
|
|||
// Namespace is the namespace where the service is located.
|
||||
// Namespacing is a Consul Enterprise feature.
|
||||
Namespace string `json:",omitempty"`
|
||||
|
||||
// ServiceSubset declares the specific service subset to which traffic should
|
||||
// be sent. This must match an existing service subset declared in a
|
||||
// service-resolver config entry.
|
||||
ServiceSubset string
|
||||
}
|
||||
|
||||
func (i *IngressGatewayConfigEntry) GetKind() string {
|
||||
|
|
|
@ -1395,7 +1395,6 @@ func TestParseConfigEntry(t *testing.T) {
|
|||
services = [
|
||||
{
|
||||
name = "web"
|
||||
service_subset = "v1"
|
||||
},
|
||||
{
|
||||
name = "db"
|
||||
|
@ -1415,7 +1414,6 @@ func TestParseConfigEntry(t *testing.T) {
|
|||
Services = [
|
||||
{
|
||||
Name = "web"
|
||||
ServiceSubset = "v1"
|
||||
},
|
||||
{
|
||||
Name = "db"
|
||||
|
@ -1435,8 +1433,7 @@ func TestParseConfigEntry(t *testing.T) {
|
|||
"protocol": "http",
|
||||
"services": [
|
||||
{
|
||||
"name": "web",
|
||||
"service_subset": "v1"
|
||||
"name": "web"
|
||||
},
|
||||
{
|
||||
"name": "db",
|
||||
|
@ -1457,8 +1454,7 @@ func TestParseConfigEntry(t *testing.T) {
|
|||
"Protocol": "http",
|
||||
"Services": [
|
||||
{
|
||||
"Name": "web",
|
||||
"ServiceSubset": "v1"
|
||||
"Name": "web"
|
||||
},
|
||||
{
|
||||
"Name": "db",
|
||||
|
@ -1479,7 +1475,6 @@ func TestParseConfigEntry(t *testing.T) {
|
|||
Services: []api.IngressService{
|
||||
{
|
||||
Name: "web",
|
||||
ServiceSubset: "v1",
|
||||
},
|
||||
{
|
||||
Name: "db",
|
||||
|
|
Loading…
Reference in New Issue