Skip to content

Commit

Permalink
feat(admission-controller): Add support for worker skiptls (#1317)
Browse files Browse the repository at this point in the history
  • Loading branch information
hayk99 authored Aug 29, 2023
1 parent 9eeb8a3 commit 640fa2e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/admission-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: admission-controller
description: Sysdig Admission Controller using Sysdig Secure inline image scanner
type: application
version: 0.13.3
version: 0.13.4
appVersion: 3.9.26
home: https://sysdiglabs.github.io/admission-controller/
icon: https://avatars.githubusercontent.com/u/5068817?s=200&v=4
Expand Down
4 changes: 2 additions & 2 deletions charts/admission-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ For example:

```bash
helm upgrade --install admission-controller sysdig/admission-controller \
--create-namespace -n sysdig-admission-controller --version=0.13.3 \
--create-namespace -n sysdig-admission-controller --version=0.13.4 \
--set sysdig.secureAPIToken=YOUR-KEY-HERE,clusterName=YOUR-CLUSTER-NAME
```

Expand All @@ -80,7 +80,7 @@ For example:

```bash
helm upgrade --install admission-controller sysdig/admission-controller \
--create-namespace -n sysdig-admission-controller --version=0.13.3 \
--create-namespace -n sysdig-admission-controller --version=0.13.4 \
--values values.yaml
```
Expand Down
8 changes: 7 additions & 1 deletion charts/admission-controller/templates/webhook/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ data:
EXTERNAL_NATS_URL: {{ include "admissionController.natsUrl" . }}
NATS_INSECURE: "{{.Values.webhook.v2.nats.insecure}}"
{{- end}}
WORKERS: "{{.Values.webhook.workers | default 2 }}"
{{- if .Values.webhook.workers }}
WORKERS: "{{.Values.webhook.workers.number | default 2 }}"
WORKER_SKIPTLS: "{{.Values.webhook.workers.skiptlsverify | default "true" }}"
{{- else }}
WORKERS: "2"
WORKER_SKIPTLS: "true"
{{- end}}

0 comments on commit 640fa2e

Please sign in to comment.