Skip to content

Questions/Feedback for the setup process with podman #717

Description

@SchoolGuy

Over the weekend, I had a deeper look into this repository and came up with a bunch of questions.

  1. Why is the podman socket enabled during the installation, but not being used for communication with podman?
  2. Since there is a lot of communication with Podman, why are the official Podman Go bindings not used?
  3. Why is the setup script not inside the container as the entrypoint script? Normally, I would expect the script to be supplied with only environment variables.
  4. Why is Apache started during setup? Couldn't we talk to Tomcat directly instead?
  5. Why are the SSL certificates ignored during setup? Just skip SSL entirely if we don't check the validity of the certs.
  6. Why are the entrypoints for mgradm, mgrctl and mgrpxy not under <repo>/cmd? This is what I would expect in a standard Go project.
  7. During setup, I encountered multiple errors, and the error messages were not very descriptive. Sometimes all I got was a red "exit 1".
  8. Why do I find snake_case imports in some modules? I would expect CamelCase for everything.
  9. Much of the information is being gathered with exec calls and corresponding generated commands. Why is there no network-based internal API that is being called? (Sidecar-Pattern)
  10. Why is the setup not implemented as an init-container but as fully dedicated pods?

All of this together made it quite challenging to get comfortable with the codebase on the weekend. I am not saying we should refactor everything, but a few notes on the design decisions - if intentional - would be nice so people can follow the style of the project more easily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions