Add Context Aware Policy Functions and Example#33
Add Context Aware Policy Functions and Example#33brownz11 wants to merge 1 commit intokubewarden:mainfrom
Conversation
|
Hi, thanks for this contribution! Sadly, currently the repo CI is in a bad state as the .NET SDK repo needs some love. |
|
Thanks for your contribution and sorry for the delay, I was on vacation. As @viccuad said the current status of C# policies is not good. There's some maintenance work we have to do that has been postponed because, so far, nobody from the community has shown interest about C# policies. This is the work to be done:
What are you plans with regard to C# usage? Would you like to help us with this work (we are not top notch C# developers 🥲) |
|
What are you plans with regard to C# usage? We're a C# shop here, and looking to replace OPA with Kubewarden, so we rewrote all our policies in C#. It's much much easier than Rego, so our general idea was "C# policies or bust". We managed to get all our policies written and working under the current C# SDK, so it does at least work. But I do agree there's a chance for improvement. Would you like to help us with this work (we are not top notch C# developers 🥲) I can try to help, I'm not a C# developer (or even a developer) myself, but I'm sure something is better than nothing :) |
Description
Fix #32
Adds 3 methods to the KubeWarden .NET SDK that mirror the Kubernetes Host Capabilities waPC calls
Test
To test this pull request, you can run the following commands:
Additional Information
Tradeoff
None
Potential improvement
I am not a professional C# programmer, but I've tried my best.