From fc378c0908411ea19559636906346ff913ddf5ea Mon Sep 17 00:00:00 2001 From: Tom Proctor Date: Mon, 23 Jan 2023 19:26:49 +0000 Subject: [PATCH] Event system alpha experiment (#18795) --- changelog/18682.txt | 2 +- helper/experiments/experiments.go | 4 ++-- vault/core.go | 2 +- vault/logical_system_test.go | 2 +- website/content/api-docs/system/experiments.mdx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/changelog/18682.txt b/changelog/18682.txt index d1a7987d6..904210903 100644 --- a/changelog/18682.txt +++ b/changelog/18682.txt @@ -1,4 +1,4 @@ ```release-note:improvement -core: Add experiments system and `events.beta1` experiment. +core: Add experiments system and `events.alpha1` experiment. ``` diff --git a/helper/experiments/experiments.go b/helper/experiments/experiments.go index 4b7ded689..eb522def1 100644 --- a/helper/experiments/experiments.go +++ b/helper/experiments/experiments.go @@ -1,9 +1,9 @@ package experiments -const VaultExperimentEventsBeta1 = "events.beta1" +const VaultExperimentEventsAlpha1 = "events.alpha1" var validExperiments = []string{ - VaultExperimentEventsBeta1, + VaultExperimentEventsAlpha1, } // ValidExperiments exposes the list without exposing a mutable global variable. diff --git a/vault/core.go b/vault/core.go index 1cb0dd5e6..4c1528b1d 100644 --- a/vault/core.go +++ b/vault/core.go @@ -1269,7 +1269,7 @@ func NewCore(conf *CoreConfig) (*Core, error) { return nil, err } c.events = events - if c.isExperimentEnabled(experiments.VaultExperimentEventsBeta1) { + if c.isExperimentEnabled(experiments.VaultExperimentEventsAlpha1) { c.events.Start() } diff --git a/vault/logical_system_test.go b/vault/logical_system_test.go index d66f96287..7903ad67f 100644 --- a/vault/logical_system_test.go +++ b/vault/logical_system_test.go @@ -5466,7 +5466,7 @@ func TestSystemBackend_ReadExperiments(t *testing.T) { for name, tc := range map[string][]string{ "no experiments enabled": {}, - "one experiment enabled": {experiments.VaultExperimentEventsBeta1}, + "one experiment enabled": {experiments.VaultExperimentEventsAlpha1}, } { t.Run(name, func(t *testing.T) { // Set the enabled experiments. diff --git a/website/content/api-docs/system/experiments.mdx b/website/content/api-docs/system/experiments.mdx index 5a72b1303..a33f5623b 100644 --- a/website/content/api-docs/system/experiments.mdx +++ b/website/content/api-docs/system/experiments.mdx @@ -37,7 +37,7 @@ $ curl \ "renewable": false, "data": { "available": [ - "events.beta1" + "events.alpha1" ], "enabled": [] },