Skip to content

faasd does not provide memory limits of functions in Canonicalize format #228

Open
@nitishkumar71

Description

@nitishkumar71

All the openfaas implementation should return the memory info in the Canonicalize format.

Expected Behaviour

faasd should return memory limits in Canonicalize i.e. 5000000 should be returned as 5M. We follow the same into faas-netes.

Current Behaviour

faasd Provides function memory limit in bytes.

Are you a GitHub Sponsor (Yes/No?)

Check at: https://github.com/sponsors/openfaas

  • Yes
  • No

List all Possible Solutions

We can follow the implementation for k8s

https://github.com/openfaas/faas-netes/blob/master/pkg/k8s/function_status.go#L38

https://github.com/openfaas/faas-netes/blob/master/vendor/k8s.io/api/core/v1/resource.go#L34

List the one solution that you would recommend

Steps to Reproduce (for bugs)

  1. We can use certifier with the current release of faasd as done in the pipeline https://github.com/openfaas/certifier/runs/4542572124?check_suite_focus=true#step:5:138

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions