Skip to content

Commit

Permalink
Merge branch 'master' into SSPROD-23092_Integrate_new_Admission_Contr…
Browse files Browse the repository at this point in the history
…oller_to_existing_AC_chart
  • Loading branch information
airadier authored Jul 17, 2023
2 parents 1210d3f + 1095988 commit 7596de0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions charts/admission-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Manual edits are supported only below '## Change Log' and should be used
exclusively to fix incorrect entries and not to add new ones.

## Change Log
# v0.11.4
### New Features
* **admission-controller** [03f5b13a](https://github.com/sysdiglabs/charts/commit/03f5b13a47cd4f57a938daf1a2cd4aeb671251d1): Add labels to VAC webhook to adopt existing one ([#1238](https://github.com/sysdiglabs/charts/issues/1238))
# v0.11.3
* feat: remove workload name from scanning secure events for both dry run and real secure events

Expand Down
4 changes: 2 additions & 2 deletions charts/admission-controller/RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# What's Changed

### New Features
- **admission-controller** [96208c13](https://github.com/sysdiglabs/charts/commit/96208c130458ec7e8159cbc729847793de63f9a5): remove workload name from scanning events ([#1234](https://github.com/sysdiglabs/charts/issues/1234))
#### Full diff: https://github.com/sysdiglabs/charts/compare/admission-controller-0.11.2...admission-controller-0.11.3
- **admission-controller** [03f5b13a](https://github.com/sysdiglabs/charts/commit/03f5b13a47cd4f57a938daf1a2cd4aeb671251d1): Add labels to VAC webhook to adopt existing one ([#1238](https://github.com/sysdiglabs/charts/issues/1238))
#### Full diff: https://github.com/sysdiglabs/charts/compare/admission-controller-0.11.3...admission-controller-0.11.4
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ so the template is executed just once
{{- $certString := include "admissionController.webhook.gen-certs" . -}}
{{- $certList := split "$" $certString -}}
---
{{- $existingVac := (lookup "admissionregistration.k8s.io/v1" "ValidatingWebhookConfiguration" (include "admissionController.namespace" .) (include "admissionController.webhook.fullname" .))}}
{{- if (or (not $existingVac) (and $existingVac (eq (index $existingVac.metadata.annotations "meta.helm.sh/release-name") .Release.Name ) (eq (index $existingVac.metadata.annotations "meta.helm.sh/release-namespace") .Release.Namespace ))) }}
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: {{ include "admissionController.webhook.fullname" . }}
namespace: {{ include "admissionController.namespace" . }}
webhooks: []
{{- end}}
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
Expand All @@ -19,6 +22,10 @@ metadata:
namespace: {{ include "admissionController.namespace" . }}
annotations:
"helm.sh/hook": "post-install, post-upgrade"
meta.helm.sh/release-name: {{ .Release.Name }}
meta.helm.sh/release-namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/managed-by: Helm
webhooks:
{{- if .Values.features.kspmAdmissionController}}
- name: vac.secure.sysdig.com
Expand Down

0 comments on commit 7596de0

Please sign in to comment.