Giter Club home page Giter Club logo

Comments (10)

lookuptable avatar lookuptable commented on August 18, 2024

I'd vote for 1 as

  1. It reduces the number of top-level directories (otherwise we'll have one top-level directory for each executable we have, which makes this repo hard to navigate IMO).
  2. The main methods in cmd/ folder only do command line parse while the actual logic is implemented in pkg/ dir. This can mostly avoid us to have sub-packages in the cmd/ dir.

from old_auth_repo.

wattli avatar wattli commented on August 18, 2024

from old_auth_repo.

sarvaniv avatar sarvaniv commented on August 18, 2024

I am OK with (1) but the pkg/ directory directly conflicts with your reasoning about having "less top-level" directories. If the code is used ONLY by istio_ca, it has no business living outside of that scope. I am not sure what are we gaining by avoiding sub-packages? Also note that each of the executables under the cmd/ directory can have a sub cmd/ directory that implements their cobra commands if required. I don't think this sub package should be outside the directory.

from old_auth_repo.

sarvaniv avatar sarvaniv commented on August 18, 2024

Just to make it clear here is what I propose:

istio.io/auth/
cmd/
istio_ca/
cmd/
root.go
BUILD
subpkg1
..
BUILD
ca.go
node_agent/
cmd/
root.go
BUILD
app/
main.go
pkg/ /* contains code that is common to both istio_ca and node_agent */
.....

from old_auth_repo.

wattli avatar wattli commented on August 18, 2024

from old_auth_repo.

lizan avatar lizan commented on August 18, 2024

I vote for (1) too, it looks to be consistent with mixer, pilot and galley

from old_auth_repo.

sarvaniv avatar sarvaniv commented on August 18, 2024

from old_auth_repo.

sarvaniv avatar sarvaniv commented on August 18, 2024

from old_auth_repo.

myidpt avatar myidpt commented on August 18, 2024

(1) looks better to me :)

from old_auth_repo.

lookuptable avatar lookuptable commented on August 18, 2024

Fixed by #233, #205, #203, #181.

from old_auth_repo.

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.