mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-18 18:38:08 -05:00
* Make VAULT_EXPERIMENTS work as feature flags. Make method IsFlagEnabled treat experiments as feature flags so that they are accessible to plugins. * Add experiment kmip.client_api.alpha1. This experiment enables the KMIP client and template API endpoints. * Use IsExperimentEnabled rather than ValidExperiments. * Document TestCore_IsFlagEnabled. Co-authored-by: Victor Rodriguez <vrizo@hashicorp.com>
This commit is contained in:
parent
83515dc8e2
commit
b60d15a07c
1 changed files with 7 additions and 2 deletions
|
|
@ -9,8 +9,10 @@ const (
|
|||
VaultExperimentCoreAuditEventsAlpha1 = "core.audit.events.alpha1"
|
||||
VaultExperimentSecretsImport = "secrets.import.alpha1"
|
||||
|
||||
// Unused experiments. We keep them so that we don't break users who include them in their
|
||||
// flags or configs, but they no longer have any effect.
|
||||
// VaultExperimentKmipClientApi enables the experimental KMIP client
|
||||
// and template API endpoints. See VAULT-41117.
|
||||
VaultExperimentKmipClientApi = "kmip.client_api.alpha1"
|
||||
|
||||
VaultExperimentEventsAlpha1 = "events.alpha1"
|
||||
)
|
||||
|
||||
|
|
@ -18,8 +20,11 @@ var validExperiments = []string{
|
|||
VaultExperimentEventsAlpha1,
|
||||
VaultExperimentCoreAuditEventsAlpha1,
|
||||
VaultExperimentSecretsImport,
|
||||
VaultExperimentKmipClientApi,
|
||||
}
|
||||
|
||||
// Unused experiments. We keep them so that we don't break users who include them in their
|
||||
// flags or configs, but they no longer have any effect.
|
||||
var unusedExperiments = []string{
|
||||
VaultExperimentEventsAlpha1,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue