-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to latest version of wasmparser
Update to latest version, plus fix the code to ensure it builds after the API has been changed. Moreover, include some e2e tests that are using this portion of the code. Signed-off-by: Flavio Castelli <[email protected]>
- Loading branch information
Showing
7 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,29 @@ | ||
rules: | ||
- apiGroups: [""] | ||
apiVersions: ["v1"] | ||
resources: ["services"] | ||
operations: ["CREATE", "UPDATE"] | ||
mutating: false | ||
contextAware: false | ||
executionMode: gatekeeper | ||
annotations: | ||
io.kubewarden.policy.title: disallow-service-loadbalancer | ||
io.kubewarden.policy.description: Prevent the creation of Service resources of type `LoadBalancer` | ||
io.kubewarden.policy.author: Flavio Castelli | ||
io.kubewarden.policy.url: https://github.com/kubewarden/disallow-service-loadbalancer-policy | ||
io.kubewarden.policy.source: https://github.com/kubewarden/disallow-service-loadbalancer-policy | ||
io.kubewarden.policy.license: Apache-2.0 | ||
io.kubewarden.policy.usage: | | ||
This policy works by inspecting `type` of `Service` resources and prevents the | ||
creation of Services with type `LoadBalancer`. | ||
Kubernetes network policies have no control over what is being exposed | ||
via these type of Services. Moreover, on public clouds, the creation of | ||
`LoadBalancer` Services leads to additional charges. | ||
Because of that, it's usually a safer choice to have | ||
tighter control over the creation of these type of Services. | ||
# Configuration | ||
This policy doesn't take any configuration value. |
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,28 @@ | ||
rules: | ||
- apiGroups: [""] | ||
apiVersions: ["v1"] | ||
resources: ["services"] | ||
operations: ["CREATE", "UPDATE"] | ||
mutating: false | ||
contextAware: false | ||
annotations: | ||
io.kubewarden.policy.title: disallow-service-loadbalancer | ||
io.kubewarden.policy.description: Prevent the creation of Service resources of type `LoadBalancer` | ||
io.kubewarden.policy.author: Flavio Castelli | ||
io.kubewarden.policy.url: https://github.com/kubewarden/disallow-service-loadbalancer-policy | ||
io.kubewarden.policy.source: https://github.com/kubewarden/disallow-service-loadbalancer-policy | ||
io.kubewarden.policy.license: Apache-2.0 | ||
io.kubewarden.policy.usage: | | ||
This policy works by inspecting `type` of `Service` resources and prevents the | ||
creation of Services with type `LoadBalancer`. | ||
Kubernetes network policies have no control over what is being exposed | ||
via these type of Services. Moreover, on public clouds, the creation of | ||
`LoadBalancer` Services leads to additional charges. | ||
Because of that, it's usually a safer choice to have | ||
tighter control over the creation of these type of Services. | ||
# Configuration | ||
This policy doesn't take any configuration value. |
Binary file not shown.
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