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

feat: policy optimizer #518

Closed
wants to merge 6 commits into from
Closed

Commits on Aug 3, 2023

  1. refactor: prepare for multiple binaries

    Move policy-server to a sub-crate. This makes possible to handle a rust
    project which delivers multiple binaries.
    
    Signed-off-by: Flavio Castelli <[email protected]>
    flavio committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    717b494 View commit details
    Browse the repository at this point in the history
  2. refactor: prepare policy-optimizer layout

    Prepare the repo layout to accomodate for the policy-optimizer binary
    
    Signed-off-by: Flavio Castelli <[email protected]>
    flavio committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    33316a0 View commit details
    Browse the repository at this point in the history
  3. Remove Cargo.lock from policy-server crates

    Now that we moved to a cargo workspace, the lock file is handled at the
    root of the workspace. Meaning `crates/policy-server/Cargo.lock` is
    no longer used.
    
    Signed-off-by: Flavio Castelli <[email protected]>
    flavio committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    c500511 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. automation: update local Dockerfile

    Update the local Dockerfile to add the policy-optimizer binary to it.
    
    Signed-off-by: Flavio Castelli <[email protected]>
    flavio committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    c9bbd46 View commit details
    Browse the repository at this point in the history
  2. deps: declare shared deps once

    Declare the shared dependencies of policy-server and policy-optimizer in
    a single place.
    
    Signed-off-by: Flavio Castelli <[email protected]>
    flavio committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    7617eb7 View commit details
    Browse the repository at this point in the history
  3. Add initial code of policy-optimizer

    Add the initial implementation of policy-optimizer. Right now the code
    use the Lease objects to ensure only one policy-optimizer process can
    write to the shared storage.
    
    Right now no real work is done, the code just enters a long sleep. This
    is enough to test if this approach works as we expect.
    
    Signed-off-by: Flavio Castelli <[email protected]>
    flavio committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    498466c View commit details
    Browse the repository at this point in the history