mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-15 17:51:01 +00:00
1cf8f68276
* adding webhook generators Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com> * bumping bundle Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com> * linting Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com> * fixing copy-paste error Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com> * common webhook functions Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com> * removing duplicates. Adding tests for generator Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com> * docs Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com> --------- Signed-off-by: Gustavo Carvalho <gusfcarvalho@gmail.com>
28 lines
No EOL
678 B
YAML
28 lines
No EOL
678 B
YAML
{% raw %}
|
|
apiVersion: generators.external-secrets.io/v1alpha1
|
|
kind: Webhook
|
|
metadata:
|
|
name: webhook
|
|
spec:
|
|
url: "http://httpbin.org/get?parameter={{ .auth.param }}"
|
|
result:
|
|
jsonPath: "$.args"
|
|
headers:
|
|
Content-Type: application/json
|
|
Authorization: Basic {{ print .auth.username ":" .auth.password | b64enc }}
|
|
secrets:
|
|
- name: auth
|
|
secretRef:
|
|
name: webhook-credentials
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: webhook-credentials
|
|
labels:
|
|
generators.external-secrets.io/type: webhook #Needed to allow webhook to use this secret
|
|
data:
|
|
username: dGVzdA== # "test"
|
|
password: dGVzdA== # "test"
|
|
param: dGVzdA== # "test"
|
|
{% endraw %} |