apache / apache/openserverless
implement (in golang) a configurator tool [alessandro sanino]
- Vorherrschende Sprache
- Python
- Sterne
- 576
- Forks
- 29
- Ø Merge
- 50 Min.
- Gemergte PRs (30 T.)
- 13
Beschreibung
## 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.
Beitragsleitfaden
Rechercherichtung
Es werden keine Quelldateien oder Tests genannt. Beginne damit, die bestehenden Task-Sprach-Konfiguratoren hinter `ops cloud eks config` zu finden, und prüfe dann den vorgeschlagenen Einstiegspunkt `ops -configurator description.json` sowie die Deskriptorfelder. Die Fertigstellung sollte interaktive Werte für die aufgeführten Feldtypen, die Speicherung von Konfigurationsvariablen sowie das Speichern und Lesen der Konfiguration als Kubernetes CRD abdecken.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go, kubernetes
- Bereich
- cli, devops
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100