Coder Social home page Coder Social logo

gcr-cleaner's People

Contributors

koomekiriinya avatar victortrac avatar

Watchers

 avatar  avatar

gcr-cleaner's Issues

Add support for multiple registries

We need to add ECR support. The application needs some refactoring to add support to more Container Registries. I see this being implemented in several ways.
Some of them can be:

1. Run the app with a flag to specify the registry. This way we can keep the app as it is in terms of registry cleaner packages. That is, we'll need to add an ecr-cleaner package. A list of steps to implement can be:

  • Add <registry_name>-cleaner packages.
  • Load in main for what registry we are going to be running the app. This comes from a flag we pass in when running the binary.
  • Have a package to create a cleaner package responsible to deliver a cleaner instance based on the registry.
  • Create an instance of Config before getting the
  • Get the cleaner configuration initialized for its respective cloud.
  • Continue the cleaning process as it is.

2. Implement Domain Driven Design:

  • Create a root package that define at the app level the cleaner and config domain and their respective interfaces.
  • Implement packages for every registry we are going to support. We can have a gcr and an ecr package that implements the specification of types and interfaces from the root package.

Also, What do you about using a yaml file to configure the app. The change would be simple. I am jut just curious as this does not seem to add much value just that I think is easy just to edit the file than set up env vars.

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.