Coder Social home page Coder Social logo

deprek8ion's People

Contributors

chgl avatar ckotzbauer avatar cmur2 avatar marsom avatar swade1987 avatar valorl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deprek8ion's Issues

Compiler error

Not sure I'm doing wrong, but I get some compiler errors

$ docker run --rm -it -v ${PWD}:/project instrumenta/conftest:latest test --policy regopolicy.rego chart/my-chart

Error: build compiler: compiling: 4 errors occurred:
policy/1.16-deprek8ion.rego:20: rego_unsafe_var_error: var _warn is unsafe
policy/1.16-deprek8ion.rego:26: rego_unsafe_var_error: var _warn is unsafe
policy/1.17-deprek8ion.rego:20: rego_unsafe_var_error: var _warn is unsafe
policy/1.17-deprek8ion.rego:26: rego_unsafe_var_error: var _warn is unsafe

Usage suggestions?

These policies look really useful, this is a great use case for rego!

Can you share how you are you using these currently? Is it with an admission controller like OPA Gatekeeper or some other job/process in your deployment pipeline?

Removal of admissionregistration.k8s.io/v1beta1 has been retargeted to 1.22

Hi, I was having a look at https://github.com/swade1987/deprek8ion/blob/master/policies/kubernetes-1.19.rego and wanted to learn more about the removal of admissionregistration.k8s.io/v1beta1 but the https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.19.md did not include any mention of that.

Finally I found kubernetes/kubernetes#82021 which tells that this particular removal is now planned for K8s 1.22. I think the policy files should be updated, what do you think?

Suggestion to simplify Dockerfile

Thank you for your work, this is a really useful tool!

I have a minor suggestion to simplify the Dockerfile:

FROM instrumenta/conftest:v0.18.2
LABEL MAINTAINER Steven Wade <[email protected]>
COPY policies/* /policies/
ENTRYPOINT ["/conftest", "test", "-p", "/policies"]

# Usage: docker run --rm -v $PWD/demo:/demo deprek8ion:latest /demo

This would make the install.sh unnecessary. I can create a PR if you're interested.

One more thing: would it be possible to also host the container on docker hub - it has a very straight-forward GitHub integration and isn't down currently...

Support target cluster version

If you have a bundle of manifests, it would be nice to be able to verify that manifest against a specific version of Kubernetes.

For example, if you have a bundle.yaml that you intended to deploy to Kubernetes v1.17.0, it would be desirable to programmatically choose with set of Deprek8ion policies to run. In this case you'd include 1.16 and 1.17, but leave the others out.

Maybe a folder per Kubernetes version? e.g. 1.17/kubernetes-1.16.rego 1.17/kubernetes-1.17.rego and then conftest test bundle.yaml -p deprek8ion/$KUBERNETES_VERSION

add another example usage

another example usage, which I prefer:

cat /demo/ingress.yaml | docker run --rm -i quay.io/swade1987/deprek8ion:1.1.7 conftest test -p /policies -

you dont need any volumes in this case, and this is very useful i.e. in building pipelines. furdermore you can diredtly pipe out a kubectl get ... command.

support kubernetes 1.21

I have this error
ERROR: No deprek8ion policy for kubernetes version 1.21. Check if a newer version of deprek8ion supports this version

Is it possible to test Kubernetes template for version 1.21?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.