mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
b4e7acfaa9
* Implements dataFrom key rewrite Co-authored-by: Moritz Johner <moolen@users.noreply.github.com> Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com> * docs: add example to remove invalid characters Signed-off-by: Moritz Johner <beller.moritz@googlemail.com> Co-authored-by: Moritz Johner <moolen@users.noreply.github.com> Co-authored-by: Moritz Johner <beller.moritz@googlemail.com>
24 lines
No EOL
461 B
YAML
24 lines
No EOL
461 B
YAML
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: example
|
|
spec:
|
|
refreshInterval: 1h
|
|
secretStoreRef:
|
|
kind: SecretStore
|
|
name: backend
|
|
target:
|
|
name: secret-to-be-created
|
|
dataFrom:
|
|
- extract:
|
|
key: my-secrets-dev
|
|
rewrite:
|
|
- regexp:
|
|
source: "(.*)"
|
|
target: "dev-$1"
|
|
- extract:
|
|
key: my-secrets-prod
|
|
rewrite:
|
|
- regexp:
|
|
source: "(.*)"
|
|
target: "prod-$1" |