This file contains hidden or 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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "os" | |
| "sort" | |
| "github.com/open-policy-agent/opa/metrics" |
This file contains hidden or 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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/open-policy-agent/opa/ast" | |
| "github.com/open-policy-agent/opa/rego" | |
| ) |
This file contains hidden or 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
| %YAML 1.2 | |
| --- | |
| # http://www.sublimetext.com/docs/3/syntax.html | |
| name: Rego | |
| file_extensions: | |
| - rego | |
| scope: source.rego | |
| contexts: | |
| main: | |
| - include: comment |
This file contains hidden or 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
| name old time/op new time/op delta | |
| pkg:github.com/open-policy-agent/opa/ast goos:linux goarch:amd64 | |
| RewriteDynamics/1-4 329ns ± 4% 307ns ± 4% -6.81% (p=0.000 n=9+10) | |
| RewriteDynamics/10-4 3.35µs ± 9% 3.02µs ± 1% -9.95% (p=0.000 n=10+10) | |
| RewriteDynamics/100-4 34.1µs ± 3% 31.6µs ± 1% -7.34% (p=0.000 n=10+10) | |
| RewriteDynamics/1000-4 357µs ± 6% 325µs ± 1% -8.82% (p=0.000 n=10+9) | |
| RewriteDynamics/10000-4 4.60ms ± 5% 4.19ms ± 1% -8.94% (p=0.000 n=10+10) | |
| RewriteDynamics/100000-4 73.1ms ± 4% 69.5ms ± 1% -4.93% (p=0.000 n=10+10) | |
| ParseModuleRulesBase/1-4 5.66µs ± 2% 5.36µs ± 3% -5.34% (p=0.000 n=10+10) | |
| ParseModuleRulesBase/10-4 39.1µs ±10% 35.3µs ± 3% -9.71% (p=0.000 n=10+10) |
This file contains hidden or 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
| package library.kubernetes.admission.mutating | |
| ########################################################################### | |
| # Implementation of the k8s admission control external webhook interface, | |
| # combining validating and mutating admission controllers | |
| ########################################################################### | |
| main = { | |
| "apiVersion": "admission.k8s.io/v1beta1", | |
| "kind": "AdmissionReview", |
This file contains hidden or 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
| FROM python:3 | |
| RUN wget https://gist.githubusercontent.com/patrick-east/24938c63f373e40c7b5832841605b1b2/raw/ca6370c91c255cec91ac9d21a7252f5c6ffdc35d/postr-server.py | |
| RUN mv postr-server.py /bin/postr-server.py | |
| RUN chmod +x /bin/postr-server.py | |
| RUN pip install flask argparse |
OlderNewer