Giter Site home page Giter Site logo

Comments (4)

corneliusweig avatar corneliusweig commented on May 25, 2024

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.

corneliusweig avatar corneliusweig commented on May 25, 2024

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.

piotrminkina avatar piotrminkina commented on May 25, 2024

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.

corneliusweig avatar corneliusweig commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.