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

clean up operator initialization code #2901

Merged
merged 5 commits into from
May 29, 2024
Merged

Commits on May 29, 2024

  1. pkg/gadget-service: collect and initialize operators properly

    This change collects available operators when starting the service. Global operator
    params can be retrieved through `GetOperatorMap()`.
    
    Signed-off-by: Michael Friese <mfriese@microsoft.com>
    flyth committed May 29, 2024
    Configuration menu
    Copy the full SHA
    556fc13 View commit details
    Browse the repository at this point in the history
  2. pkg/gadget-service: Split NewService() and setting EventBufferLength

    This allows setting the eventBufferLength after creating the service. Will be used in
    upcoming commits.
    
    Signed-off-by: Michael Friese <mfriese@microsoft.com>
    flyth committed May 29, 2024
    Configuration menu
    Copy the full SHA
    7e847b4 View commit details
    Browse the repository at this point in the history
  3. cmd/ig: expose operator global params to cobra

    Signed-off-by: Michael Friese <mfriese@microsoft.com>
    flyth committed May 29, 2024
    Configuration menu
    Copy the full SHA
    c34150d View commit details
    Browse the repository at this point in the history
  4. cmd/common: expose and init using operator global params when using i…

    …mage-based gadgets
    
    Signed-off-by: Michael Friese <mfriese@microsoft.com>
    flyth committed May 29, 2024
    Configuration menu
    Copy the full SHA
    4aa412e View commit details
    Browse the repository at this point in the history
  5. pkg/gadget-context: remove lazy operator initialization

    Operator initialization should be handled by the caller that is also creating the
    gadget context, not the gadget context itself. This removes the old code and relies
    on initialization taking place somewhere else.
    
    Signed-off-by: Michael Friese <mfriese@microsoft.com>
    flyth committed May 29, 2024
    Configuration menu
    Copy the full SHA
    6e250d5 View commit details
    Browse the repository at this point in the history