Skip to content
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

Merged
merged 7 commits into from
May 28, 2021
Merged

fix: fix validation logic and added Reame #4

merged 7 commits into from
May 28, 2021

Conversation

ashish493
Copy link
Member

Signed-off by: ashish493 b218008@iiit.bh.ac.in

ashish493 and others added 6 commits May 26, 2021 22:04
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>
@ashish493
Copy link
Member Author

@hsluoyz
Work done:-

  • Added Readme with logo
  • Merged the manifests into a single deployment file
  • Move to v1 from v1beta
  • Added Dockerfile which would be used for deployment

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.

@ashish493
Copy link
Member Author

ashish493 commented May 26, 2021

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?
Or should I write on my blog and add it under tutorials section?

@hsluoyz
Copy link
Member

hsluoyz commented May 26, 2021

Advanced usage?

Yes, Advanced usage is OK.

@hsluoyz
Copy link
Member

hsluoyz commented May 26, 2021

@nodece @sagilio plz review.

@@ -15,11 +15,11 @@ spec:
spec:
containers:
- name: webhook
image: casbin/docker:1.0.0
image: k8s_authz:latest
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Miss return?

Signed-off-by: ashish493 <b218008@iiit-bh.ac.in>
@ashish493 ashish493 requested a review from nodece May 27, 2021 09:27
@ashish493
Copy link
Member Author

@nodece, I have made the necessary changes and have changed the docs according to it.

Copy link
Member

@nodece nodece left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hsluoyz hsluoyz merged commit 7baafb1 into casbin:master May 28, 2021
@hsluoyz
Copy link
Member

hsluoyz commented May 28, 2021

@ashish493 can you turn the logo into transparent background?

image

@ashish493
Copy link
Member Author

@ashish493 can you turn the logo into transparent background?

Sure, I will do that.

@github-actions
Copy link

github-actions bot commented Jul 7, 2021

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants