-
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 ac-eks-friendly-ports
- Loading branch information
Showing
7 changed files
with
86 additions
and
50 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
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 | ||
|
||
### New Features | ||
- **admission-controller** [60074372](https://github.com/sysdiglabs/charts/commit/60074372b0970726b1fe100853be7d7ffb01bdef): add watch job permission ([#1312](https://github.com/sysdiglabs/charts/issues/1312)) | ||
#### Full diff: https://github.com/sysdiglabs/charts/compare/admission-controller-0.13.2...admission-controller-0.13.3 | ||
- **admission-controller** [08aacd04](https://github.com/sysdiglabs/charts/commit/08aacd04c4ad67baa5ab041bcae658e1a1173a3e): support policies for worker ([#1318](https://github.com/sysdiglabs/charts/issues/1318)) | ||
#### Full diff: https://github.com/sysdiglabs/charts/compare/admission-controller-0.13.4...admission-controller-0.13.5 |
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
57 changes: 57 additions & 0 deletions
57
charts/admission-controller/tests/admissioncontrollerconfigmap_test.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,57 @@ | ||
suite: Test admissioncontrollerconfigmap | ||
templates: | ||
- templates/webhook/admissioncontrollerconfigmap.yaml | ||
- templates/webhook/clusterrole.yaml | ||
tests: | ||
- it: Creates the configmap if webhook.acConfig is present | ||
set: | ||
clusterName: test-k8s | ||
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", "watch" ] | ||
template: templates/webhook/clusterrole.yaml | ||
- isSubset: | ||
path: rules[1] | ||
content: | ||
apiGroups: [ "" ] | ||
resources: [ "pods", "configmaps", "secrets" ] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,22 @@ | ||
suite: Test admissioncontrollerconfigmap | ||
templates: | ||
- templates/webhook/admissioncontrollerconfigmap.yaml | ||
- templates/webhook/clusterrole.yaml | ||
- templates/webhook/configmap.yaml | ||
tests: | ||
- it: Creates the configmap if webhook.acConfig is present | ||
set: | ||
clusterName: test-k8s | ||
webhook: | ||
acConfig: | | ||
foo: bar | ||
fizz: buzz | ||
workers: | ||
scanningPolicies: | ||
- one | ||
- two | ||
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", "watch"] | ||
template: templates/webhook/clusterrole.yaml | ||
- isSubset: | ||
path: rules[1] | ||
content: | ||
apiGroups: [""] | ||
resources: ["pods", "configmaps", "secrets"] | ||
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 | ||
template: templates/webhook/configmap.yaml | ||
- isSubset: | ||
path: rules[1] | ||
path: data | ||
content: | ||
apiGroups: [""] | ||
resources: ["pods"] | ||
verbs: ["get"] | ||
template: templates/webhook/clusterrole.yaml | ||
# asserts: | ||
# - isNullOrEmpty: | ||
# path: data | ||
# template: templates/webhook/admissioncontrollerconfigmap.yaml | ||
POLICIES: '["one","two"]' | ||
template: templates/webhook/configmap.yaml |