Skip to content

Conversation

@jakogut
Copy link
Contributor

@jakogut jakogut commented Jan 28, 2022

In order to facilitate creating a Worker client object without a config file, add a parameter to the constructor for the workerAddress. Rename the Worker object to WorkerClient to differentiate the interface from the existing Worker, and create a shim object that extends WorkerClient to retain the previous functionality.

@jakogut
Copy link
Contributor Author

jakogut commented Feb 7, 2022

@balena-ci rebase

@jakogut
Copy link
Contributor Author

jakogut commented Feb 11, 2022

@balena-ci rebase

@ghost ghost force-pushed the worker-client branch from b5babd0 to 45e6c81 Compare February 11, 2022 17:43
Copy link
Member

@vipulgupta2048 vipulgupta2048 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @jakogut for your work on this -- Let's hold off merge till client/core move is compelte

The Worker object retrieves the address of the Worker API to
communicate with from a config file. Rename the Worker object to
WorkerClient, to indicate that it interfaces with the API of the Worker,
and add the workerAddress parameter to the constructor.

Export a Worker object that inherits from WorkerClient, and sets the
workerAddress from a config as before.

Change-type: patch
Signed-off-by: Joseph Kogut <[email protected]>
Change-type: patch
Signed-off-by: Joseph Kogut <[email protected]>
To maintain existing functionality, we create a new class inheriting from
WorkerClient that maintains the previous method of configuration.

Change-type: patch
Signed-off-by: Joseph Kogut <[email protected]>
@resin-jenkins
Copy link
Contributor

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants