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

Add build-id option to Go worker. #117

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Add build-id option to Go worker. #117

merged 1 commit into from
Oct 17, 2024

Conversation

robholland
Copy link
Contributor

What was changed

Added an option to pass a build ID to the worker.

Why?

This allows testing of build-id versioning using omes.

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

This allows testing of build-id versioning using omes.
@@ -61,6 +61,8 @@ func runWorkers(client client.Client, taskQueues []string, options cmdoptions.Wo
taskQueue := taskQueue
go func() {
w := worker.New(client, taskQueue, worker.Options{
BuildID: options.BuildID,
UseBuildIDForVersioning: options.BuildID != "",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This feels safe, but maybe this needs to be an explicit option?

@robholland
Copy link
Contributor Author

cc @Prajithp

@robholland robholland merged commit 9c4f647 into main Oct 17, 2024
9 checks passed
@robholland robholland deleted the rh-build-id branch October 17, 2024 08:42
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