Skip to content
Snippets Groups Projects

Pass controller runtime objects with Context

Merged Hossein Pursultani requested to merge hp-runtime-context into master

This MR introduces runtime context where runtime object of Controller, for example the Client, are embedded in the Context.

This make it easier to pass down the request-scoped information to other components.

The following are included:

  • ContextBuilder type for building a new runtime context with the Client, Logger, etc.
  • ClientFromContext function to retrieve the Client from a context.
  • RecorderFromContext function to retrieve the EventRecorder from a context.

Related to #889 (closed)

Closes #440 (closed)

Closes #325 (closed)

Edited by Hossein Pursultani

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading