Skip to content

Commit 70e8654

Browse files
authored
feat: allow webhook timeoutSeconds to be configurable, default 10 second (#153)
1 parent 4f39a0b commit 70e8654

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

charts/k8s-image-swapper/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: k8s-image-swapper
33
description: Mirror images into your own registry and swap image references automatically.
44
type: application
5-
version: 1.10.2
5+
version: 1.10.3
66
appVersion: 1.5.10
77
home: https://github.com/estahn/charts/tree/main/charts/k8s-image-swapper
88
keywords:
@@ -15,7 +15,7 @@ maintainers:
1515
name: estahn
1616
annotations:
1717
artifacthub.io/changes: |
18-
- "Add ability to specify a priorityClassName for deployment"
18+
- "Add webhook timeoutSeconds to allow configuration how long the api server should wait for webhook"
1919
artifacthub.io/images: |
2020
- name: k8s-image-webhook
2121
image: ghcr.io/estahn/k8s-image-swapper:1.5.10

charts/k8s-image-swapper/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# k8s-image-swapper
22

3-
![Version: 1.10.2](https://img.shields.io/badge/Version-1.10.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.10](https://img.shields.io/badge/AppVersion-1.5.10-informational?style=flat-square)
3+
![Version: 1.10.3](https://img.shields.io/badge/Version-1.10.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.10](https://img.shields.io/badge/AppVersion-1.5.10-informational?style=flat-square)
44

55
Mirror images into your own registry and swap image references automatically.
66

@@ -87,6 +87,7 @@ Mirror images into your own registry and swap image references automatically.
8787
| webhook.namespaceSelector | object | `{}` | |
8888
| webhook.objectSelector | object | `{}` | |
8989
| webhook.reinvocationPolicy | string | `"Never"` | |
90+
| webhook.timeoutSeconds | int | `10` | |
9091

9192
----------------------------------------------
9293
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)

charts/k8s-image-swapper/templates/mutatingWebhookConfiguration.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ metadata:
1010
{{- end }}
1111
webhooks:
1212
- name: k8s-image-swapper.github.io
13+
timeoutSeconds: {{ .Values.webhook.timeoutSeconds }}
1314
failurePolicy: {{ .Values.webhook.failurePolicy }}
1415
reinvocationPolicy: {{ .Values.webhook.reinvocationPolicy }}
1516
namespaceSelector:

charts/k8s-image-swapper/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@
339339
},
340340
"reinvocationPolicy": {
341341
"type": "string"
342+
},
343+
"timeoutSeconds": {
344+
"type": "integer"
342345
}
343346
}
344347
}

charts/k8s-image-swapper/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ certmanager:
116116
webhook:
117117
failurePolicy: Ignore
118118
reinvocationPolicy: Never
119+
timeoutSeconds: 10
119120
namespaceSelector: {}
120121
objectSelector: {}
121122

0 commit comments

Comments
 (0)