-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into SSPROD-23092_Integrate_new_Admission_Contr…
…oller_to_existing_AC_chart
- Loading branch information
Showing
8 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# What's Changed | ||
|
||
### Documentation | ||
- **admission-controller, cluster-scanner, registry-scanner, cloud-connector, node-analyzer, rapid-response, sysdig-deploy, agent** [df733e62](https://github.com/sysdiglabs/charts/commit/df733e6294eae1967197e3521473a5fab0282b67): update maintainers list ([#1283](https://github.com/sysdiglabs/charts/issues/1283)) | ||
#### Full diff: https://github.com/sysdiglabs/charts/compare/admission-controller-0.12.2...admission-controller-0.12.3 | ||
### New Features | ||
- **admission-controller** [ffa2c439](https://github.com/sysdiglabs/charts/commit/ffa2c439bd0a1a76443dc41439f048a2fc41e016): internal test ([#1297](https://github.com/sysdiglabs/charts/issues/1297)) | ||
#### Full diff: https://github.com/sysdiglabs/charts/compare/admission-controller-0.12.3...admission-controller-0.12.4 |
13 changes: 13 additions & 0 deletions
13
charts/admission-controller/templates/webhook/admissioncontrollerconfigmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Warning! This file is for internal tests only. | ||
{{- if .Values.webhook.acConfig }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: admissioncontrollerconfigmap | ||
namespace: {{ include "admissionController.namespace" . }} | ||
labels: | ||
{{ include "admissionController.webhook.labels" . | nindent 4 }} | ||
data: | ||
acConfig: | | ||
{{ .Values.webhook.acConfig | nindent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
suite: Test admissioncontrollerconfigmap | ||
templates: | ||
- templates/webhook/admissioncontrollerconfigmap.yaml | ||
- templates/webhook/clusterrole.yaml | ||
tests: | ||
- it: Creates the configmap if webhook.acConfig is present | ||
set: | ||
webhook: | ||
acConfig: | | ||
foo: bar | ||
fizz: buzz | ||
asserts: | ||
- containsDocument: | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
template: templates/webhook/admissioncontrollerconfigmap.yaml | ||
- it: Creates the clusterrole if webhook.acConfig is present | ||
set: | ||
webhook: | ||
acConfig: | | ||
foo: bar | ||
fizz: buzz | ||
asserts: | ||
- isSubset: | ||
path: rules[2] | ||
content: | ||
apiGroups: ["batch"] | ||
resources: ["jobs"] | ||
verbs: ["create", "get", "delete"] | ||
template: templates/webhook/clusterrole.yaml | ||
- isSubset: | ||
path: rules[1] | ||
content: | ||
apiGroups: [""] | ||
resources: ["pods", "configmaps"] | ||
verbs: ["get"] | ||
template: templates/webhook/clusterrole.yaml | ||
- it: Does not create the configmap if webhook.acConfig is not present | ||
set: {} | ||
asserts: | ||
- notContains: | ||
path: rules | ||
content: | ||
apiGroups: [ "batch" ] | ||
template: templates/webhook/clusterrole.yaml | ||
- isSubset: | ||
path: rules[1] | ||
content: | ||
apiGroups: [""] | ||
resources: ["pods"] | ||
verbs: ["get"] | ||
template: templates/webhook/clusterrole.yaml | ||
# asserts: | ||
# - isNullOrEmpty: | ||
# path: data | ||
# template: templates/webhook/admissioncontrollerconfigmap.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters