Skip to content

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

Open
OPhamster wants to merge 4 commits intomasterfrom
ft/support_for_other_controllers
Open

ft(app): Add support for other controllers#14
OPhamster wants to merge 4 commits intomasterfrom
ft/support_for_other_controllers

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