kranurag7
kranurag7
@chipzoller Yes I'm working on it. I'm getting some errors. In the GetFunctions I have added this. ```go { Entry: &gojmespath.FunctionEntry{Name: random, Arguments: []ArgSpec{ {Types: []JpType{JpNumber}}, }, Handler: jpRandom, },...
@chipzoller Can you please guide me further on this?
Apologies, I was busy with university exams. Thanks @JimBugwadia for the guidance. ```go func jpRandom(a []interface{}) (interface{}, error) { var characters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") i := int(math.Round(a[0].(float64))) b := make([]rune, i)...
Thanks, @chipzoller, for outlining the structure on what we want to achieve. I agree with @JimBugwadia having two separate functions, one for digits and one for strings, would make more...
@chipzoller I was about to discuss this issue in today's meeting, but if you want, you can mark this for issue for mentorship.
Hey @chipzoller, I have looked into the [package](https://pkg.go.dev/github.com/zach-klippenstein/goregen) that was discussed in the meeting. I have decided to go ahead with using the that package, The function is working fine...
I have tested the following cases and I want some feedback on this. ``` $ echo '{"foo": "foo-[a-z0-9]{6}"}' | kubectl-kyverno jp 'random(foo)' "foo-91t6fm" ``` The above example is working fine...
@chipzoller I would love to work on this issue.
@Chinwendu20 You can use the already built [template](https://github.com/gitpod-io/template-k3s) by Gitpod community which is based on k3s. After that, you can use the k3s [deployment](https://github.com/kubearmor/KubeArmor/tree/main/deployments/k3s) method to proceed ahead.