Comments (4)
Hi Piotr, this is a nice idea. I tried whether wdiff
would give acceptable results, but it doesn't, because it messes up the table format. So it is not a task that can be done easily by combining existing tools.
For this to work, I need to restructure the code somewhat. I would do many things differently today, and I want the code to be more maintainable long-term.
from rakkess.
How about this format (with colors):
$ rakkess diff -n kube-system --sa=coredns sa=attachdetach-controller
NAME LIST CREATE UPDATE DELETE
endpoints ◀
events ▶ ▶
events.events.k8s.io ▶ ▶
persistentvolumeclaims ▶
services ◀
Left will be the original access settings (here SA coredns), right is the patched one (here SA attachdetach-controller).
WDYT?
from rakkess.
Hello @corneliusweig
Thanks for your interest in my proposal, I see a lot of work being done here. Unfortunately, I do not understand what the triangles and blanks mean. Maybe the colours you write about would explain something more, but no any colors with your example :)
Regards
from rakkess.
The arrows are supposed to indicate if a a given verb is allowed for the resource. For example
same for both configs
◀ The original config can access, but not the modified one
▶ The modified config can access, but not the original one
The idea is to highlight the diff between the two configs.
However, your reaction tells me that the given CLI does not work. I think a better syntax is
rakkess diff --left=--sa=coredns --right=--sa=attachdetach-controller
from rakkess.
Related Issues (20)
- Documentation does not match plugin capabilities HOT 1
- Add support for json output HOT 2
- Dependabot can't resolve your Go dependency files
- More powerful resource matching (ERRO[0005] determine requested resource: no matches for ...) HOT 2
- Dependabot can't resolve your Go dependency files
- Apple M1 Support HOT 1
- Rakkess displays extra lines with no resource name and no permissons HOT 9
- inconsistency between access-matrix and "oc who-can"
- Missing assets for v0.5.1 HOT 1
- Krew is not able to install latest v0.5.1 version HOT 1
- What is "n/a" means in result matrix
- Support authorization based on `resourceNames`
- Add support for use verb HOT 4
- nothing is displayed for a service-account HOT 10
- Install failure via krew HOT 2
- Installation with Curl is failing "not in gzip format" HOT 2
- `rakkess version` is not printing version information HOT 1
- Rakkess gets very slow when latency goes up HOT 2
- 0.4.5 darwin archive is empty HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rakkess.