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

Enable extended resource definitions for scheduling purposes. #477

Closed
wants to merge 3 commits into from
Closed

Commits on Jul 26, 2018

  1. Enable function scheduling in Kubernetes based on extended resources,…

    … such as
    
    GPUs or FPGAs.
    
      -FunctionResources was extended with a new field called Others. This field stores
       extended resource definitions. Others is a map of strings, where the keys and
       values are pure strings.
      -A new unmarshaler was added for the FunctionResources struct. When the function
       manifest YAML is parsed this unmarshaler will validate and sanitize resource
       definitions. CPU and Memory requests are passed as they are, while other
       definitions are tested against a regexp.
      -The valid format of an extended resource for now is "vendor.domain/[gpu,fpga]",
       where vendor and domain can be any string. It's important to have a . [dot]
       between the two. After / [slash] the only valid resource names are gpu or fpga.
       This part should be documented in the appropriate place.
      -Tests also added for the new unmarshaler.
    
    Signed-off-by: Ferenc Szekely <ferenc.szekely@intel.com>
    Ferenc Szekely committed Jul 26, 2018
    Configuration menu
    Copy the full SHA
    b8c83a1 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2018

  1. Merge branch 'master' of https://github.com/openfaas/faas-cli

    Ferenc Szekely committed Aug 1, 2018
    Configuration menu
    Copy the full SHA
    b46a667 View commit details
    Browse the repository at this point in the history
  2. Properly formatted source files to pass the build.

    Signed-off-by: Ferenc Szekely <ferenc.szekely@intel.com>
    Ferenc Szekely committed Aug 1, 2018
    Configuration menu
    Copy the full SHA
    8c075c3 View commit details
    Browse the repository at this point in the history