openfaas/openfaas-cloud

Suggestion: Admin dashboard

Open

#449 创建于 2019年5月6日

在 GitHub 查看
 (8 评论) (0 反应) (0 负责人)Go (222 fork)auto 404
area/uxenhancementhelp wanted

仓库指标

Star
 (770 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

There are a few things that are configured as environment variables in the different ofc components, a few of them are:

  • Branch to be used for building the functions
  • Docker registry to push images
  • Custom templates
  • Enable support for dockerfile templates
  • Scaling factors
  • Maybe hmac validation?

Expected Behaviour

Be able to change the settings of OFC without requiring to modify each of the components that provide that feature.

Current Behaviour

If I want to modify, for example, the build branch I need to edit the deployments of many functions and this type of editing can be tedious and error prone.

Possible Solution

Add a new component(maybe admin-dashboard?) to OFC that provides this features. I think we can do this in two different ways:

  • Modify each of the required deployments directly from this component(needs the appropriate roles for modifying this)
  • Re-deploy the affected functions using the gateway(like buildshiprun does it). In order to do this we would need to first get the definition of the function, modify the variables and re-deploy with those new values.

In my opinion the second solution is best since the gateway continues to be the "owner" of the state of the functions.

贡献者指南