Skip to content

Commit b7489fd

Browse files
committed
Add suggestion by @J12934
Signed-off-by: Renato Burton <renatoburton96@gmail.com>
1 parent 775183f commit b7489fd

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

‎hooks/generic-webhook/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ Kubernetes: `>=v1.11.0-0`
6060
| hook.authentication.basic.passwordKey | string | `"password"` | Name of the password key in the `userSecret` secret. Use this if you already have a secret with different key / value pairs |
6161
| hook.authentication.basic.userSecret | string | `"generic-webhook-credentials"` | Link a pre-existing generic secret with `usernameKey` and `passwordKey` key / value pairs |
6262
| hook.authentication.basic.usernameKey | string | `"username"` | Name of the username key in the `userSecret` secret. Use this if you already have a secret with different key / value pairs |
63+
| hook.authentication.apikey.userSecret | string | `"generic-webhook-credentials"` | Link a pre-existing generic secret with `usernameKey` and `passwordKey` key / value pairs |
64+
| hook.authentication.apikey.headerName | string | `"X-api-key"` | Customize header name as per your needs |
65+
| hook.authentication.apikey.headerValue | string | `"26ea529e517748baa6d87ebfe5781475"` | Use your API key |
6366
| hook.image.repository | string | `"docker.io/securecodebox/hook-generic-webhook"` | Hook image repository |
6467
| hook.image.tag | string | defaults to the charts version | The image Tag defaults to the charts version if not defined. |
6568
| hook.labels | object | `{}` | Add Kubernetes Labels to the hook definition |

‎hooks/generic-webhook/docs/README.ArtifactHub.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ Kubernetes: `>=v1.11.0-0`
6969
| hook.authentication.basic.userSecret | string | `"generic-webhook-credentials"` | Link a pre-existing generic secret with `usernameKey` and `passwordKey` key / value pairs |
7070
| hook.authentication.basic.usernameKey | string | `"username"` | Name of the username key in the `userSecret` secret. Use this if you already have a secret with different key / value pairs |
7171
| hook.authentication.apikey.userSecret | string | `"generic-webhook-credentials"` | Link a pre-existing generic secret with `usernameKey` and `passwordKey` key / value pairs |
72-
| hook.authentication.apikey.key | string | `"X-api-key"` | Customize header name as per your needs |
73-
| hook.authentication.apikey.secret | string | `"26ea529e517748baa6d87ebfe5781475"` | Use your API key |
72+
| hook.authentication.apikey.headerName | string | `"X-api-key"` | Customize header name as per your needs |
73+
| hook.authentication.apikey.headerValue | string | `"26ea529e517748baa6d87ebfe5781475"` | Use your API key |
7474
| hook.image.repository | string | `"docker.io/securecodebox/hook-generic-webhook"` | Hook image repository |
7575
| hook.image.tag | string | defaults to the charts version | The image Tag defaults to the charts version if not defined. |
7676
| hook.labels | object | `{}` | Add Kubernetes Labels to the hook definition |

‎hooks/generic-webhook/templates/webhook-hook.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ spec:
3535
valueFrom:
3636
secretKeyRef:
3737
name: {{ .Values.hook.authentication.apikey.userSecret }}
38-
key: header-name
38+
key: {{ .Values.hook.authentication.apikey.headerName }}
3939
optional: true
4040
- name: WEBHOOK_APIKEY_SECRET
4141
valueFrom:
4242
secretKeyRef:
4343
name: {{ .Values.hook.authentication.apikey.userSecret }}
44-
key: header-value
44+
key: {{ .Values.hook.authentication.apikey.headerValue }}
4545
optional: true
4646
affinity:
4747
{{- toYaml .Values.hook.affinity | nindent 4 }}

‎hooks/generic-webhook/values.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ hook:
4040
apikey:
4141
# -- Link a pre-existing generic secret with `usernameKey` and `passwordKey` key / value pairs
4242
userSecret: generic-webhook-credentials
43-
# -- Customize header name as per your needs
44-
key: X-api-key
45-
secret: 26ea529e517748baa6d87ebfe5781475
43+
# -- Customize header name as per your needs ex: X-Api-Key
44+
headerName: X-Example-Header
45+
headerValue: example
4646
basic:
4747
# -- Link a pre-existing generic secret with `usernameKey` and `passwordKey` key / value pairs
4848
userSecret: generic-webhook-credentials

0 commit comments

Comments
 (0)