Skip to content

hive: Enable runtime option overriding in hive.Run()#60

Merged
joamaki merged 1 commit intocilium:mainfrom
ILL1A:feature/run-opts
Oct 8, 2025
Merged

hive: Enable runtime option overriding in hive.Run()#60
joamaki merged 1 commit intocilium:mainfrom
ILL1A:feature/run-opts

Conversation

@ILL1A
Copy link
Copy Markdown
Contributor

@ILL1A ILL1A commented Oct 6, 2025

This change introduces functional options to hive.Run(), which resolve a limitation where, if hive.NewWithOptions() was called before flag parsing, the default Options (e.g. StartTimeout and StopTimeout) could not be dynamically configured. New options passed to hive.Run() now explicitly override the options set during hive initialization.

Corresponds to cilium/cilium#41857.

This change introduces functional options to `hive.Run()`, which resolve a limitation where, if `hive.NewWithOptions()` was called before flag parsing, the default *Options* (e.g. `StartTimeout` and `StopTimeout`) could not be dynamically configured. New options passed to `hive.Run()` now explicitly override the options set during `hive` initialization.

Signed-off-by: Illia Kolisnyk <illiakolisnyk@google.com>
@ILL1A ILL1A requested a review from a team as a code owner October 6, 2025 13:47
@ILL1A ILL1A requested review from pippolo84 and removed request for a team October 6, 2025 13:47
@ILL1A
Copy link
Copy Markdown
Contributor Author

ILL1A commented Oct 7, 2025

cc @joamaki

Copy link
Copy Markdown
Contributor

@joamaki joamaki left a comment

Choose a reason for hiding this comment

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

Thanks! Renovate will pick this up for cilium/cilium within couple weeks.

@joamaki joamaki merged commit 9a24a9d into cilium:main Oct 8, 2025
1 check passed
@ILL1A ILL1A deleted the feature/run-opts branch October 8, 2025 09:01
@ILL1A ILL1A mentioned this pull request Mar 5, 2026
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