apache / apache/openserverless

implement (in golang) a configurator tool [alessandro sanino]

未关闭
#136 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
576
派生
29
平均合并
50 分钟
30 天内合并 PR
13

描述

## Why you need it?

THere are many interactive configurators in ops: for example `ops cloud eks config`
They are implemented in task language but it is not ideal.
It would be better to provide a tool for it

## How it could be?
a tool in go doing ops -configurator description.json

where the descriptor can be like:

```
[{
"name": "WHI",
"label": "Why do you recommend Apache OpenServerless?",
"type": "textarea",
"required": "true"
}, {
"name": "JOB",
"label": "What is your job role?",
"type": "text",
"required": "true"
}, {
"name": "TONE",
"label": "What tone should the post have?",
"type": "text",
"required": "true"
}]
```

executing the configurator it will ask for the values and store then as configuration variables.

# Form Field: a dictionary
- `label`: the description
- `name`: the field used in the input
- `required`: is it required?
- `type`: can be `text`, `textarea`, `checkbox`, `radio`, `file`
- if `radio`:
- `options`: array of options
- if `file`:
- upload a (small!) file in base64

# CRD support

it is important that the configurator will be able to save the configuration as a CRD so you can put it in a kubernetes cluster and able to read them back as environment variables from a crd

## Other related information
Add any other context or screenshots about the feature request here.

贡献指南

打开贡献指南

调研方向

未指定源文件或测试。首先定位 `ops cloud eks config` 背后的现有任务语言配置器,然后检查提议的入口点 `ops -configurator description.json` 和描述符字段。完成内容应涵盖所列字段类型的交互式值、配置变量存储,以及将配置保存和读取为 Kubernetes CRD。

由索引模型根据 Issue 内容生成。

评估

技术栈
go, kubernetes
领域
cli, devops
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。