Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ft(app): Add support for other controllers #14

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

OPhamster
Copy link

@OPhamster OPhamster commented Mar 4, 2022

  • The ability to 'scale' exists for all controllers:
    • job
    • deployment
    • stateful
      out of which only deployment was currently supported. The
      kubectl protocol to scale controllers follows the same pattern
      so it is relatively easier to perform this upgrade.
  • Certain attributes like:
    • deploy_name
      will need to be deprecated since this is now applies to all
      controllers. All of the changes made were intended to be graceful
      and not breaking.
  • lock_acquisitionis now scoped by the controller. Since the locks
    are relevant only when the process is running and an upgrade will not
    be attempted while it is running - it was deemed fine to make this
    change.
  • TODOS:
    • a proper logger is required (not in this PR) to:
      • scope log messages
      • maintain a certain pattern
      • consider variance in verbosity.
    • Add tests (This PR)
    • Alternative/efficient ways of getting the replica count (Not in this PR)

* The ability to 'scale' exists for all controllers:
  * job
  * deployment
  * stateful
  out of which only `deployment` was currently supported. The
  `kubectl` protocol to scale controllers follows the same pattern
  so it is relatively easier to perform this upgrade.
* Certain attributes like:
  * deploy_name
  will need to be deprecated since this is now applies to all
  controllers. All of the changes made were intended to be graceful
  and not breaking.
* `lock_acquisition`is now scoped by the `controller`. Since the locks
  are relevant only when the process is running and an upgrade will not
  be attempted while it is running - it was deemed fine to make this
  change.
* TODOS:
  * a proper logger is required to:
    * scope log messages
    * maintain a certain pattern
    * consider variance in verbosity.
  * Add tests
  * Alternative/efficient ways of getting the replica count
@OPhamster OPhamster added enhancement New feature or request work in progress WIP labels Mar 4, 2022
* local command changes needed to be tested. The only 2 interactions
  with the kuberenetes client are for:
  * current scale
  * scale up/ scale down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request work in progress WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant