feat(custom-app): Add custom command UI (#2983)
* feat(custom-app): Add custom command UI * give custom command it's own checkbox Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
5
.github/scripts/build-catalog.sh
vendored
5
.github/scripts/build-catalog.sh
vendored
@@ -31,6 +31,11 @@ include_questions(){
|
||||
/# Include{controllerExpert}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/controllerExpert.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
|
||||
# Replace # Include{controllerExpertCommand} with the standard controllerExpertCommand codesnippet
|
||||
awk 'NR==FNR { a[n++]=$0; next }
|
||||
/# Include{controllerExpertCommand}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/controllerExpertCommand.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
|
||||
# Replace # Include{containerConfig} with the standard containerConfig codesnippet
|
||||
awk 'NR==FNR { a[n++]=$0; next }
|
||||
/# Include{containerConfig}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
|
||||
@@ -19,7 +19,7 @@ name: custom-app
|
||||
sources:
|
||||
- https://github.com/truecharts/apps/tree/master/charts/stable/custom-app
|
||||
type: application
|
||||
version: 5.0.16
|
||||
version: 5.1.0
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- custom
|
||||
|
||||
@@ -106,6 +106,7 @@ questions:
|
||||
description: "RollingUpdate: Create new pods and then kill old ones"
|
||||
- value: "OnDelete"
|
||||
description: "(Legacy) OnDelete: ignore .spec.template changes"
|
||||
# Include{controllerExpertCommand}
|
||||
# Include{controllerExpert}
|
||||
|
||||
# Include{containerConfig}
|
||||
|
||||
17
templates/questions/controllerExpertCommamd.yaml
Normal file
17
templates/questions/controllerExpertCommamd.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
- variable: customcommand
|
||||
label: "Show Custom Command Options"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
show_subquestions_if: true
|
||||
subquestions:
|
||||
- variable: command
|
||||
label: "Command"
|
||||
schema:
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: param
|
||||
label: "param"
|
||||
schema:
|
||||
type: string
|
||||
@@ -130,6 +130,11 @@ include_questions(){
|
||||
/# Include{controllerExpert}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/controllerExpert.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
|
||||
# Replace # Include{controllerExpertCommand} with the standard controllerExpertCommand codesnippet
|
||||
awk 'NR==FNR { a[n++]=$0; next }
|
||||
/# Include{controllerExpertCommand}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
1' templates/questions/controllerExpertCommand.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
|
||||
|
||||
# Replace # Include{containerConfig} with the standard containerConfig codesnippet
|
||||
awk 'NR==FNR { a[n++]=$0; next }
|
||||
/# Include{containerConfig}/ { for (i=0;i<n;++i) print a[i]; next }
|
||||
|
||||
Reference in New Issue
Block a user