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

Infra: Write static topology updates to file system #2430

Merged
merged 6 commits into from
Feb 8, 2019

Commits on Feb 8, 2019

  1. discovery: Add parsed topo to raw callback

    Call raw callback with raw bytes and the parsed topology
    to give the caller access without reparsing.
    oncilla committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    8aa8d8a View commit details
    Browse the repository at this point in the history
  2. util: atomic file write

    Add library support for atomically writing to file on disk.
    oncilla committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    88df08f View commit details
    Browse the repository at this point in the history
  3. config: Add filename to static config

    Add filename parameter to static discovery parameters.
    The filename indicates where an updated static topology
    shall be written to. In case of the empty string, the topology
    is not written.
    oncilla committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    8423ac6 View commit details
    Browse the repository at this point in the history
  4. idiscovery: Enable writing static topology updates

    Enable the idiscovery library to write static topology
    updates to the filesystem. This can be enabled by setting
    the filename in the StaticConfig.
    oncilla committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    11d6a2c View commit details
    Browse the repository at this point in the history
  5. Accept: Check that the update is written

    Check that the static topology update is written to disk,
    and that it does not differ from the version served by
    the discovery service.
    oncilla committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    10ca707 View commit details
    Browse the repository at this point in the history
  6. Refactor fetcher

    Reduce code duplication
    oncilla committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    e4ca253 View commit details
    Browse the repository at this point in the history