-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix validation logic and added Reame #4
Conversation
Signed-off-by: ashish493 <b218008@iiit-bh.ac.in>
Signed-off-by: ashish493 <b218008@iiit-bh.ac.in>
Signed-off-by: ashish493 <b218008@iiit-bh.ac.in>
Signed-off-by: ashish493 <b218008@iiit-bh.ac.in>
Signed-off-by: ashish493 <b218008@iiit-bh.ac.in>
Signed-off-by: ashish493 <b218008@iiit-bh.ac.in>
@hsluoyz
Writing tests for k8s validation controller was much harder than expected, I will try to add it by this week. I will also try to add the build.sh and Makefile with the tests. Rest everything is working fine. |
I have forked the casbin-website repo. I just had a doubt that under which section should I write the docs for integrating k8s? Advanced usage? |
Yes, Advanced usage is OK. |
@@ -15,11 +15,11 @@ spec: | |||
spec: | |||
containers: | |||
- name: webhook | |||
image: casbin/docker:1.0.0 | |||
image: k8s_authz:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using latest
seems to be a hidden danger.
|
||
e, err := casbin.NewEnforcer("./example/model.conf", "./example/policy.csv") | ||
if err != nil { | ||
glog.Errorf("Filed to load the policies: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Miss return
?
@nodece, I have made the necessary changes and have changed the docs according to it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@ashish493 can you turn the logo into transparent background? |
Sure, I will do that. |
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Signed-off by: ashish493 b218008@iiit.bh.ac.in