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

fix(orc8r): add reindexing of gateway subscriber state to subscriberdb indexer #13041

Merged
merged 2 commits into from
Jun 28, 2022

Commits on Jun 27, 2022

  1. Add reindexing of gateway_subscriber_state to subscriberdb indexer

    Modifies the existing indexer servicer by adding the subscriber
    storage table to it and functionality to take states of type
    "gateway_subscriber_state" (sent by sessiond) and write an entry
    for each subscriber into the subscriber storage.
    
    For that we modify the existing indexImpl function to distinguish
    between the two possible types ("mobilityd_ipdesc_record" and
    "gateway_subscriber_state").
    
    Tests for the new indexer functionality are added.
    A custom serde type is registered for the gateway subscriber state
    and implemented in storage/subscriber_state.go.
    
    The existing interface of the subscriber storage is changed to use
    this new type (GatewaySubscriberState).
    
    Signed-off-by: Alexander zur Bonsen <alexander.zur.bonsen@tngtech.com>
    alexzurbonsen committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    02dc66a View commit details
    Browse the repository at this point in the history
  2. Add "gateway_subscriber_state" annotation

    To trigger the indexer also for the type gateway_subscriber_state
    the annotation is added to the service registry config of
    subscriberdb. k8s config is added in a separated PR.
    
    Signed-off-by: Alexander zur Bonsen <alexander.zur.bonsen@tngtech.com>
    alexzurbonsen committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    793ba11 View commit details
    Browse the repository at this point in the history