mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
fe1cb8bc69
Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
26 lines
974 B
Markdown
26 lines
974 B
Markdown
We provide a `fake` implementation to help with testing. This provider returns static key/value pairs and nothing else.
|
|
To use the `fake` provider simply create a `SecretStore` or `ClusterSecretStore` and configure it like in the following example:
|
|
|
|
!!! note inline end
|
|
The provider returns static data configured in `value` or `valueMap`. You can define a `version`, too. If set the `remoteRef` from an ExternalSecret must match otherwise no value is returned.
|
|
|
|
```yaml
|
|
{% include 'fake-provider-store.yaml' %}
|
|
```
|
|
|
|
Please note that `value` is intended for exclusive use with `data` and `valueMap` for `dataFrom`.
|
|
Here is an example `ExternalSecret` that displays this behavior:
|
|
|
|
!!! warning inline end
|
|
This provider supports specifying different `data[].version` configurations. However, `data[].property` is ignored.
|
|
|
|
```yaml
|
|
{% include 'fake-provider-es.yaml' %}
|
|
```
|
|
|
|
This results in the following secret:
|
|
|
|
|
|
```yaml
|
|
{% include 'fake-provider-secret.yaml' %}
|
|
```
|