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

GUNDI-3096: Update dispatchers command #294

Merged
merged 8 commits into from
May 10, 2024

Conversation

marianobrc
Copy link
Contributor

@marianobrc marianobrc commented May 10, 2024

What does this PR do?

  • Extends our dispatchers command to support updating the source, so that we can deploy new versions.
    • The command supports dispatchers v1 and v2 for ER, SMART and WPS Watch.
    • It also supports updating dispatchers in bulk by type, or updating a single one by id.
  • Adds test coverage for the different usages of the command combined with different types and versions

Command usage examples:

$ python3 manage.py dispatchers --v1 --type earth_ranger --max 2 --update-source er-dispatcher-src-release-202405091336-4a30801.zip
$ python3 manage.py dispatchers --v2 --type smart_connect --max 2 --update-source "gcr.io/cdip-78ca/gundi/smart-dispatcher:release-202405092019-2c1155b"

$ python3 manage.py dispatchers --v1 --integration c7ea23bf-ac1c-4f49-be44-5ae1eb2b0898 --update-source "gcr.io/cdip-78ca/gundi/wpswatch-dispatcher:release-202405092019-fbdc68c"
$ python3 manage.py dispatchers --v2 --integration b42c9205-5228-49e0-a75b-ebe5b6a9f78e --update-source "gcr.io/cdip-78ca/gundi/smart-dispatcher:release-202405092019-2c1155b"

Relevant link(s)

GUNDI-3096

@marianobrc marianobrc merged commit b6b33a8 into main May 10, 2024
1 check passed
@marianobrc marianobrc deleted the gundi-3096-deploy-dispatchers-cmd branch May 10, 2024 21:19
@marianobrc marianobrc restored the gundi-3096-deploy-dispatchers-cmd branch May 16, 2024 18:35
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.

2 participants